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 classUtility class to store connected representation parameters.static classUtility 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 MoMeshElementReturns the mesh element from the specified traversal state.Returns the current representation connected to the mesh from the specified traversal state.static MoMeshElement.MeshReturns the current mesh from the specified traversal state.longReturns node time stamp value.static voidset(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
getClassStackIndexMethods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, pushMethods 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
Meshobject containing current mesh parameters
-
getConnectedRepresentation
Returns the current representation connected to the mesh from the specified traversal state.- Parameters:
state- traversal state- Returns:
- a
ConnectedRepresentationobject containing the current connected representation
-
get
Returns the mesh element from the specified traversal state.- Parameters:
state- traversal state- Returns:
- a
MoMeshElementobject containing the current mesh element
-