Class MoCellRanges
- 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.MoCellRanges
-
- All Implemented Interfaces:
SafeDisposable
public class MoCellRanges extends MoActionNode
Property node that stores cell ranges for meshes.This node allows to restrict displayed cells from a mesh in a range of indices for all subsequent
MoMeshRepresentation
nodes. Rendering usingMoCellRanges
is more efficient than using aMoCellFilter
with a customMiCellFilter
.This node adds cell ranges to the list of cell ranges in the traversal state.
During traversal of the scene graph,
MoCellRanges
nodes are accumulated into a list so that a representation retrieves an intersection of these cell ranges. The representation takes then into account only the cells from the mesh with indices between the minimum and maximum index resulting from the cell ranges intersections.Note:
Applies to all representations for structured volume mesh but only applies toMoMeshSkin
,MoMeshOutline
on unstructured volume mesh andMoMeshSurface
,MoMeshOutline
on surface mesh.
-
-
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 Modifier and Type Field Description SoMFInt64
max
Maximum cell index values for displaying the mesh representation.SoMFInt64
min
Minimum cell index values for displaying the mesh representation.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description MoCellRanges()
Constructs an empty cell range.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction(SoAction action)
-
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
-
-
-
-
Field Detail
-
min
public SoMFInt64 min
Minimum cell index values for displaying the mesh representation.This field is empty by default.
- If the field is empty, the representation extraction starts from the first cell of the mesh.
- If the mesh is unstructured, a single value specifies the index of the first cell index to use.
- If the mesh is a structured surface mesh, two values specify the first I and J cell indices to use (In this case, if less than two values are provided, the field is ignored.).
- If the mesh is a structured volume mesh, three values specify the first I, J and K cell indices to use (In this case, if less than three values are provided, the field is ignored.).
-
max
public SoMFInt64 max
Maximum cell index values for displaying the mesh representation.This field is empty by default.
- If the field is empty, the representation extraction runs up to the last cell of the mesh.
- If the mesh is unstructured, a single value specifies the index of the last cell index to use.
- If the mesh is a structured surface mesh, two values specify the last I and J cell indices to use (In this case, if less than two values are provided, the field is ignored.).
- If the mesh is a structured volume mesh, three values specify the last I, J and K cell indices to use (In this case, if less than three values are provided, the field is ignored.).
-
-