Class PoSingleHistogram
- All Implemented Interfaces:
SafeDisposable
Simple statistical data is composed of a list of names associated to a list of values. The histogram bars are perpendicular to the X-axis or to the Y-axis (according to the field type). The statistic values correspond to the height (or width) of the bars.
The bars of the histogram can be colored using the fields color and coloring. If the bars colors are defined by a list of colors (coloring = COLOR_LIST), color.getNum() must be greater or equal to value.getNum(), otherwise all the bars get the same color which is the inherited color.
File format/default:
| start | 0 0 |
| end | 1 |
| type | X |
| color | 0 0 0 |
| coloring | COLOR_LIST |
| valueVisibility | VISIBILITY_ON |
| valuePosition | POS_DEPEND |
| valuePath | PATH_DEPEND |
| valueFontSize | 0.0 |
| valueFontName | "" |
| valueAddStringVisibility | false |
| valueAddString | "" |
| nameVisibility | VISIBILITY_ON |
| namePosition | POS_DEPEND |
| namePath | PATH_DEPEND |
| nameFontSize | 0.0 |
| nameFontName | "" |
| barSpaceType | REL_SPACE |
| barSpaceValue | 0.25 |
| value | 0 |
| name | "" |
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoHistogram
PoHistogram.BarSpaceTypes, PoHistogram.Colorings, PoHistogram.Positions, PoHistogram.TextPaths, PoHistogram.Types, PoHistogram.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 SoMFStringNames of each bars of the histogram.final SoMFFloatValues of each bars of the histogram.Fields inherited from class com.openinventor.meshviz.graph.PoHistogram
barSpaceType, barSpaceValue, color, coloring, end, nameFontName, nameFontSize, namePath, namePosition, nameVisibility, start, type, valueAddString, valueAddStringVisibility, valueFontName, valueFontSize, valuePath, 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.PoSingleHistogram(SbVec2f _start, float _end, PoHistogram.Types _type, float[] _value, String[] _name) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Methods inherited from class com.openinventor.meshviz.graph.PoHistogram
getDataMapping, getFormat, getMiscTextAttr, setDataMapping, setFormat, 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
-
value
Values of each bars of the histogram. -
name
Names of each bars of the histogram. If name.getNum() != value.getNum() no name is associated to the bars.
-
-
Constructor Details
-
PoSingleHistogram
public PoSingleHistogram()Default constructor. -
PoSingleHistogram
public PoSingleHistogram(SbVec2f _start, float _end, PoHistogram.Types _type, float[] _value, String[] _name) Constructor.
-
-
Method Details
-
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class.
-