Class MoScalarSetElementI


public class MoScalarSetElementI extends SoAccumulatedElement
Element that stores the current list of scalar sets for unstructured meshes.
See Also:
  • Method Details

    • push

      public void push(SoState state)
      Description copied from class: SoAccumulatedElement
      Pushes element. Allows for side effects to occur. Default methods do nothing.
      Overrides:
      push in class SoAccumulatedElement
    • add

      public static void add(SoState state, SoNode node, MiScalardSetI scalarSet)
      Adds a scalar set to the current list of sets for the specified traversal state and node.
      Parameters:
      state - traversal state
      node - scalar set node
      scalarSet - new scalar set to add
    • get

      public static MiScalardSetI get(SoState state, int index)
      Gets the element number index from the specified traversal state.
      Parameters:
      state - traversal state
      index - index of the element to return
      Returns:
      the element at the specified position
    • getNum

      public static int getNum(SoState state)
      Gets number of elements in the specified state.
      Parameters:
      state - traversal state
      Returns:
      number of elements