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.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 SoMFColor
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).final SoSFBool
Visibility of the boxes.final SoSFVec2f
Second point of the same diagonal.final SoMFString
List of item names.final SoMFColor
List of colors for lines.final SoMFUShort
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.final SoMFFloat
List of sizes for lines.final SoSFBool
Visibility of the lines.final SoMFColor
List of color for markers.final SoMFFloat
List of sizes for markers.final SoMFString
The markers are defined by a list of strings.final SoSFBool
Visibility of the markers.final SoSFVec2f
First 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, 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.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 SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.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
-
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 anSoPointSet
shape, otherwise anSoText2
shape. 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 theSoNodekitCatalog
for this class.
-