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 enumType of spacing between bars.static enumType of coloration of the bars.static enumType of positions relative to a histogram bar.static enumType of text path.static enumType of orientation of the histogram's bars.static enumType of visibility.Nested 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 TypeFieldDescriptionType of bar spacing.final SoSFFloatSpacing value.final SoMFColorColor list for the histogram bars.final SoSFEnum<PoHistogram.Colorings> Specifies how the histogram bars are colored.final SoSFFloatDefine the end point of the histogram.final SoSFStringFont name of bars names.final SoSFFloatFont 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 SoSFVec2fDefine 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 SoSFStringString to be concatenated.final SoSFBoolVisibility of the string concatenated to the values.final SoSFStringFont name of values.final SoSFFloatFont 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
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Gets a reference to aPbDataMappingobject to the association color-value for coloring the bars.Gets a reference to aPbNumericDisplayFormatobject for the numerical display format of values of the histograms.Gets a reference to aPbMiscTextAttrfor miscellaneous text attributes.voidsetDataMapping(PbDataMapping dataMapping) Sets a reference to aPbDataMappingobject to the association color-value for coloring the bars.voidsetFormat(PbNumericDisplayFormat format) Sets a reference to aPbNumericDisplayFormatobject for the numerical display format of values of the histograms.voidsetMiscTextAttr(PbMiscTextAttr textAttr) Sets a reference to aPbMiscTextAttrfor 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, 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
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 (cfPoBasedescription). -
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 (cfPoBasedescription). -
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 aPbNumericDisplayFormatobject for the numerical display format of values of the histograms. -
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class. -
getDataMapping
Gets a reference to aPbDataMappingobject to the association color-value for coloring the bars. -
setFormat
Sets a reference to aPbNumericDisplayFormatobject 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 aPbDataMappingobject 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 nodePoDataMappingand its derived classes) which is used. This method is ignored if coloring = COLOR_LIST. -
setMiscTextAttr
Sets a reference to aPbMiscTextAttrfor 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 aPbMiscTextAttrfor miscellaneous text attributes.
-