MoCellFilter Class Reference
[Attributes]

MeshViz Property node that defines a cell filter. More...

#include <MeshVizXLM/mapping/nodes/MoCellFilter.h>

Inheritance diagram for MoCellFilter:
MoActionNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 MoCellFilter ()
virtual void setCellFilter (const MiCellFilter *cellFilter)
virtual void reset ()
virtual const MiCellFiltergetCellFilter ()

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

MeshViz Property node that defines a cell filter.

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.

Note:
Each time the current MiCellFilter is updated, touch() must be called to mark the node as modified. However MiCellFilter::getTimeStamp() must return a different value than before to actually trigger a new rendering.

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

MiCellFilter, MiCellFilterI, MiCellFilterIj, MiCellFilterIjk

See related examples:

EclipseMeshViz, PEBIMeshViz, QuadraticWheelHexa27, Turbine, GridPlaneSlice, InterpolatedLogicalSlice, LogicalSlice, Outline, QuadraticHexa20, QuadraticHexa27, QuadraticTetra10, QuadraticTube, QuadraticWedge18, QuadraticWheelHexa20, QuadraticWheelTetra10, QuadraticWheelWedge18, SurfaceCellFilter, TutorialPicking4, TutorialPicking5, Vectors, WheelHexa8


Constructor & Destructor Documentation

MoCellFilter::MoCellFilter (  ) 

Constructor.


Member Function Documentation

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.

Note:
When setting a new filter, the MiCellFilter::getTimeStamp() must return a different value than previously to actually take into account the change of filter.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/