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 enum
Type of string concatenation.static enum
Type of coordinates.static enum
static enum
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
Nested 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 SoSFFloat
Font size for strings to display.Horizontal justification.final SoMFVec2f
List of points which are the coordinates of the strings.final SoMFString
List of strings to display.final SoMFFloat
List of values to display.Vertical justification.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields 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 SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Gets a reference to aPbNumericDisplayFormat
object for the numeric display format for the values.void
setFormat
(PbNumericDisplayFormat format) Sets a reference to aPbNumericDisplayFormat
object 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, touchKit
Methods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
Methods 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, write
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
Methods 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
PoBase
description), - 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 aPbNumericDisplayFormat
object for the numeric display format for the values. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class. -
setFormat
Sets a reference to aPbNumericDisplayFormat
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 nodePoNumericDisplayFormat
) which is used.
-