Class MoMeshElement


public class MoMeshElement extends SoReplacedElement
Element that stores the current mesh.
See Also:
  • 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 state
      node - mesh node
      meshType - the mesh type
      mesh - the mesh to set
      meshRepresentation - connected mesh representation
      nodeTimeStamp - 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