public class MoMeshVector extends MoMeshRepresentation
Each value of the vector data set is represented by a line plus an optional
small arrow or a cylinder and an optional cone depending of the
thicknessFactor
. The vectors 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 vectors 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.
SoNode.RenderModes
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.
|
SoSFFloat |
thicknessFactor
The thickness 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, getRenderEngineMode, 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, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
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 |
![]() |
![]() |
![]() |
public SoSFFloat thicknessFactor
arrow
is true).
arrow
is true).
arrow
to false.
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com