Class PoPointsFieldBars
- All Implemented Interfaces:
SafeDisposable
Colors of the 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.
File format/default:
point | 0 0 0 |
value | 0.0 |
width | 1.0 |
height | 1.0 |
-
Nested Class Summary
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
Height of parallelepipeds.final SoMFVec3f
List of points for parallelepipeds.final SoMFFloat
Values for each point.final SoSFFloat
Width of parallelepipeds.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.PoPointsFieldBars
(SbVec3f[] _point, float[] _value, float _width, float _height) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Gets a reference to aPbDataMapping
object to the association color-value.void
setDataMapping
(PbDataMapping dataMapping) Sets a reference to aPbDataMapping
object to the association color-value.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
-
point
List of points for parallelepipeds. point[i][2] is the altitude of the i-th parallelepiped. -
value
Values for each point. If value.getNum() != point.getNum(), the parallelepipeds have all the same color, that is the inherited color. -
width
Width of parallelepipeds. -
height
Height of parallelepipeds.
-
-
Constructor Details
-
PoPointsFieldBars
public PoPointsFieldBars()Default constructor. -
PoPointsFieldBars
Constructor.
-
-
Method Details
-
getDataMapping
Gets a reference to aPbDataMapping
object to the association color-value. -
setDataMapping
Sets a reference to aPbDataMapping
object to the association color-value. 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. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class.
-