Class MoStringSet

  • All Implemented Interfaces:
    SafeDisposable

    public class MoStringSet
    extends MoActionNode
    Property node that stores any kind of string data set.

    This node adds an object implementing the MiStringSetI, MiStringSetIj or MiStringSetIjk interface to the list of string sets in the traversal state.

    MoMeshCellShape node will use this data set to display cell and node names. During traversal of the scene graph, MoStringSet nodes are accumulated into a list so that the cells extraction can retrieve several string sets during the same computation.

    Note:
    Each time the current MiStringSet 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.
    String sets for unstructured meshes (MiStringSetI), structured volume meshes (MiStringSetIjk) and structured surface meshes ( MiStringSetIj) are stored in the same list.

    See Also:
    MoMeshCellShape, MoStringSetElement, MiStringSetI, MiStringSetIj, MiStringSetIjk
    • Constructor Detail

      • MoStringSet

        public MoStringSet()
        Constructs a property node to store a string data set.
    • Method Detail

      • setStringSet

        public void setStringSet​(MiStringSet stringSet)
        Sets the string set. This node will automatically be marked as modified by calling touch().

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

        Parameters:
        stringSet - the string set
      • reset

        public void reset()
        Reset the associated string set to null (as if setStringSet(MiStringSet) was called with null). Marks the node as modified by calling touch()
      • getStringSet

        public MiStringSet getStringSet()
        Gets the string set.
        Returns:
        the string set