PoCellFilter Class Reference
[Property/Data]

MeshViz Interface class defining a filter of cells. More...

#include <MeshViz/nodes/PoCellFilter.h>

Inheritance diagram for PoCellFilter:
PoNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject PoIntervalCellFilter

List of all members.

Public Member Functions

virtual SoType getTypeId () const
virtual SbBool acceptCell (int cell_index, float cell_value) const =0

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

MeshViz 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 method acceptCell() 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 field PoMesh::valuesIndexForCellFilter.

WARNING: At this time, the classes inherited from PoMesh2D ignore the cell filter.


Member Function Documentation

virtual SbBool PoCellFilter::acceptCell ( int  cell_index,
float  cell_value 
) const [pure virtual]

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 (see PoMesh::valuesIndexForCellFilter).

Implemented in PoIntervalCellFilter.

static SoType PoCellFilter::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from PoNode.

Reimplemented in PoIntervalCellFilter.

virtual SoType PoCellFilter::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from PoNode.

Reimplemented in PoIntervalCellFilter.


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/