24#ifndef _PO_LABEL_FIELD_
25#define _PO_LABEL_FIELD_
228 const float *_value,
float _fontSize,
231 { init(
FALSE, numPoints, _point, _string, _value, _fontSize, type, _justification,
232 _verticalJustification) ; }
256 static void initClass() ;
257 static void exitClass() ;
263 virtual void setDefaultOnNonWritingFields() ;
267 virtual void basicObjectChange(
PbBase *basicObj) ;
270 virtual void addElementsAllCaches() ;
271 virtual void preRebuild() ;
275 void init(
SbBool isDefault,
int numPoints=0,
const SbVec2f *_point=NULL,
276 const char **_string=NULL,
277 const float *_value=NULL,
float _fontSize=1.0,
285 FieldSensorList m_fieldSensorList ;
#define TRUE
Possible value of SbBool.
#define FALSE
Possible value of SbBool.
#define SO_KIT_CATALOG_ENTRY_HEADER(partName)
#define SO_KIT_HEADER(className)
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for all b...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to build a label f...
const PbNumericDisplayFormat * getFormat() const
Gets a reference to a PbNumericDisplayFormat object for the numeric display format for the values.
SoMFString string
List of strings to display.
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)
Constructor.
SoSFEnum coordinateType
Type of coordinates.
SoSFEnum verticalJustification
Vertical justification.
CoordinateType
Type of coordinates.
@ COORDINATE_IN_CURRENT_UNIT
Coordinates are in current unit.
@ COORDINATE_IN_DOMAIN
Coordinates are in the current domain.
ConcatType
Type of string concatenation.
@ VALUE_BEFORE_STRING
Values are concatenated before strings.
@ VALUE_ABOVE_STRING
Values are concatenated above strings.
@ STRING_BEFORE_VALUE
Strings are concatenated before values.
@ STRING_ABOVE_VALUE
Strings are concatenated above values.
SoSFEnum justification
Horizontal justification.
SoMFVec2f point
List of points which are the coordinates of the strings.
SoSFEnum concatType
Concatenation type between values and strings.
virtual void rebuild()
Forces node-kit rebuilding.
SoSFFloat fontSize
Font size for strings to display.
@ HALF
Strings are aligned on the half of its characters.
@ BASE
Strings are aligned on the base of its characters.
@ BOTTOM
Strings are aligned on the bottom of its characters.
@ TOP
Strings are aligned on the top of its characters.
@ CAP
Strings are aligned on the capital of its characters.
@ RIGHT
Right edges of all string are aligned.
@ LEFT
Left edges of all string are aligned.
@ CENTER
Centered of all strings are aligned.
SoMFFloat value
List of values to display.
PoLabelField()
Default constructor.
void setFormat(PbNumericDisplayFormat *format)
Sets a reference to a PbNumericDisplayFormat object for the numeric display format for the values.
Maintains a list of pointers to fields.
Multiple-value field containing any number of floating point values.
Multiple-value field containing any number of strings.
Multiple-value field containing any number of two-dimensional vectors.
Field containing an enumerated value.
Field containing a floating-point value.