Class PoLabelField
- All Implemented Interfaces:
SafeDisposable
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).
File format/default:
| point | 0 0 |
| string | "" |
| value | 0 |
| concatType | STRING_BEFORE_VALUE |
| fontSize | 1 |
| justification | LEFT |
| verticalJustification | BASE |
| coordinateType | COORDINATE_IN_CURRENT_UNIT |
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of string concatenation.static enumType of coordinates.static enumstatic enumNested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypesNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFEnum<PoLabelField.ConcatTypes> Concatenation type between values and strings.Type of coordinates.final SoSFFloatFont size for strings to display.Horizontal justification.final SoMFVec2fList of points which are the coordinates of the strings.final SoMFStringList of strings to display.final SoMFFloatList of values to display.Vertical justification.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PoLabelField(SbVec2f[] _point, String[] _string, float[] _value, float _fontSize) Calls PoLabelField(_point, _string, _value, _fontSize, PoLabelField.ConcatTypes.valueOf( PoLabelField.ConcatTypes.STRING_BEFORE_VALUE.getValue() ), PoLabelField.Justifications.valueOf( PoLabelField.Justifications.LEFT.getValue() ), PoLabelField.VerticalJustifications.valueOf( PoLabelField.VerticalJustifications.BASE.getValue() )).PoLabelField(SbVec2f[] _point, String[] _string, float[] _value, float _fontSize, PoLabelField.ConcatTypes type) Calls PoLabelField(_point, _string, _value, _fontSize, type, PoLabelField.Justifications.valueOf( PoLabelField.Justifications.LEFT.getValue() ), PoLabelField.VerticalJustifications.valueOf( PoLabelField.VerticalJustifications.BASE.getValue() )).PoLabelField(SbVec2f[] _point, String[] _string, float[] _value, float _fontSize, PoLabelField.ConcatTypes type, PoLabelField.Justifications _justification) Calls PoLabelField(_point, _string, _value, _fontSize, type, _justification, PoLabelField.VerticalJustifications.valueOf( PoLabelField.VerticalJustifications.BASE.getValue() )).PoLabelField(SbVec2f[] _point, String[] _string, float[] _value, float _fontSize, PoLabelField.ConcatTypes type, PoLabelField.Justifications _justification, PoLabelField.VerticalJustifications _verticalJustification) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Gets a reference to aPbNumericDisplayFormatobject for the numeric display format for the values.voidsetFormat(PbNumericDisplayFormat format) Sets a reference to aPbNumericDisplayFormatobject for the numeric display format for the values.Methods inherited from class com.openinventor.meshviz.graph.PoBase
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKitMethods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildrenMethods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
point
List of points which are the coordinates of the strings. -
string
List of strings to display. To be displayed, the number of strings must be equal to the number of points of point. -
value
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. -
concatType
Concatenation type between values and strings. -
fontSize
Font size for strings to display. -
justification
Horizontal justification. -
verticalJustification
Vertical justification. . -
coordinateType
Type of coordinates.- coordinateType = COORDINATE_IN_DOMAIN: coordinates are expressed in the current domain (cf
PoBasedescription), - coordinateType = COORDINATE_IN_CURRENT_UNIT: coordinates are expressed in the current unit.
- coordinateType = COORDINATE_IN_DOMAIN: coordinates are expressed in the current domain (cf
-
-
Constructor Details
-
PoLabelField
public PoLabelField(SbVec2f[] _point, String[] _string, float[] _value, float _fontSize, PoLabelField.ConcatTypes type) Calls PoLabelField(_point, _string, _value, _fontSize, type, PoLabelField.Justifications.valueOf( PoLabelField.Justifications.LEFT.getValue() ), PoLabelField.VerticalJustifications.valueOf( PoLabelField.VerticalJustifications.BASE.getValue() )). -
PoLabelField
Calls PoLabelField(_point, _string, _value, _fontSize, PoLabelField.ConcatTypes.valueOf( PoLabelField.ConcatTypes.STRING_BEFORE_VALUE.getValue() ), PoLabelField.Justifications.valueOf( PoLabelField.Justifications.LEFT.getValue() ), PoLabelField.VerticalJustifications.valueOf( PoLabelField.VerticalJustifications.BASE.getValue() )). -
PoLabelField
public PoLabelField(SbVec2f[] _point, String[] _string, float[] _value, float _fontSize, PoLabelField.ConcatTypes type, PoLabelField.Justifications _justification) Calls PoLabelField(_point, _string, _value, _fontSize, type, _justification, PoLabelField.VerticalJustifications.valueOf( PoLabelField.VerticalJustifications.BASE.getValue() )). -
PoLabelField
public PoLabelField()Default constructor. -
PoLabelField
public PoLabelField(SbVec2f[] _point, String[] _string, float[] _value, float _fontSize, PoLabelField.ConcatTypes type, PoLabelField.Justifications _justification, PoLabelField.VerticalJustifications _verticalJustification) Constructor.
-
-
Method Details
-
getFormat
Gets a reference to aPbNumericDisplayFormatobject for the numeric display format for the values. -
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class. -
setFormat
Sets a reference to aPbNumericDisplayFormatobject 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 nodePoNumericDisplayFormat) which is used.
-