Class MoCellRangesElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoAccumulatedElement
com.openinventor.meshvizxlm.mapping.elements.MoCellRangesElement
Element that stores the current accumulated cell ranges and computes the
intersection of all these.
- See Also:
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(SoState state, MoCellRanges cellRanges) Add the given cell ranges for the specified traversal state.static long[]
Returns the current begin cell index from the specified traversal state.static long[]
Returns the current end cell index from the specified traversal state.void
Pushes element.Methods inherited from class com.openinventor.inventor.elements.SoAccumulatedElement
getClassStackIndex
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
push
Description copied from class:SoAccumulatedElement
Pushes element. Allows for side effects to occur. Default methods do nothing.- Overrides:
push
in classSoAccumulatedElement
-
add
Add the given cell ranges for the specified traversal state.- Parameters:
state
- traversal statecellRanges
- cell ranges node
-
getBegin
Returns the current begin cell index from the specified traversal state.- Parameters:
state
- traversal statenumDimension
- number of dimension requested for the cell index- Returns:
- a cell index corresponding to the beginning of the range. Return an
undefined index
MxMeshViz.UNDEFINED_ID
if the beginning is not defined.
-
getEnd
Returns the current end cell index from the specified traversal state.- Parameters:
state
- traversal statenumDimension
- number of dimension requested for the cell index- Returns:
- a cell index corresponding to the ending of the range. Return an
undefined index
MxMeshViz.UNDEFINED_ID
if the end is not defined.
-