Package com.openinventor.meshviz.graph
Class PoLegend
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoItemLegend
,PoValueLegend
Abstract class for legend representations.
This class handles the title, the values, the margins and the path of the legend.
All legend texts depend on the current miscellaneous text attributes which define the font name, line length and so on. If the method setMiscTextAttr(textAttr) is called, the current miscellaneous text attributes are defined by "textAttr". Otherwise the current miscellaneous text attributes are specified in the current inherited state (cf property node PoMiscTextAttr
).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Type of values incrementation.static enum
Type of margins.static enum
Type of position.static enum
Text path.static enum
Type of visibility.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 SoSFFloat
Ratio between width and height of the colored boxes in the legend.final SoSFEnum
<PoLegend.IncrementTypes> Increment type for the values of legend.final SoSFFloat
Bottom margin.final SoSFFloat
Left margin.final SoSFFloat
Right margin.final SoSFFloat
Top margin.final SoSFEnum
<PoLegend.MarginTypes> Margin type.final SoSFUShort
Number of columns of the legend.final SoSFString
Font name of the title.final SoSFFloat
Font size of the title.final SoSFEnum
<PoLegend.TextPaths> Title path.final SoSFEnum
<PoLegend.Positions> Title position.final SoSFString
Title string.final SoSFEnum
<PoLegend.Visibilities> Title visibility.final SoSFString
String to be concatenated.final SoSFBool
Visibility of a string concatenated to the values.final SoSFString
Font name of values.final SoSFEnum
<PoLegend.Positions> Values positions.final SoSFEnum
<PoLegend.Visibilities> Values visibility.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Gets a reference to aPbMiscTextAttr
for miscellaneous text attributes.void
setMiscTextAttr
(PbMiscTextAttr textAttr) Sets a reference to aPbMiscTextAttr
for miscellaneous text attributes of all legend texts.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
-
titleVisibility
Title visibility. -
titlePosition
Title position. -
titlePath
Title path. . -
titleFontSize
Font size of the title. -
titleFontName
Font name of the title. If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes. -
titleString
Title string. -
valueVisibility
Values visibility. -
valuePosition
Values positions. -
valueFontName
Font name of values. If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes. -
valueAddStringVisibility
Visibility of a string concatenated to the values. -
valueAddString
String to be concatenated. -
marginType
Margin type. -
marginLeft
Left margin. -
marginRight
Right margin. -
marginBottom
Bottom margin. -
marginTop
Top margin. -
incrementType
Increment type for the values of legend. (the values can be incremented vertically or horizontally). -
numColumns
Number of columns of the legend. -
boxRatio
Ratio between width and height of the colored boxes in the legend.
-
-
Method Details
-
getMiscTextAttr
Gets a reference to aPbMiscTextAttr
for miscellaneous text attributes. -
setMiscTextAttr
Sets a reference to aPbMiscTextAttr
for miscellaneous text attributes of all legend texts. If this method is not called (or called passing NULL as argument), this is the miscellaneous text attributes defined in the current inherited state (defined with the property nodePoMiscTextAttr
) which are used. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class.
-