Class PoMultipleHistogram
- All Implemented Interfaces:
SafeDisposable
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.
There are three possible representations of multiple histograms:
- The histogram values are juxtaposed.
- The histogram values are accumulated.
- The histogram values are percentages.
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), according to the field histogPath, the list of colors is associated to the rows or to the columns and color.getNum() must be greater or equal to 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 |
representation | JUXTAPOSED |
barHeight | 1.0 |
numRows | 1 |
numColumns | 1 |
value | 0 |
rowName | "" |
columnName | "" |
histogPath | ROW_COLUM |
sumVisibility | VISIBILITY_ON |
sumPosition | POS_DEPEND |
sumPath | PATH_DEPEND |
sumFontSize | 0.0 |
sumFontName | "" |
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
Type of presentation of multiple histogram.Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoHistogram
PoHistogram.BarSpaceTypes, PoHistogram.Colorings, PoHistogram.Positions, PoHistogram.TextPaths, PoHistogram.Types, PoHistogram.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 SoSFFloat
This field is used only for percentage histogram representation (representation = PERCENTAGE) and it corresponds to the height of the histogram (in this representation, all the bars have the same size).final SoMFString
List of numColumns names of the columns.Indicates that the histogram shows rows as a function of columns, or columns as a function of rows.final SoSFUShort
Number of columns of the matrix of values.final SoSFUShort
Number of rows of the matrix of values.Representation type of the multiple histogram.final SoMFString
List of numRows names of the rows.final SoSFString
Font name of bars sums.final SoSFFloat
Font size of bars sums.final SoSFEnum
<PoHistogram.TextPaths> Writing path of bars sums.final SoSFEnum
<PoHistogram.Positions> Position of sums in relation to bars.final SoSFEnum
<PoHistogram.Visibilities> Bars sums visibility.final SoMFFloat
Matrix of values.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, 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.PoMultipleHistogram
(SbVec2f _start, float _end, PoHistogram.Types _type, int _numRows, int _numColumns, float[] _value, String[] _rowName, String[] _columnName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Methods inherited from class com.openinventor.meshviz.graph.PoHistogram
getDataMapping, getFormat, getMiscTextAttr, setDataMapping, setFormat, 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
-
numRows
Number of rows of the matrix of values. -
numColumns
Number of columns of the matrix of values. -
value
Matrix of values. -
rowName
List of numRows names of the rows. -
columnName
List of numColumns names of the columns. -
representation
Representation type of the multiple histogram. -
barHeight
This field is used only for percentage histogram representation (representation = PERCENTAGE) and it corresponds to the height of the histogram (in this representation, all the bars have the same size). -
histogPath
Indicates that the histogram shows rows as a function of columns, or columns as a function of rows. -
sumVisibility
Bars sums visibility. . -
sumPosition
Position of sums in relation to bars. . -
sumPath
Writing path of bars sums. . -
sumFontSize
Font size of bars sums. if this value is less or equal to 0, the font size is fixed at 0.04. This value is a percentage of the current domain (cfPoBase
description). -
sumFontName
Font name of bars sums. If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes (cfPoHistogram
description).
-
-
Constructor Details
-
PoMultipleHistogram
public PoMultipleHistogram()Default constructor. -
PoMultipleHistogram
public PoMultipleHistogram(SbVec2f _start, float _end, PoHistogram.Types _type, int _numRows, int _numColumns, float[] _value, String[] _rowName, String[] _columnName) Constructor.
-
-
Method Details
-
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class.
-