Class PoHistogram
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoMultipleHistogram
,PoSingleHistogram
All histogram texts depend on the current miscellaneous text attributes which define the font name, line length and so on. If the method setMiscTextAttr(textAttr) is called, the current miscellaneous text attributes are defined by "textAttr". Otherwise the current miscellaneous text attributes are specified in the current inherited state (cf property node PoMiscTextAttr
).
All histogram numerical values depend on the current numerical display format. If the method setFormat(format) is called, the current numerical display format is "format". Otherwise the current numerical display format is specified in the current inherited state (cf property node PoNumericDisplayFormat
).
If coloring = DATA_MAPPING, colors of histogram bars depend on the current data mapping. If the method setDataMapping(dataMapping) is called, the current data mapping is "dataMapping". Otherwise the current data mapping is specified in the current inherited state (cf property node PoDataMapping
and its derived classes). If there is no current data-mapping (i.e setDataMapping()
not called and no PoDataMapping
node traversed before in the scene graph), all bars get the same color which is the inherited color.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Type of spacing between bars.static enum
Type of coloration of the bars.static enum
Type of positions relative to a histogram bar.static enum
Type of text path.static enum
Type of orientation of the histogram's bars.static enum
Type of visibility.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 TypeFieldDescriptionType of bar spacing.final SoSFFloat
Spacing value.final SoMFColor
Color list for the histogram bars.final SoSFEnum
<PoHistogram.Colorings> Specifies how the histogram bars are colored.final SoSFFloat
Define the end point of the histogram.final SoSFString
Font name of bars names.final SoSFFloat
Font size of bars names.final SoSFEnum
<PoHistogram.TextPaths> Bars names path.final SoSFEnum
<PoHistogram.Positions> Bars names position in relation to histograms bars.final SoSFEnum
<PoHistogram.Visibilities> Bars names visibility.final SoSFVec2f
Define the start point of the histogram.final SoSFEnum
<PoHistogram.Types> Defines if the histogram is an X histogram (bars are perpendicular to the X- axis) or a Y histogram (bars are perpendicular to the Y-axis).final SoSFString
String to be concatenated.final SoSFBool
Visibility of the string concatenated to the values.final SoSFString
Font name of values.final SoSFFloat
Font size of values.final SoSFEnum
<PoHistogram.TextPaths> Values path.final SoSFEnum
<PoHistogram.Positions> Values position in relation to histogram bars.final SoSFEnum
<PoHistogram.Visibilities> Values visibility.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Gets a reference to aPbDataMapping
object to the association color-value for coloring the bars.Gets a reference to aPbNumericDisplayFormat
object for the numerical display format of values of the histograms.Gets a reference to aPbMiscTextAttr
for miscellaneous text attributes.void
setDataMapping
(PbDataMapping dataMapping) Sets a reference to aPbDataMapping
object to the association color-value for coloring the bars.void
setFormat
(PbNumericDisplayFormat format) Sets a reference to aPbNumericDisplayFormat
object for the numerical display format of values of the histograms.void
setMiscTextAttr
(PbMiscTextAttr textAttr) Sets a reference to aPbMiscTextAttr
for miscellaneous text attributes.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
Define the start point of the histogram. -
end
Define the end point of the histogram. -
type
Defines if the histogram is an X histogram (bars are perpendicular to the X- axis) or a Y histogram (bars are perpendicular to the Y-axis). -
color
Color list for the histogram bars. This field is used only if coloring = COLOR_LIST. If the number of colors is less than the number of bars, all the bars get the same color which is the inherited color. -
coloring
Specifies how the histogram bars are colored. if coloring = COLOR_LIST, the bars are colored using the color list field color, otherwise the bars are colored according to their values (see the current data mapping for the association color-value at the header description). -
valueVisibility
Values visibility. -
valuePosition
Values position in relation to histogram bars. -
valuePath
Values path. . -
valueFontSize
Font size of values. 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). -
valueFontName
Font name of values. If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes. -
valueAddStringVisibility
Visibility of the string concatenated to the values. -
valueAddString
String to be concatenated. -
nameVisibility
Bars names visibility. -
namePosition
Bars names position in relation to histograms bars. -
namePath
Bars names path. . -
nameFontSize
Font size of bars names. 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). -
nameFontName
Font name of bars names. If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes. -
barSpaceType
Type of bar spacing. The spacing between bars modifies the thickness of the histogram bars. -
barSpaceValue
Spacing value. If barSpaceType = REL_SPACE, real_spacing = barSpaceValue * width_bar, where width_bar is the distance between the histogram origin and the end point divided by the number of main bars. If barSpaceType = FIXED_SPACE, the real spacing is equal to barSpaceValue.
-
-
Method Details
-
getFormat
Gets a reference to aPbNumericDisplayFormat
object for the numerical display format of values of the histograms. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class. -
getDataMapping
Gets a reference to aPbDataMapping
object to the association color-value for coloring the bars. -
setFormat
Sets a reference to aPbNumericDisplayFormat
object for the numerical display format of values of the histograms. If this method is not called (or called passing NULL as argument), this is the numerical display format defined in the current inherited state (defined with the property nodePoNumericDisplayFormat
) which is used. -
setDataMapping
Sets a reference to aPbDataMapping
object to the association color-value for coloring the bars. If this method is not called (or called passing NULL as argument), this is the data mapping defined in the current inherited state (defined with the property nodePoDataMapping
and its derived classes) which is used. This method is ignored if coloring = COLOR_LIST. -
setMiscTextAttr
Sets a reference to aPbMiscTextAttr
for miscellaneous text attributes. If this method is not called (or called passing NULL as argument), this is the miscellaneous text attributes defined in the current inherited state (defined with the property nodePoMiscTextAttr
) which are used. -
getMiscTextAttr
Gets a reference to aPbMiscTextAttr
for miscellaneous text attributes.
-