Class to build a label field. More...
#include <MeshViz/graph/PoLabelField.h>
Class to build a label field in the plane XY. This class represents a set of 2D points annotated by a string and a value.
All numerical values (if there are visible) depend on the current numerical display format. If the method setFormat(format) is called, the current numeric display format is "format". Otherwise the current numeric display format is specified in the current inherited state (cf property node PoNumericDisplayFormat).
point | 0 0 |
string | "" |
value | 0 |
concatType | STRING_BEFORE_VALUE |
fontSize | 1 |
justification | LEFT |
verticalJustification | BASE |
coordinateType | COORDINATE_IN_CURRENT_UNIT |
PoLabelField::PoLabelField | ( | ) | [inline] |
Default constructor.
PoLabelField::PoLabelField | ( | int | numPoints, | |
const SbVec2f * | _point, | |||
const char ** | _string, | |||
const float * | _value, | |||
float | _fontSize, | |||
ConcatType | type = STRING_BEFORE_VALUE , |
|||
Justification | _justification = LEFT , |
|||
VerticalJustification | _verticalJustification = BASE | |||
) | [inline] |
Constructor.
static const SoNodekitCatalog* PoLabelField::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoGraphMaster.
static SoType PoLabelField::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoGraphMaster.
const PbNumericDisplayFormat* PoLabelField::getFormat | ( | ) | const |
Gets a reference to a PbNumericDisplayFormat object for the numeric display format for the values.
virtual const SoNodekitCatalog* PoLabelField::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoGraphMaster.
virtual SoType PoLabelField::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoGraphMaster.
virtual void PoLabelField::rebuild | ( | ) | [virtual] |
void PoLabelField::setFormat | ( | PbNumericDisplayFormat * | format | ) |
Sets a reference to a PbNumericDisplayFormat object for the numeric display format for the values.
If this method is not called (or called passing NULL as argument), this is the numeric display format defined in the current inherited state (defined with the property node PoNumericDisplayFormat) which is used.
Concatenation type between values and strings.
Type of coordinates.
Font size for strings to display.
Horizontal justification.
List of points which are the coordinates of the strings.
List of strings to display.
To be displayed, the number of strings must be equal to the number of points of point.
List of values to display.
The values are converted into strings according to the current numerical display format. To be displayed, the number of values must be equal to the number of points of point.
Vertical justification.
Use enum VerticalJustification.