Package com.openinventor.meshviz.nodes
Class PoCellFilter
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoIntervalCellFilter
public abstract class PoCellFilter extends PoNode
Interface class defining a filter of cells. This abstract class specifies the interface used to filter cells. Filtering cells is a way to specify which cells are used to build the mesh representation. When the methodacceptCell()
returns false, this cell is not taken into account by the representation. It is as if the mesh did not contain this cell.In order to define a custom cell filter, you must create a class derived from this class. The custom cell filter can be based either on a cell's index or its value. The data set used to check if
acceptCell
returns true or false is the current data set during the traversal selected by the fieldPoMesh.valuesIndexForCellFilter
.WARNING: At this time, the classes inherited from
PoMesh2D
ignore the cell filter.
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptCell(int cell_index, float cell_value)
Returns true if the cell is accepted.void
doAction(SoAction action)
void
write(SoWriteAction action)
-
Methods inherited from class com.openinventor.meshviz.nodes.PoNode
callback, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, search
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, copy, copy, distribute, getAlternateRep, getByName, getRenderEngineMode, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, rayPick, setOverride, touch
-
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
-
acceptCell
public boolean acceptCell(int cell_index, float cell_value)
Returns true if the cell is accepted. Accepted cells are used to build a shape.- Parameters:
cell_index
- the index of the cell to be checked.cell_value
- the value of the cell to be checked. This value is an element of the scalar data set currently selected by the representation (seePoMesh.valuesIndexForCellFilter
).
-
write
public void write(SoWriteAction action)
-
-