Class PoValuedMarkerField

All Implemented Interfaces:
SafeDisposable

public class PoValuedMarkerField extends PoGraphMaster
Class for a valued markers field. Class to build a valued markers field in the plane XY. A valued markers field is a list of markers which can be colored and can have different sizes. By default all markers have the same size and the same color.

Colors of the markers 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 markers get the same color which is the inherited color.

File format/default:

PoValuedMarkerField {

    point 0 0
    value 0
    size 0
    markerString "."
}

<!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="Heading364">CATALOG PARTS</A></h4> <ul><b>PoValuedPointField</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=BASE_COLOR. If markerString !=".", the font used for markers is the font set in font.name.</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>valuedPointField</tt></ul></ul></ul> <ul><ul><ul><i>Contains a list of SoText2 (markerString !=".") or SoPointSet (markerString = ".") shapes to draw markers.</i></ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <ul><ul><br> </ul></ul> </body> </html>

  • Field Details

    • point

      public final SoMFVec2f point
      List of coordinates for the markers.
    • value

      public final SoMFFloat value
      List of values used to color the markers. If the number of values is equal to number of points of point , marker have a color depending on the current data mapping (see description of PoValuedMarkerField), otherwise all the markers have the same color.
    • size

      public final SoMFFloat size
      List of sizes used to calculate the marker sizes. If the number of sizes is equal to number of points of point , marker have a size depending on size, otherwise all the markers have the same size.
    • markerString

      public final SoSFString markerString
      The markers are defined by a string. If this field is equal to ".", the markers are SoPointSet shapes, otherwise SoText2 shapes. To change the font of text markers, set the catalog part appearance.font.name . Be careful, for the moment, text markers are not vertically aligned.
  • Constructor Details

    • PoValuedMarkerField

      public PoValuedMarkerField()
      Default constructor.
    • PoValuedMarkerField

      public PoValuedMarkerField(SbVec2f[] _point, float[] _value, float[] _size)
      Constructor.
  • Method Details

    • getDataMapping

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

      public void setDataMapping(PbDataMapping dataMapping)
      Sets a reference to a PbDataMapping object, used to the association value- color. 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.