Class PoLinearValueLegend
- All Implemented Interfaces:
SafeDisposable
- The values displayed are calculated from a data mapping object or an isovalue list object.
- The values displayed are calculated as with a linear axis. They are linearly distributed depending on the min and the max of the values of the data mapping object or the isovalue list object.
- Only the min and the max of the values of the data mapping object or the isovalue list object are displayed. The fields
incrementType
,numColumns
, andboxRatio
are not used for this representation.
File format/default:
titleVisibility | VISIBILITY_OFF |
titlePosition | POS_BOTTOM |
titlePath | RIGHT_PATH |
titleFontSize | 0 |
titleFontName | "" |
titleString | "" |
valueVisibility | VISIBILITY_ON |
valuePosition | POS_RIGHT |
valueFontName | "" |
valueAddStringVisibility | false |
valueAddString | "" |
marginType | REL_MARGIN |
marginLeft | 0.05 |
marginRight | 0.05 |
marginBottom | 0.05 |
marginTop | 0.05 |
incrementType | VERTICAL_INCREMENT |
numColumns | 1 |
boxRatio | 1 |
periodValue | 1 |
firstValue | 1 |
lastValue | 32767 |
start | 0 0 |
end | 1 1 |
valueDistribution | ALL_VALUES |
maxValueSize | 0.6 |
lowerUndefString | "UNDEF<" |
upperUndefString | "UNDEF>" |
lowerUpperBoxes | true |
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Type of distribution of the values.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 SoSFBool
Indicates if lower and upper boxes should be displayed.final SoSFFloat
Indicates the maximum size of text values.Specifies the distribution of the values.Fields inherited from class com.openinventor.meshviz.graph.PoAutoValueLegend
end, start
Fields inherited from class com.openinventor.meshviz.graph.PoValueLegend
firstValue, lastValue, lowerUndefString, periodValue, upperUndefString
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
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PoLinearValueLegend
(SbVec2f _start, SbVec2f _end) Calls PoLinearValueLegend(_start, _end, PoLinearValueLegend.ValueDistributions.valueOf( PoLinearValueLegend.ValueDistributions.ALL_VALUES.getValue() )).PoLinearValueLegend
(SbVec2f _start, SbVec2f _end, PoLinearValueLegend.ValueDistributions distribution) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Methods inherited from class com.openinventor.meshviz.graph.PoValueLegend
getDataMapping, getFormat, getIsovaluesList, setDataMapping, setFormat, setIsovaluesList
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
-
valueDistribution
Specifies the distribution of the values. -
maxValueSize
Indicates the maximum size of text values. If the legend is vertical, this value is the maximum percentage of the width of text values relative to the legend width (without margin). If the legend is horizontal, this value is the maximum percentage of the height of text values relative to the legend height (without margin). -
lowerUpperBoxes
Indicates if lower and upper boxes should be displayed. The color of the lower box is the color associated with values less than the minimum, and the color of the upper box is the color associated with values greater than the maximum.- Since:
- Open Inventor 6.0
-
-
Constructor Details
-
PoLinearValueLegend
Calls PoLinearValueLegend(_start, _end, PoLinearValueLegend.ValueDistributions.valueOf( PoLinearValueLegend.ValueDistributions.ALL_VALUES.getValue() )). -
PoLinearValueLegend
public PoLinearValueLegend(SbVec2f _start, SbVec2f _end, PoLinearValueLegend.ValueDistributions distribution) Constructor. -
PoLinearValueLegend
public PoLinearValueLegend()Default constructor.
-
-
Method Details
-
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class.
-