Class for a valued markers field. More...
#include <MeshViz/graph/PoValuedMarkerField.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoValuedMarkerField () | |
PoValuedMarkerField (int numPoints, const SbVec2f *_point, const float *_value, const float *_size) | |
virtual void | rebuild () |
void | setDataMapping (PbDataMapping *dataMapping) |
const PbDataMapping * | getDataMapping () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoMFVec2f | point |
SoMFFloat | value |
SoMFFloat | size |
SoSFString | markerString |
Class to build a valued markers field in the plane XY. A valued markers field is a list of markers which can be colored and can have different sizes. By default all markers have the same size and the same color.
Colors of the markers 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 markers get the same color which is the inherited color.
point | 0 0 |
value | 0 |
size | 0 |
markerString | "." |
PoValuedMarkerField::PoValuedMarkerField | ( | ) | [inline] |
Default constructor.
PoValuedMarkerField::PoValuedMarkerField | ( | int | numPoints, | |
const SbVec2f * | _point, | |||
const float * | _value, | |||
const float * | _size | |||
) | [inline] |
Constructor.
static const SoNodekitCatalog* PoValuedMarkerField::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoGraphMaster.
static SoType PoValuedMarkerField::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoGraphMaster.
const PbDataMapping* PoValuedMarkerField::getDataMapping | ( | ) | const |
Gets a reference to a PbDataMapping object, used to the association value- color.
virtual const SoNodekitCatalog* PoValuedMarkerField::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoGraphMaster.
virtual SoType PoValuedMarkerField::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoGraphMaster.
virtual void PoValuedMarkerField::rebuild | ( | ) | [virtual] |
void PoValuedMarkerField::setDataMapping | ( | PbDataMapping * | dataMapping | ) |
Sets a reference to a PbDataMapping object, used to the association value- color.
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.
The markers are defined by a string.
If this field is equal to ".", the markers are SoPointSet shapes, otherwise SoText2 shapes. To change the font of text markers, set the catalog part appearance.font.name . Be careful, for the moment, text markers are not vertically aligned.
List of coordinates for the markers.
List of sizes used to calculate the marker sizes.
If the number of sizes is equal to number of points of point , marker have a size depending on size, otherwise all the markers have the same size.
List of values used to color the markers.
If the number of values is equal to number of points of point , marker have a color depending on the current data mapping (see description of PoValuedMarkerField), otherwise all the markers have the same color.