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.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 TypeFieldDescriptionfinal SoSFFloatHeight of parallelepipeds.final SoMFVec3fList of points for parallelepipeds.final SoMFFloatValues for each point.final SoSFFloatWidth of parallelepipeds.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields 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 SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Gets a reference to aPbDataMappingobject to the association color-value.voidsetDataMapping(PbDataMapping dataMapping) Sets a reference to aPbDataMappingobject 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, 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
-
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 aPbDataMappingobject to the association color-value. -
setDataMapping
Sets a reference to aPbDataMappingobject 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 nodePoDataMappingand its derived classes) which is used. -
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class.
-