Class PoGeneralizedBar
- All Implemented Interfaces:
SafeDisposable
PoIrregularMesh1D
or PoRegularMesh1D
), where each bar is defined by a sub-scene graph. The field bars is used to define the sub-scene graph of each bar. If the number of sub-scene graphs is inferior to the number of bars to draw, they are cyclically used. The field scaleFactor specifies a possibly non uniform scale applied to each bar. The orientation of the bars can be horizontal or vertical. The abscissas (ordinates if HORIZONTAL orientation) of the bars are given by the geometry of the current mesh 1D, and the height (width if HORIZONTAL orientation) are given by one of the value-set of the current mesh 1D specified by the field yValuesIndex. A threshold defines the origin of the bars. This value is either an ordinate (VERTICAL orientation) or an abscissas (HORIZONTAL orientation). This class also takes into account of the current mesh 1D hints (PoMesh1DHints
) and the current mesh 1D filter (PoMesh1DFilter
) to filter the geometry of the current mesh 1D .
The interpretation of colorBinding is the following :
- INHERITED: All bars are colored with the same inherited color.
- PER_PART or PER_VERTEX : A color is used for each bar.
File format/default:
colorBinding | INHERITED |
yValuesIndex | 0 |
colorValuesIndex | 1 |
material | NULL |
bars | NULL |
scaleFactor | 1 1 1 |
orientation | VERTICAL |
threshold | 0.0 |
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBar
PoBar.Orientations
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoChart
PoChart.ColorBindings
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 SoMFNode
Defines the sub-scene graphs used for each bar.final SoSFVec3f
Specifies a possibly non uniform scale applied to each bar.Fields inherited from class com.openinventor.meshviz.graph.PoBar
orientation, threshold
Fields inherited from class com.openinventor.meshviz.graph.PoChart
colorBinding, colorValuesIndex, material, yValuesIndex
Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.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
-
bars
Defines the sub-scene graphs used for each bar. If the number of sub-scene graphs is inferior to the number of bars to draw, they are cyclically used. Each sub-scene graph defining each bar is considered to be specified vertically in the plane XY. -
scaleFactor
Specifies a possibly non uniform scale applied to each bar. If the orientation is VERTICAL, only the X and Z components are used, and if the orientation is HORIZONTAL, only the Y and Z components are used. If a component has a negative value, the scale in the component direction is relative to the height (resp. width) of the histogram, otherwise this an absolute scale.
-
-
Constructor Details
-
PoGeneralizedBar
public PoGeneralizedBar()Constructor.
-
-
Method Details
-
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class.
-