Class MoStringSet
- All Implemented Interfaces:
SafeDisposable
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:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Constructor Details
-
MoStringSet
public MoStringSet()Constructs a property node to store a string data set.
-
-
Method Details
-
doAction
-
setStringSet
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
Gets the string set.- Returns:
- the string set
-