Class MoStringSet
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
-
- com.openinventor.meshvizxlm.mapping.nodes.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
orMiStringSetIjk
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 currentMiStringSet
is updated,touch()
must be called to mark the node as modified. HoweverMiDataSet.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
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
-
-
Constructor Summary
Constructors Constructor Description MoStringSet()
Constructs a property node to store a string data set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction(SoAction action)
MiStringSet
getStringSet()
Gets the string set.void
reset()
Reset the associated string set to null (as ifsetStringSet(MiStringSet)
was called with null).void
setStringSet(MiStringSet stringSet)
Sets the string set.-
Methods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, getRenderEngineMode, GLRender, handleEvent, pick, rayPick
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Method Detail
-
setStringSet
public void setStringSet(MiStringSet stringSet)
Sets the string set. This node will automatically be marked as modified by callingtouch()
.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 ifsetStringSet(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
-
-