Class MoScalarSetIj

All Implemented Interfaces:
SafeDisposable

public class MoScalarSetIj extends MoActionNode
Property node that stores a scalar data set for a structured surface mesh.

This node adds an object implementing the MiScalardSetIj interface to the list of structured surface scalar sets in the traversal state.

Subsequent mesh representations will be able to use this data set for extraction, coloring, etc. During traversal of the scene graph, MoScalarSetIj nodes are accumulated into a list so that an extraction can retrieve several scalar sets during the same computation. For example, the first set (located at index 0 in the list) for computing an isosurface and the second set (located at index 1) for coloring it.

Note:
Each time the current MiScalardSetIj is updated, touch() must be called to mark the node as modified. However MiDataSet.getTimeStamp() must return a different value than before to actually trigger a new rendering.
Scalar sets for unstructured meshes (MiScalardSetI), structured volume meshes (MiScalardSetIjk) and structured surface meshes ( MiScalardSetIj) are stored in separate lists.

See Also:
  • Constructor Details

    • MoScalarSetIj

      public MoScalarSetIj()
      Constructs a property node to store a scalar data set.
  • Method Details

    • doAction

      public void doAction(SoAction action)
      Overrides:
      doAction in class SoNode
    • setScalarSet

      public void setScalarSet(MiScalardSetIj scalarSet)
      Sets the scalar set interface. This node will automatically be marked as modified by calling touch().

      Note: When setting a new scalar set, the MiDataSet.getTimeStamp() must return a different value than previously to actually take into account the change of scalar set.

      Parameters:
      scalarSet - the scalar set interface
    • getScalarSet

      public MiScalardSetIj getScalarSet()
      Gets the scalar set interface.
      Returns:
      the scalar set interface