Abstract Inventor field defining a mesh. More...
#include <MeshViz/fields/PoSFMesh.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
void | addValuesSet (int index, const float *val, const SbString &setName="") |
void | addValuesSet (int index, const float *val, PoMeshProperty::DataBinding binding, const SbString &setName="") |
void | addStringsSet (int index, const SbString *val, const SbString &setName="") |
void | addVecsSet (int index, const SbVec3f *val, const SbString &setName="") |
Static Public Member Functions | |
static SoType | getClassTypeId () |
The derived classes of this field contain an instance of class derived from PbMesh.
Convenience methods that adds a set of strings values to the internal PbMesh object.
void PoSFMesh::addValuesSet | ( | int | index, | |
const float * | val, | |||
PoMeshProperty::DataBinding | binding, | |||
const SbString & | setName = "" | |||
) |
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. | |
setName | 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 PoSFMesh.
void PoSFMesh::addValuesSet | ( | int | index, | |
const float * | val, | |||
const SbString & | setName = "" | |||
) |
Convenience methods that adds a set of vector values to the internal PbMesh object.
static SoType PoSFMesh::getClassTypeId | ( | ) | [static] |
Gets the type of this class.
Reimplemented from SoSField.
Reimplemented in PoSFCartesianGrid2D, PoSFCartesianGrid3D, PoSFHexahedronMesh3D, PoSFIndexedMesh2D, PoSFIndexedMesh3D, PoSFIrregularMesh1D, PoSFParalCartesianGrid2D, PoSFParalCartesianGrid3D, PoSFPolarGrid2D, PoSFQuadrangleMesh2D, PoSFRegularCartesianGrid2D, PoSFRegularCartesianGrid3D, PoSFRegularMesh1D, PoSFTetrahedronMesh3D, and PoSFTriangleMesh2D.
virtual SoType PoSFMesh::getTypeId | ( | ) | const [virtual] |
Gets the type of a particular object of this class.
Implements SoTypedObject.
Reimplemented in PoSFCartesianGrid2D, PoSFCartesianGrid3D, PoSFHexahedronMesh3D, PoSFIndexedMesh2D, PoSFIndexedMesh3D, PoSFIrregularMesh1D, PoSFParalCartesianGrid2D, PoSFParalCartesianGrid3D, PoSFPolarGrid2D, PoSFQuadrangleMesh2D, PoSFRegularCartesianGrid2D, PoSFRegularCartesianGrid3D, PoSFRegularMesh1D, PoSFTetrahedronMesh3D, and PoSFTriangleMesh2D.