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
-
public class MoCellRangesElement extends SoAccumulatedElement
Element that stores the current accumulated cell ranges and computes the intersection of all these.- See Also:
MoCellRanges
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidadd(SoState state, MoCellRanges cellRanges)Add the given cell ranges for the specified traversal state.static long[]getBegin(SoState state, int numDimension)Returns the current begin cell index from the specified traversal state.static long[]getEnd(SoState state, int numDimension)Returns the current end cell index from the specified traversal state.voidpush(SoState state)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 Detail
-
push
public void push(SoState state)
Description copied from class:SoAccumulatedElementPushes element. Allows for side effects to occur. Default methods do nothing.- Overrides:
pushin classSoAccumulatedElement
-
add
public static void add(SoState state, MoCellRanges cellRanges)
Add the given cell ranges for the specified traversal state.- Parameters:
state- traversal statecellRanges- cell ranges node
-
getBegin
public static long[] getBegin(SoState state, int numDimension)
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_IDif the beginning is not defined.
-
getEnd
public static long[] getEnd(SoState state, int numDimension)
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_IDif the end is not defined.
-
-