Class 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.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:

PoPointsFieldBars {

    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>

  • Field Details

    • 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 Details

    • PoPointsFieldBars

      public PoPointsFieldBars()
      Default constructor.
    • PoPointsFieldBars

      public PoPointsFieldBars(SbVec3f[] _point, float[] _value, float _width, float _height)
      Constructor.
  • Method Details

    • getDataMapping

      public PbDataMapping getDataMapping()
      Gets a reference to a PbDataMapping object to the association color-value.
    • setDataMapping

      public void setDataMapping(PbDataMapping dataMapping)
      Sets a reference to a PbDataMapping 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 node PoDataMapping and its derived classes) which is used.
    • getClassNodekitCatalog

      public static SoNodekitCatalog getClassNodekitCatalog()
      Returns the SoNodekitCatalog for this class.