PoMeshProperty Class Reference
[Property/Data]

MeshViz Abstract Inventor node defining a mesh. More...

#include <MeshViz/nodes/PoMeshProperty.h>

Inheritance diagram for PoMeshProperty:
PoNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject PoCartesianGrid2D PoCartesianGrid3D PoHexahedronMesh3D PoIndexedMesh2D PoIndexedMesh3D PoIrregularMesh1D PoParalCartesianGrid2D PoParalCartesianGrid3D PoPolarGrid2D PoQuadrangleMesh2D PoRegularCartesianGrid2D PoRegularCartesianGrid3D PoRegularMesh1D PoTetrahedronMesh3D PoTriangleMesh2D

List of all members.

Public Types

enum  DataBinding {
  PER_CELL,
  PER_NODE
}

Public Member Functions

virtual SoType getTypeId () const
 PoMeshProperty ()
virtual const PbMeshgetMesh () 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 ()

Detailed Description

MeshViz Abstract Inventor node defining a mesh.


Member Enumeration Documentation

Data binding.

Specifies how data is specified (i.e., per cell or per node) for a data set.

Enumerator:
PER_CELL 

The data set contains one data value per cell.

PER_NODE 

The data set contains one data value per node.


Constructor & Destructor Documentation

PoMeshProperty::PoMeshProperty (  ) 

Constructor.


Member Function Documentation

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.

Parameters:
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.
See also:
PbMesh::addValuesSet().

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.

Parameters:
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
See also:
PbMesh::addValuesSet()

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]
virtual const PbMesh* PoMeshProperty::getMesh (  )  const [pure virtual]
virtual SoType PoMeshProperty::getTypeId (  )  const [virtual]

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/