Class PoPointsFieldBars
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodekits.SoBaseKit
-
- com.openinventor.meshviz.graph.PoBase
-
- com.openinventor.meshviz.graph.PoGraphMaster
-
- com.openinventor.meshviz.graph.PoPointsFieldBars
-
- All Implemented Interfaces:
SafeDisposable
public class PoPointsFieldBars extends PoGraphMaster
Class to build a points field bars. Class to build parallelepipeds based on a point field. This class generates a set of parallelepipeds where the bases are on the plane XY and the heights are given by the altitude for each point on the point field. The parallelepipeds are colored as a function of values for each point.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.esetDataMapping()
not called and noPoDataMapping
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 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <link REL="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <title></title> </head> <BODY> <h1></h1> <h4> <A NAME="Heading508">CATALOG PARTS</A></h4> <ul><b>PoPointsFieldBars</b> {</ul> <ul><ul><b>Separator</b> <tt>alternateRep</tt> (from PoBase) {<br> </ul></ul> <ul><ul><ul><b>AppearanceKit</b> <tt>appearance</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Specifies the appearance of all the kit. By default lightModel.model=PHONG.</i></ul></ul></ul> <ul><ul><ul><b>MatrixTransform</b> <tt>domainTransform</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Corresponds to the domain transformation.</i></ul></ul></ul> <ul><ul><ul><ul></ul></ul></ul></ul> <ul><ul><ul><b>Group</b> <tt>pointFieldBars</tt></ul></ul></ul> <ul><ul><ul><i>Contains if parallelepipeds are colored a list of couple (SoMaterial, SoCube), otherwise a list of SoCube shapes, to draw the point field bars.</i></ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <ul><ul><br> </ul></ul> </body> </html>
-
-
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
Fields Modifier and Type Field Description SoSFFloat
height
Height of parallelepipeds.SoMFVec3f
point
List of points for parallelepipeds.SoMFFloat
value
Values for each point.SoSFFloat
width
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
Constructors Constructor Description PoPointsFieldBars()
Default constructor.PoPointsFieldBars(SbVec3f[] _point, float[] _value, float _width, float _height)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SoNodekitCatalog
getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.PbDataMapping
getDataMapping()
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 Detail
-
point
public final SoMFVec3f point
List of points for parallelepipeds. point[i][2] is the altitude of the i-th parallelepiped.
-
value
public final SoMFFloat value
Values for each point. If value.getNum() != point.getNum(), the parallelepipeds have all the same color, that is the inherited color.
-
width
public final SoSFFloat width
Width of parallelepipeds.
-
height
public final SoSFFloat height
Height of parallelepipeds.
-
-
Constructor Detail
-
PoPointsFieldBars
public PoPointsFieldBars()
Default constructor.
-
PoPointsFieldBars
public PoPointsFieldBars(SbVec3f[] _point, float[] _value, float _width, float _height)
Constructor.
-
-
Method Detail
-
getDataMapping
public PbDataMapping getDataMapping()
Gets a reference to aPbDataMapping
object to the association color-value.
-
setDataMapping
public void setDataMapping(PbDataMapping dataMapping)
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
public static SoNodekitCatalog getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.
-
-