Class to build a points field bars. More...
#include <MeshViz/graph/PoPointsFieldBars.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoPointsFieldBars () | |
PoPointsFieldBars (int numPoints, const SbVec3f *_point, const float *_value, float _width, float _height) | |
virtual void | rebuild () |
void | setDataMapping (PbDataMapping *dataMapping) |
const PbDataMapping * | getDataMapping () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoMFVec3f | point |
SoMFFloat | value |
SoSFFloat | width |
SoSFFloat | height |
Class to build parallelepipeds based on a point field. This class generates a set of parallelepipeds where the bases are on the plane XY and the heights are given by the altitude for each point on the point field. The parallelepipeds are colored as a function of values for each point.
Colors of the bars depend on the current data mapping. If the method setDataMapping(dataMapping) is called, the current data mapping is "dataMapping". Otherwise the current data mapping is specified in the current inherited state (cf property node PoDataMapping and its derived classes). If there is no current data-mapping (i.e setDataMapping() not called and no PoDataMapping node traversed before in the scene graph), all bars get the same color which is the inherited color.
point | 0 0 0 |
value | 0.0 |
width | 1.0 |
height | 1.0 |
PoPointsFieldBars::PoPointsFieldBars | ( | ) | [inline] |
Default constructor.
PoPointsFieldBars::PoPointsFieldBars | ( | int | numPoints, | |
const SbVec3f * | _point, | |||
const float * | _value, | |||
float | _width, | |||
float | _height | |||
) | [inline] |
Constructor.
static const SoNodekitCatalog* PoPointsFieldBars::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoGraphMaster.
static SoType PoPointsFieldBars::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoGraphMaster.
const PbDataMapping* PoPointsFieldBars::getDataMapping | ( | ) | const |
Gets a reference to a PbDataMapping object to the association color-value.
virtual const SoNodekitCatalog* PoPointsFieldBars::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoGraphMaster.
virtual SoType PoPointsFieldBars::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoGraphMaster.
virtual void PoPointsFieldBars::rebuild | ( | ) | [virtual] |
void PoPointsFieldBars::setDataMapping | ( | PbDataMapping * | dataMapping | ) |
Sets a reference to a PbDataMapping object to the association color-value.
If this method is not called (or called passing NULL as argument), this is the data mapping defined in the current inherited state (defined with the property node PoDataMapping and its derived classes) which is used.
Height of parallelepipeds.
List of points for parallelepipeds.
point[i][2] is the altitude of the i-th parallelepiped.
Values for each point.
If value.getNum() != point.getNum(), the parallelepipeds have all the same color, that is the inherited color.
Width of parallelepipeds.