Abstract Inventor node defining a mesh. More...
#include <MeshViz/nodes/PoMeshProperty.h>
Public Types | |
enum | DataBinding { PER_CELL, PER_NODE } |
Public Member Functions | |
virtual SoType | getTypeId () const |
PoMeshProperty () | |
virtual const PbMesh * | getMesh () const =0 |
virtual void | addValuesSet (int index, const float *val, const SbString &set_name="") |
virtual void | addValuesSet (int index, const float *val, DataBinding binding, const SbString &set_name="") |
virtual void | addStringsSet (int index, const SbString *val, const SbString &set_name="") |
virtual void | addVecsSet (int index, const SbVec3f *val, const SbString &set_name="") |
Static Public Member Functions | |
static SoType | getClassTypeId () |
PoMeshProperty::PoMeshProperty | ( | ) |
Constructor.
virtual void PoMeshProperty::addStringsSet | ( | int | index, | |
const SbString * | val, | |||
const SbString & | set_name = "" | |||
) | [virtual] |
Convenience method to add a new set of string values to the mesh.
See also PbMesh::addStringsSet().
virtual void PoMeshProperty::addValuesSet | ( | int | index, | |
const float * | val, | |||
DataBinding | binding, | |||
const SbString & | set_name = "" | |||
) | [virtual] |
Adds a set of scalar values that can be located either at nodes or at cells.
index | the index of the new set added. | |
val | the array of values. Its size must be either the number of nodes or the number of cells depending on the binding argument. | |
binding | specifies the location of the values. | |
set_name | string associated with this set of values. |
NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of PoMeshProperty.
virtual void PoMeshProperty::addValuesSet | ( | int | index, | |
const float * | val, | |||
const SbString & | set_name = "" | |||
) | [virtual] |
Convenience method to add a new set of scalar values to the mesh.
The values are localized at nodes so the number of values in a set must be equal to the number of nodes in the mesh.
index | the index of the new set added | |
val | the array of values. Its size must be the number of nodes | |
set_name | string associated to this set of values |
NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of PoMeshProperty.
virtual void PoMeshProperty::addVecsSet | ( | int | index, | |
const SbVec3f * | val, | |||
const SbString & | set_name = "" | |||
) | [virtual] |
Convenience method to add a new set of vector values to the mesh.
See also PbMesh::addVecsSet().
static SoType PoMeshProperty::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoNode.
Reimplemented in PoCartesianGrid2D, PoCartesianGrid3D, PoHexahedronMesh3D, PoIndexedMesh2D, PoIndexedMesh3D, PoIrregularMesh1D, PoParalCartesianGrid2D, PoParalCartesianGrid3D, PoPolarGrid2D, PoQuadrangleMesh2D, PoRegularCartesianGrid2D, PoRegularCartesianGrid3D, PoRegularMesh1D, PoTetrahedronMesh3D, and PoTriangleMesh2D.
virtual const PbMesh* PoMeshProperty::getMesh | ( | ) | const [pure virtual] |
Gets the instance of a derived class of PbMesh.
Implemented in PoCartesianGrid2D, PoCartesianGrid3D, PoHexahedronMesh3D, PoIndexedMesh2D, PoIndexedMesh3D, PoIrregularMesh1D, PoParalCartesianGrid2D, PoParalCartesianGrid3D, PoPolarGrid2D, PoQuadrangleMesh2D, PoRegularCartesianGrid2D, PoRegularCartesianGrid3D, PoRegularMesh1D, PoTetrahedronMesh3D, and PoTriangleMesh2D.
virtual SoType PoMeshProperty::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoNode.
Reimplemented in PoCartesianGrid2D, PoCartesianGrid3D, PoHexahedronMesh3D, PoIndexedMesh2D, PoIndexedMesh3D, PoIrregularMesh1D, PoParalCartesianGrid2D, PoParalCartesianGrid3D, PoPolarGrid2D, PoQuadrangleMesh2D, PoRegularCartesianGrid2D, PoRegularCartesianGrid3D, PoRegularMesh1D, PoTetrahedronMesh3D, and PoTriangleMesh2D.