Class PoMesh3DVec
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoMesh3DVecCrossSection
The current mesh is used for the representation of vectors. See PoMesh for more explanations about the current mesh. The vectors of the mesh to be drawn, are defined by the method addVecsSet of the current mesh (see PoMeshProperty or PbMesh), and by the field PoMesh.vecsIndex. The node of the mesh are used as start point of the representation of the vectors.
File format/default:
| density | 1 |
| eliminationStatus | NONE |
| minLength | 0.0 |
| maxLength | 1E30 |
| bodyShape | LINE |
| bodyLengthType | RELATIVE_LENGTH |
| bodyLengthFactor | 1.0 |
| bodyRadiusType | CONSTANT_RADIUS |
| bodyRadiusFactor | 0.02 |
| bodyColoringType | CONSTANT_COLOR |
| startArrowShape | NO_SHAPE |
| startArrowHeightType | RELATIVE_HEIGHT |
| startArrowHeightFactor | 0.1 |
| startArrowRadiusFactor | 0.5 |
| startArrowColoringType | CONSTANT_COLOR |
| endArrowShape | CHEVRON |
| endArrowHeightType | RELATIVE_HEIGHT |
| endArrowHeightFactor | 0.1 |
| endArrowRadiusFactor | 0.5 |
| endArrowColoringType | CONSTANT_COLOR |
| coloringType | COLOR_INHERITED |
| valuesIndex | -1 |
| valuesIndexForCellFilter | -1 |
| vecsIndex | -1 |
| moduleDataMapping | NULL |
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of arrow coloring.static enumType of height of an arrow.static enumType of arrow shape.static enumType of body lenght.static enumType of body radius.static enumType of body shape.static enumType of vector elimination.Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PoMesh
PoMesh.ColoringTypesNested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypesNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptioncoloring method of the body.final SoSFFloatLength (or length multiplicative factor) of the body shape.If bodyLengthType = CONSTANT_LENGTH, each vector has the same body length = bodyLengthFactor .final SoSFFloatRadius (or radius multiplicative factor) of the cylinder.Defines type of method to compute the cylinder's radius.final SoSFEnum<PoMesh3DVec.BodyShapes> Type of shape (no body, line, cylinder) used to draw the body.final SoSFInt32Vector field density filter.If eliminationStatus = TOO_SMALL, the vectors which module is lower than minLength are not drawn.Coloring method of the end shape.final SoSFFloatHeight (or Height multiplicative factor) of the arrow shape.Defines the type of method to compute the arrow height.final SoSFFloatThe end-arrow's radius is end-arrow's height * endArrowRadiusFactor.final SoSFEnum<PoMesh3DVec.ArrowShapes> Type of shape to be drawn at the end point of the body.final SoSFFloatMaximum length of the vector to be drawn.final SoSFFloatMinimum length of the vector to be drawn.Coloring method of the start shape.final SoSFFloatHeight (or Height multiplicative factor) of the arrow shape.Defines the type of method to compute the arrow height.final SoSFFloatThe start-arrow's radius is start-arrow's height * startArrowRadiusFactor.final SoSFEnum<PoMesh3DVec.ArrowShapes> Type of shape to be drawn at the start point of the body.Fields inherited from class com.openinventor.meshviz.data.PoMesh
coloringType, creaseAngle, moduleDataMapping, smoothTextureContouring, valuesIndex, valuesIndexForCellFilter, vecsIndexFields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Methods inherited from class com.openinventor.meshviz.data.PoMesh
getDataMapping, getIsovaluesList, getModuleDataMapping, setDataMapping, setIsovaluesList, setMesh, setModuleDataMappingMethods inherited from class com.openinventor.meshviz.graph.PoBase
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKitMethods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildrenMethods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
density
Vector field density filter. If density = 1, each vector of the mesh is drawn. If density = 2, one vector every 2 vectors is drawn... -
eliminationStatus
If eliminationStatus = TOO_SMALL, the vectors which module is lower than minLength are not drawn. If eliminationStatus = TOO_LONG, the vectors which module is greater than maxLength are not drawn. If eliminationStatus = TOO_SMALL_OR_LONG, the vectors which module is lower than minLength or greater than maxLength are not drawn. If eliminationStatus = NONE, each vector selected by the density filter is drawn. -
minLength
Minimum length of the vector to be drawn. Only used when eliminationStatus is TOO_SMALL or TOO_SMALL_OR_LONG -
maxLength
Maximum length of the vector to be drawn. Only used when eliminationStatus is TOO_LONG or TOO_SMALL_OR_LONG -
bodyShape
Type of shape (no body, line, cylinder) used to draw the body. If bodyShape = NO_BODY, the body of each vector is invisible. -
bodyLengthType
If bodyLengthType = CONSTANT_LENGTH, each vector has the same body length = bodyLengthFactor . If bodyLengthType = RELATIVE_LENGTH, the body length of a vector is bodyLengthFactor * vector-module. -
bodyLengthFactor
Length (or length multiplicative factor) of the body shape. -
bodyRadiusType
Defines type of method to compute the cylinder's radius. If bodyRadiusType = CONSTANT_RADIUS, each vector has the same body radius = bodyRadiusFactor . If bodyRadiusType = RELATIVE_RADIUS, the body radius of a vector is bodyRadiusFactor * vector-module. The body radius is either a line-width or a cylinder-radius depending on the field's value bodyShape. -
bodyRadiusFactor
Radius (or radius multiplicative factor) of the cylinder. -
bodyColoringType
coloring method of the body. If bodyColoringType = CONSTANT_COLOR, each vector has the same body color, which is the last found during the scene graph traversal.If bodyColoringType = MODULE_MAPPING_COLOR, the body's color of a vector depends on its module, and by using the current module-data-mapping (see
PoMeshfor explanation of the current module-data-mapping).If bodyColoringType = SCALAR_MAPPING_COLOR, the body's color of a vector depends on the scalar value at the mesh node used as the start point of the body. In this case, the current data-mapping is used to compute the color in relation to the scalar-value (see
PoMeshfor more explanations about the current data-mapping). . -
startArrowShape
Type of shape to be drawn at the start point of the body. If startArrowShape = NO_SHAPE, the start-shape of each vector is invisible. -
startArrowHeightType
Defines the type of method to compute the arrow height. If startArrowHeightType = CONSTANT_HEIGHT, each vector has the same start-shape height = startArrowHeightFactor . If startArrowHeightType = RELATIVE_ HEIGHT, the end-shape height of a vector is startArrowHeightFactor * body's length. -
startArrowHeightFactor
Height (or Height multiplicative factor) of the arrow shape. -
startArrowRadiusFactor
The start-arrow's radius is start-arrow's height * startArrowRadiusFactor. -
startArrowColoringType
Coloring method of the start shape. If startArrowColoringType = CONSTANT_COLOR, each vector has the same start-arrow's color, which is the last found during the scene graph traversal.If startArrowColoringType = MODULE_MAPPING_COLOR, the start-arrow's color of a vector depends on its module, and by using the current module-data- mapping (see
PoMeshfor explanation of the current module-data-mapping).If startArrowColoringType = SCALAR_MAPPING_COLOR, the start-arrow's color of a vector depends on the scalar value at the mesh node used as the start point of the start-arrow. In this case, the current data-mapping is used to compute the color in relation to the scalar-value (see
PoMeshfor more explanations about the current data-mapping). -
endArrowShape
Type of shape to be drawn at the end point of the body. If endArrowShape = NO_SHAPE, the end-shape of each vector is invisible. -
endArrowHeightType
Defines the type of method to compute the arrow height. If endArrowHeightType = CONSTANT_HEIGHT, each vector has the same end-shape height = endArrowHeightFactor . If endArrowHeightType = RELATIVE_ HEIGHT, the end-shape height of a vector is endArrowHeightFactor * body's length. -
endArrowHeightFactor
Height (or Height multiplicative factor) of the arrow shape. -
endArrowRadiusFactor
The end-arrow's radius is end-arrow's height * endArrowRadiusFactor. -
endArrowColoringType
Coloring method of the end shape. If endArrowColoringType = CONSTANT_COLOR, each vector has the same end-arrow's color, which is the last found during the scene graph traversal.If endArrowColoringType = MODULE_MAPPING_COLOR, the end-arrow's color of a vector depends on its module, and by using the current module-data- mapping (see
PoMeshfor explanation of the current module-data-mapping).If endArrowColoringType = SCALAR_MAPPING_COLOR, the end-arrow's color of a vector depends on the scalar value at the mesh node used as the end point of the end-arrow. In this case, the current data-mapping is used to compute the color in relation to the scalar-value (see
PoMeshfor more explanations about the current data-mapping).
-
-
Constructor Details
-
PoMesh3DVec
public PoMesh3DVec()Constructor.
-
-
Method Details
-
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class.
-