Class PoValueLegend
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoAutoValueLegend
Values of the legends depend on :
- the current list of isovalues only if this list exists. In this case, values of the legend are the values defined by the current list of isovalues. The current data mapping is only used for coloring boxes of the legend.
- the current data mapping only if the current list of isovalues does no exist. In this case, the values of the legend are the values of the current data mapping. If the current data mapping is linear, about ten values are computed. If the current data mapping is non linear of type
PbNonLinearDataMapping
or it does not exist, the list of legend values is empty. If the current data mapping is non linear of typePbNonLinearDataMapping2
, values of the legend are the values defined by the current data mapping.
If setIsovaluesList(isovaluesList) method is called with "isovaluesList" derived from PbIsovaluesList
, the current isovalues list is "isovaluesList". Otherwise the current isovalues list is specified in the current inherited state (cf PoIsovaluesList
property node). The current isovalues list does not exist if setIsovaluesList()
method is not called and no PoIsovaluesList
node is traversed before in the scene graph.
If setDataMapping(dataMapping) method is called with "dataMapping" derived from PbDataMapping
, the current data mapping is "dataMapping". Otherwise the current data mapping is specified in the current inherited state (cf property node PoDataMapping
and its derived classes). The current data mapping does not exist if setDataMapping()
method is not called and no PoDataMapping
node is traversed before in the scene graph.
Values format depends on the current numerical display format. If the method setFormat(format) is called, the current numerical display format is "format". Otherwise the current numerical display format is specified in the current inherited state (cf property node PoNumericDisplayFormat
).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoLegend
PoLegend.IncrementTypes, PoLegend.MarginTypes, PoLegend.Positions, PoLegend.TextPaths, PoLegend.Visibilities
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 SoSFUShort
Number of the first value to display.final SoSFUShort
Number of the last value to display.final SoSFString
String indicating the lower undefined level.final SoSFUShort
Period to display the values in the legend.final SoSFString
String indicating the upper undefined level.Fields inherited from class com.openinventor.meshviz.graph.PoLegend
boxRatio, incrementType, marginBottom, marginLeft, marginRight, marginTop, marginType, numColumns, titleFontName, titleFontSize, titlePath, titlePosition, titleString, titleVisibility, valueAddString, valueAddStringVisibility, valueFontName, valuePosition, valueVisibility
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 aPbDataMapping
object to the association color-values.Gets a reference to aPbNumericDisplayFormat
object for the numerical display format of the legend values.Gets a reference to aPbIsovaluesList
object.void
setDataMapping
(PbDataMapping dataMapping) Sets a reference to aPbDataMapping
object to the association color-values.void
setFormat
(PbNumericDisplayFormat format) Sets a reference to aPbNumericDisplayFormat
object for the numerical display format of the legend values.void
setIsovaluesList
(PbIsovaluesList isovaluesList) Sets a reference to aPbIsovaluesList
object.Methods inherited from class com.openinventor.meshviz.graph.PoLegend
getMiscTextAttr, setMiscTextAttr
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
-
upperUndefString
String indicating the upper undefined level. (Corresponds to the maximum threshold of data mapping. Not used if no data mapping object is specified or if the maximum threshold is disabled). -
lowerUndefString
String indicating the lower undefined level. (Corresponds to the minimum threshold of data mapping Not used if no data mapping object is specified or if the minimum threshold is disabled). -
periodValue
Period to display the values in the legend. -
firstValue
Number of the first value to display. -
lastValue
Number of the last value to display.
-
-
Method Details
-
getIsovaluesList
Gets a reference to aPbIsovaluesList
object. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class. -
getDataMapping
Gets a reference to aPbDataMapping
object to the association color-values. -
setFormat
Sets a reference to aPbNumericDisplayFormat
object for the numerical display format of the legend values. If this method is not called (or called passing NULL as argument), this is the numerical display format defined in the current inherited state (defined with the property nodePoNumericDisplayFormat
) which is used. -
setDataMapping
Sets a reference to aPbDataMapping
object to the association color-values. If this method is not called (or called passing NULL as argument), this is the data mapping defined in the current inherited state (defined with the property nodePoDataMapping
and its derived classes) which is used. -
getFormat
Gets a reference to aPbNumericDisplayFormat
object for the numerical display format of the legend values. -
setIsovaluesList
Sets a reference to aPbIsovaluesList
object. APbIsovaluesList
object defines an isovalue list used for the legend values. If this method is not called (or called passing NULL as argument), this is the isovalue list defined in the current inherited state (defined with the property nodePoIsovaluesList
) which is used.
-