Class MoMeshStreamline
- All Implemented Interfaces:
SafeDisposable
Displays a list of MiLineMeshCurvilinear meshes containing
streamlines starting from a list of source points and probes the input mesh
to compute the values at the streamline nodes (See the "See Also" Section for
settings).
A streamline is a line that is everywhere tangent to a vector field. The
vector field is specified by the vec3SetId field. This is an index
into the list of vector sets existing in the traversal state (see the
MoVec3Setxxx nodes).
Note: Streamlines are meaningless for unsteady flow, because time is not taken into account during the computation of the lines. Streamlines are integrated from a given set of vectors using a Runge/Kutta method of order 2.
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIntegration directionNested 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 TypeFieldDescriptionSets the direction for the streamline integration.
The default value isFORWARD.Sets the step length factor for the streamline integration.
The default value is 0.3.Sets the maximum length of the streamline.
The default value is 0, meaning infinite length.Sets the maximum life time of the streamline.
The default value is 0, meaning infinite life time.Sets the maximum step number during the streamline integration.
The default value is 0, meaning infinite step number.Sets the minimum speed of the streamline.
The default value is 0, meaning no speed constraint.Starting points for the streamline computation.
The default value is empty.Field representing the vector set node to be used to compute the streamlines.Fields inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoMeshRepresentation
colorScalarSetIdFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the streamline extractor for hexahedron IJK meshes to reuse outside this node.Gets the streamline extractor for IJK meshes to reuse outside this node.Gets the streamline extractor for unstructured meshes to reuse outside this node.
Note: The returned object may benullif no unstructured mesh has been set in the scene graph or if no render action has traversed the scene graph.Methods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoMeshRepresentation
doAction, setExtractorCallbackMethods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoMeshBaseRepresentation
affectsState, writeMethods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, getRenderEngineMode, GLRender, handleEvent, pick, rayPickMethods inherited from class com.openinventor.inventor.nodes.SoNode
copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touchMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, 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
-
vec3SetId
Field representing the vector set node to be used to compute the streamlines. During traversal of the scene graph, vector set nodes are accumulated in a list of vector sets.vec3SetIdis an index in this list.
The default value is 0 meaning to use the first set in the list. -
startingPoints
Starting points for the streamline computation.
The default value is empty. -
maxLifeTime
Sets the maximum life time of the streamline.
The default value is 0, meaning infinite life time. -
maxLength
Sets the maximum length of the streamline.
The default value is 0, meaning infinite length. -
minSpeed
Sets the minimum speed of the streamline.
The default value is 0, meaning no speed constraint. -
integrationStepLengthFactor
Sets the step length factor for the streamline integration.
The default value is 0.3. -
maxStepNumber
Sets the maximum step number during the streamline integration.
The default value is 0, meaning infinite step number. -
direction
Sets the direction for the streamline integration.
The default value isFORWARD.
-
-
Constructor Details
-
MoMeshStreamline
public MoMeshStreamline()Constructs a rendering node with default values.vec3SetId = 0startingPointsis emptymaxLifeTime = 0maxLength = 0minSpeed = 0integrationStepLengthFactor = 0.3maxStepNumber = 0direction = FORWARD
-
-
Method Details
-
getUnstructuredExtractor
Gets the streamline extractor for unstructured meshes to reuse outside this node.
Note: The returned object may benullif no unstructured mesh has been set in the scene graph or if no render action has traversed the scene graph.- Returns:
- the streamline extractor for unstructured meshes
-
getIjkExtractor
Gets the streamline extractor for IJK meshes to reuse outside this node.
Note: The returned object may benullif no IJK mesh has been set in the scene graph or if no render action has traversed the scene graph.- Returns:
- the streamline extractor for unstructured meshes
-
getHexahedronIjkExtractor
Gets the streamline extractor for hexahedron IJK meshes to reuse outside this node.
Note: The returned object may benullif no hexahedron IJK mesh has been set in the scene graph or if no render action has traversed the scene graph.- Returns:
- the streamline extractor for unstructured meshes
-