Property node that defines a cell filter. More...
#include <MeshVizXLM/mapping/nodes/MoCellFilter.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoCellFilter () | |
virtual void | setCellFilter (const MiCellFilter *cellFilter) |
virtual void | reset () |
virtual const MiCellFilter * | getCellFilter () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Filtering cells is a way to specify which cells are used and which cells are ignored during a mesh extraction. The application must create a class implementing the MiCellFilter interface. A cell filter class must implement the method acceptCell() with either 1, 2 or 3 indices as arguments. When the method acceptCell() returns false, the cell identified by these indices is not taken into account by the extraction. It is as if the mesh does not contain this cell.
MiCellFilter, MiCellFilterI, MiCellFilterIj, MiCellFilterIjk
EclipseMeshViz, PEBIMeshViz, QuadraticWheelHexa27, Turbine, GridPlaneSlice, InterpolatedLogicalSlice, LogicalSlice, Outline, QuadraticHexa20, QuadraticHexa27, QuadraticTetra10, QuadraticTube, QuadraticWedge18, QuadraticWheelHexa20, QuadraticWheelTetra10, QuadraticWheelWedge18, SurfaceCellFilter, TutorialPicking4, TutorialPicking5, Vectors, WheelHexa8
MoCellFilter::MoCellFilter | ( | ) |
Constructor.
virtual const MiCellFilter* MoCellFilter::getCellFilter | ( | ) | [virtual] |
Gets the cell filter interface.
Use RTTI to find out which derived class it is.
static SoType MoCellFilter::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoActionNode.
virtual SoType MoCellFilter::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoActionNode.
virtual void MoCellFilter::reset | ( | ) | [virtual] |
Reset the cell filter interface to NULL (as if setCellFilter was given a NULL pointer).
Marks this node as modified by calling touch()
virtual void MoCellFilter::setCellFilter | ( | const MiCellFilter * | cellFilter | ) | [virtual] |
Provides a common interface to set all cell filter types (MiCellFilterI, MiCellFilterIj and MiCellFilterIjk) and marks the node as modified by calling touch().
The given cellFilter is checked to ensure a required type is provided. If not, NULL is set instead.