Class MoMeshElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoReplacedElement
com.openinventor.meshvizxlm.mapping.elements.MoMeshElement
Element that stores the current mesh.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Utility class to store connected representation parameters.static class
Utility class to store mesh parameters.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionstatic MoMeshElement
Returns the mesh element from the specified traversal state.Returns the current representation connected to the mesh from the specified traversal state.static MoMeshElement.Mesh
Returns the current mesh from the specified traversal state.long
Returns node time stamp value.static void
set
(SoState state, SoNode node, MoMeshVizDataMapping.MeshType meshType, MiMesh mesh, MoMeshRepresentation meshRepresentation, long nodeTimeStamp) Sets the current mesh for the specified traversal state and node.Methods inherited from class com.openinventor.inventor.elements.SoReplacedElement
getClassStackIndex
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getTimeStamp
public long getTimeStamp()Returns node time stamp value.- Returns:
- time stamp value
-
set
public static void set(SoState state, SoNode node, MoMeshVizDataMapping.MeshType meshType, MiMesh mesh, MoMeshRepresentation meshRepresentation, long nodeTimeStamp) Sets the current mesh for the specified traversal state and node.- Parameters:
state
- traversal statenode
- mesh nodemeshType
- the mesh typemesh
- the mesh to setmeshRepresentation
- connected mesh representationnodeTimeStamp
- node time stamp value
-
getMesh
Returns the current mesh from the specified traversal state.- Parameters:
state
- traversal state- Returns:
- a
Mesh
object containing current mesh parameters
-
getConnectedRepresentation
Returns the current representation connected to the mesh from the specified traversal state.- Parameters:
state
- traversal state- Returns:
- a
ConnectedRepresentation
object containing the current connected representation
-
get
Returns the mesh element from the specified traversal state.- Parameters:
state
- traversal state- Returns:
- a
MoMeshElement
object containing the current mesh element
-