Package com.openinventor.meshviz.graph
Class PoAutoValueLegend
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.inventor.nodekits.SoBaseKit
com.openinventor.meshviz.graph.PoBase
com.openinventor.meshviz.graph.PoGraphMaster
com.openinventor.meshviz.graph.PoLegend
com.openinventor.meshviz.graph.PoValueLegend
com.openinventor.meshviz.graph.PoAutoValueLegend
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoLinearValueLegend,PoNonLinearValueLegend1,PoNonLinearValueLegend2,PoNonLinearValueLegend3
Abstract class for automatic value legend.
This class represents a value legend delimited by a rectangle defined by the points start and end. Values of the legend are drawn from the start point to the end point, so reversing their two points reverses also the value order.
The distribution of the color boxes is handled automatically according to the number of values and the geometry of the rectangle delimiting the legend. The box sizes and the font size are calculated so that the boxes occupy the entire space inside the legend rectangle.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoLegend
PoLegend.IncrementTypes, PoLegend.MarginTypes, PoLegend.Positions, PoLegend.TextPaths, PoLegend.VisibilitiesNested 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 SoSFVec2fSecond point of the same diagonal.final SoSFVec2fFirst point of one of the diagonals of the rectangle delimiting the legend.Fields inherited from class com.openinventor.meshviz.graph.PoValueLegend
firstValue, lastValue, lowerUndefString, periodValue, upperUndefStringFields 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, valueVisibilityFields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Methods inherited from class com.openinventor.meshviz.graph.PoValueLegend
getDataMapping, getFormat, getIsovaluesList, setDataMapping, setFormat, setIsovaluesListMethods inherited from class com.openinventor.meshviz.graph.PoLegend
getMiscTextAttr, setMiscTextAttrMethods 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
-
start
First point of one of the diagonals of the rectangle delimiting the legend. Values of the legend are drawn from the start point to the end point, so reversing their two points reverses also the values order. For instance if start =SbVec2f(0,0)and end =SbVec2f(0.5, 1), values are drawn from the down to the up. -
end
Second point of the same diagonal.
-
-
Method Details
-
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class.
-