public class PoMeshContouring extends PoMesh2D
PoMesh.setIsovaluesList()
method or by the current PoIsovaluesList
node during the traversal.
All contour lines can have the same color (PoMesh.coloringType
= COLOR_INHERITED) or can have a color depending on the values of the contouring lines (PoMesh.coloringType
!= COLOR_INHERITED).
Contour lines are separated into 2 groups: major contour lines which can be annotated by their value, and minor contour lines which cannot be annotated. Major contour line are defined by the value of fields majorPeriod and firstMajor. They are annotated only if the field annotIsVisible is true. The way of putting annotations along contour lines is defined by the value of the fields annotPath, annotCrossStatus, annotGap and annotClippingPolygon.
When the annotation are visible, the way of drawing the text of the level values depends on the current numeric display format and also on the current miscellaneous text attributes. If the method setFormat(format) is called, the current numerical display format is "format". Otherwise the current numerical display format is specified in the current inherited state (cf property node PoNumericDisplayFormat
). If the method setMiscTextAttr(textAttr) is called, the current miscellaneous text attributes are defined by "textAttr". Otherwise the current miscellaneous text attributes are specified in the current inherited state (cf property node PoMiscTextAttr
).
Note: Contour line annotations are not displayed if the mesh is not defined in the XY plane. For example, if a 2D mesh is defined as follows: X coordinates are constant, Y coordinates vary, and Z coordinates vary, (and zValuesIndex set with a value different from -1), the contour lines will be not annotated. In order to annotate contour lines for a mesh not defined in the XY plane, define it in the XY plane and apply a rotation.
File format/default:
valuesIndex | -1 |
coloringType | COLOR_INHERITED |
zValuesIndex | -1 |
vecsIndex | -1 |
valuesIndexForCellFilter | -1 |
moduleDataMapping | NULL |
majorPeriod | 3 |
firstMajor | 1 |
annotIsVisible | false |
annotPath | TANGENTIAL_PATH |
annotCrossStatus | CROSS_CONTOUR |
annotIsBackground | false |
annotIsContourClip | false |
annotGap | 1 |
annotClippingPolygon | 0 0 |
annotFontSize | 0 |
Modifier and Type | Class and Description |
---|---|
static class |
PoMeshContouring.AnnotCrossStatusType
Controls the annotations of contour lines.
|
static class |
PoMeshContouring.AnnotPaths
Type of annotations path.
|
PoMesh.ColoringTypes
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoMFVec2f |
annotClippingPolygon
This is a polygon where no annotations are present outside it.
|
SoSFEnum<PoMeshContouring.AnnotCrossStatusType> |
annotCrossStatus
Controls the annotations and contour lines crossing.
|
SoSFFloat |
annotFontFactor
Font size factor of annotations of contour lines.
|
SoSFFloat |
annotFontSize
Font size of annotations of contour lines.
|
SoSFFloat |
annotGap
Curvilinear distance between two annotations of a same contour line.
|
SoSFBool |
annotIsBackground
Defines if the annotations are framed by a background.
|
SoSFBool |
annotIsContourClip
Defines if the contour lines are clipped by the annotations.
|
SoSFBool |
annotIsVisible
Contour lines annotations visibility.
|
SoSFEnum<PoMeshContouring.AnnotPaths> |
annotPath
Annotations path.
|
static int |
CROSS_CONTOUR
Deprecated.
Use
PoMeshContouring.AnnotCrossStatusType.CROSS_CONTOUR instead. |
static int |
CROSS_MINOR_CONTOUR
Deprecated.
|
static int |
DONT_CROSS_CONTOUR
Deprecated.
|
SoSFUShort |
firstMajor
Defines the first major contour lines.
|
static int |
HORIZONTAL_PATH
Deprecated.
Use
PoMeshContouring.AnnotPaths.HORIZONTAL_PATH instead. |
SoSFUShort |
majorPeriod
Defines the major and the minor contour lines.
|
static int |
TANGENTIAL_PATH
Deprecated.
Use
PoMeshContouring.AnnotPaths.TANGENTIAL_PATH instead. |
static int |
VERTICAL_PATH
Deprecated.
Use
PoMeshContouring.AnnotPaths.VERTICAL_PATH instead. |
zValuesIndex
COLOR_AVERAGE, COLOR_CONTOURING, COLOR_INHERITED, COLOR_MAPPING, COLOR_TEXTURE_CONTOURING, coloringType, creaseAngle, moduleDataMapping, smoothTextureContouring, valuesIndex, valuesIndexForCellFilter, vecsIndex
FOLD_NODE_WRITE_FORMAT, SO_ANNO_TEXT3, SO_TEXT3, UNFOLD_NODE_WRITE_FORMAT, UPDATE_METHOD_IMMEDIATE, UPDATE_METHOD_ON_ACTION
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PoMeshContouring()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
PbNumericDisplayFormat |
getFormat()
Gets the reference to a
PbNumericDisplayFormat . |
PbMiscTextAttr |
getMiscTextAttr()
Gets a reference to
PbMiscTextAttr object. |
void |
setFormat(PbNumericDisplayFormat format)
Sets a reference to a
PbNumericDisplayFormat object for the numerical display format for annotations of contour lines. |
void |
setMiscTextAttr(PbMiscTextAttr textAttr)
Sets a reference to
PbMiscTextAttr object for miscellaneous text attributes of annotations of contour lines. |
getDataMapping, getIsovaluesList, getModuleDataMapping, setDataMapping, setIsovaluesList, setMesh, setModuleDataMapping
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int TANGENTIAL_PATH
PoMeshContouring.AnnotPaths.TANGENTIAL_PATH
instead.@Deprecated public static final int HORIZONTAL_PATH
PoMeshContouring.AnnotPaths.HORIZONTAL_PATH
instead.@Deprecated public static final int VERTICAL_PATH
PoMeshContouring.AnnotPaths.VERTICAL_PATH
instead.@Deprecated public static final int CROSS_CONTOUR
PoMeshContouring.AnnotCrossStatusType.CROSS_CONTOUR
instead.@Deprecated public static final int CROSS_MINOR_CONTOUR
PoMeshContouring.AnnotCrossStatusType.CROSS_MINOR_CONTOUR
instead.@Deprecated public static final int DONT_CROSS_CONTOUR
PoMeshContouring.AnnotCrossStatusType.DONT_CROSS_CONTOUR
instead.public final SoSFUShort majorPeriod
public final SoSFUShort firstMajor
public final SoSFBool annotIsVisible
public final SoSFEnum<PoMeshContouring.AnnotPaths> annotPath
By default, annotPath = TANGENTIAL_PATH.
public final SoSFEnum<PoMeshContouring.AnnotCrossStatusType> annotCrossStatus
By default, annotCrossStatus = CROSS_CONTOUR.
Note that annotations may always cross the annotated contour line, however this field prevents annotations from crossing other contour lines.
public final SoSFBool annotIsBackground
public final SoSFBool annotIsContourClip
public final SoSFFloat annotGap
public final SoMFVec2f annotClippingPolygon
public final SoSFFloat annotFontSize
public final SoSFFloat annotFontFactor
SoProjection
node is applicable to contouring. By default, annotFontFactor = 1.public void setMiscTextAttr(PbMiscTextAttr textAttr)
PbMiscTextAttr
object for miscellaneous text attributes of annotations of contour lines.
If this method is not called the text attributes used are those of the default constructor of PbMiscTextAttr
.public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.public PbNumericDisplayFormat getFormat()
PbNumericDisplayFormat
.
See setFormat.public PbMiscTextAttr getMiscTextAttr()
PbMiscTextAttr
object.
See setMiscTextAttr.public void setFormat(PbNumericDisplayFormat format)
PbNumericDisplayFormat
object for the numerical display format for annotations of contour lines.
If this method is not called the format used is the one of the default constructor of PbNumericDisplayFormat
.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com