Rendering node that displays a vector data set. More...
#include <MeshVizXLM/mapping/nodes/MoMeshVector.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoMeshVector () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFInt32 | vectorSetId |
SoSFFloat | scaleFactor |
SoSFFloat | shiftFactor |
SoSFBool | arrow |
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.
colorScalarSetId | 0 |
vectorSetId | 0 |
scaleFactor | 1.0 |
shiftFactor | 0.0 |
arrow | true |
Turbine, CellShape, ClipLine, FenceSlice, GridPlaneSlice, InterpolatedLogicalSlice, Isoline, LogicalSlice, Outline, Streamlines, Vectors
MoMeshVector::MoMeshVector | ( | ) |
Constructor.
static SoType MoMeshVector::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoMeshRepresentation.
virtual SoType MoMeshVector::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoMeshRepresentation.
Do not draw arrows on vectors if set to false.
Default is true.
The scale factor to apply to the vector field to resize the representation.
Default is 1.0. All values are accepted. If scaleFactor is 0, the representation is empty.
The shift factor to apply to the representation of each vector.
Each vector is translated along its direction by the value of shiftFactor.
Default is 0.0 (no shift). All values are accepted.
The following images illustrate the effect of shiftFactor on the vector field representation, with a vector set using a PER_NODE binding.
shiftFactor = 0.0
shiftFactor = -0.5
shiftFactor = -1.0
Specifies the vector set to display.
During traversal of the scene graph, vector sets are accumulated in a list of vector sets. vectorSetId is an index in this list. Default is 0 meaning the first set in the list.