Class PoItemLegend
- All Implemented Interfaces:
SafeDisposable
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 |
| start | 0 0 |
| end | 1 1 |
| item | "" |
| boxVisibility | true |
| boxColor | 0 0 0 |
| lineVisibility | false |
| lineColor | 0 0 0 |
| lineSize | 0 |
| linePattern | 0xFFFF |
| markerVisibility | false |
| markerColor | 0 0 0 |
| markerSize | 0 |
| markerString | "." |
-
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 SoMFColorList of colors for the boxes (boxColor.getNum() must be greater or equal to item.getNum(), otherwise all boxes get the same color which is the inherited color).final SoSFBoolVisibility of the boxes.final SoSFVec2fSecond point of the same diagonal.final SoMFStringList of item names.final SoMFColorList of colors for lines.final SoMFUShortBe careful: (lineColor or lineSize or linePattern).getNum() must be greater or equal to item.getNum() in order to take into account one of these fields, otherwise the inherited attributes will be used.final SoMFFloatList of sizes for lines.final SoSFBoolVisibility of the lines.final SoMFColorList of color for markers.final SoMFFloatList of sizes for markers.final SoMFStringThe markers are defined by a list of strings.final SoSFBoolVisibility of the markers.final SoSFVec2fFirst point of one of the diagonals of the rectangle delimiting the legend.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, valueVisibilityFields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PoItemLegend(SbVec2f _start, SbVec2f _end, String[] _item) Calls PoItemLegend(_start, _end, _item, (com.openinventor.inventor.SbColor[])null).PoItemLegend(SbVec2f _start, SbVec2f _end, String[] _item, SbColor[] _boxColor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Methods 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. -
end
Second point of the same diagonal. -
item
List of item names. -
boxVisibility
Visibility of the boxes. -
boxColor
List of colors for the boxes (boxColor.getNum() must be greater or equal to item.getNum(), otherwise all boxes get the same color which is the inherited color). -
lineVisibility
Visibility of the lines. -
lineColor
List of colors for lines. -
lineSize
List of sizes for lines. -
linePattern
Be careful: (lineColor or lineSize or linePattern).getNum() must be greater or equal to item.getNum() in order to take into account one of these fields, otherwise the inherited attributes will be used. -
markerVisibility
Visibility of the markers. -
markerColor
List of color for markers. Be careful: markerColor.getNum() must be greater or equal to item.getNum() in order to take into account one of this field, otherwise the inherited attributes will be used. -
markerSize
List of sizes for markers. Be careful: markerSize.getNum() must be greater or equal to item.getNum() in order to take into account one of this field, otherwise the inherited attributes will be used. -
markerString
The markers are defined by a list of strings. For each string of markerString equals to ".", the marker is anSoPointSetshape, otherwise anSoText2shape. Futhermore, only the first character of each string of markerString is used. To change the font of the text markers, set catalog part markerApp.font.name. Be careful, in this version, text markers are not vertically aligned.
-
-
Constructor Details
-
PoItemLegend
Calls PoItemLegend(_start, _end, _item, (com.openinventor.inventor.SbColor[])null). -
PoItemLegend
Constructor. -
PoItemLegend
public PoItemLegend()Default constructor.
-
-
Method Details
-
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class.
-