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
-
public class MoMeshElement extends SoReplacedElement
Element that stores the current mesh.- See Also:
MoMesh
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MoMeshElement.ConnectedRepresentation
Utility class to store connected representation parameters.static class
MoMeshElement.Mesh
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MoMeshElement
get(SoState state)
Returns the mesh element from the specified traversal state.static MoMeshElement.ConnectedRepresentation
getConnectedRepresentation(SoState state)
Returns the current representation connected to the mesh from the specified traversal state.static MoMeshElement.Mesh
getMesh(SoState state)
Returns the current mesh from the specified traversal state.long
getTimeStamp()
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 Detail
-
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
public static MoMeshElement.Mesh getMesh(SoState state)
Returns the current mesh from the specified traversal state.- Parameters:
state
- traversal state- Returns:
- a
Mesh
object containing current mesh parameters
-
getConnectedRepresentation
public static MoMeshElement.ConnectedRepresentation getConnectedRepresentation(SoState state)
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
public static MoMeshElement get(SoState state)
Returns the mesh element from the specified traversal state.- Parameters:
state
- traversal state- Returns:
- a
MoMeshElement
object containing the current mesh element
-
-