public class MoMeshVector extends MoMeshRepresentation
Each value of the vector data set is represented by a line plus an (optional)
small arrow. The lines are located at the cell centers for per cell data sets
or at the node positions for per node data sets. The vectorSetId
field defines the index of the vector set to display. This is an index into
the list of vector sets existing in the traversal state (see the
MoVec3Setxxx
nodes).
The lines can be colored using a scalar set defined in the
colorScalarSetId
inherited field. This is an index into the list of
scalar sets existing in the traversal state (see the MoScalarSetxxx
nodes). To disable coloring set this field to -1.
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBool |
arrow
Do not draw arrows on vectors if set to
false The default value is
true |
SoSFFloat |
scaleFactor
The scale factor to apply to the vector field to resize the representation.
|
SoSFFloat |
shiftFactor
The shift factor to apply to the representation of each vector.
|
SoSFInt32 |
vectorSetId
Specifies the vector set to display.
|
colorScalarSetId
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
MoMeshVector()
Constructs a rendering node with default options.
|
doAction, setExtractorCallback
write
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, rayPick
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoSFInt32 vectorSetId
vectorSetId
is an index in this list.public SoSFFloat scaleFactor
public SoSFBool arrow
false
The default value is
true
public SoSFFloat shiftFactor
The following images illustrate the effect of shiftFactor on the vector
field representation, with a vector set using a PER_NODE
binding.
No shift: shiftFactor = 0.0 | Centered vectors: shiftFactor = -0.5 | Vectors pointing target point: shiftFactor = -1.0 |
![]() |
![]() |
![]() |
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com