Class PoCurveFilling

All Implemented Interfaces:
SafeDisposable

public class PoCurveFilling extends PoCurveLine
Class to build 3D filled curve. Builds a 3D filled curve on 1D mesh (PoIrregularMesh1D or PoRegularMesh1D). The abscissas of the filled curve are given by the geometry of the current mesh 1D, and the ordinates are given by one of the value-set of the current mesh 1D specified by the field yValuesIndex. A threshold defines the origin of the filled curve. This value is either an ordinate (VERTICAL orientation) or an abscissas (HORIZONTAL orientation). The thickness of the filled curve is specified by the field thicknessIndex which is an index of a value-set of the current mesh 1D. These values are multiplied by the field width. If thicknessIndex == -1, the thickness of the filled curve is the value of the field width. thickness fields are ignored if the field width is equal to 0. This class also takes into account of the current mesh 1D hints (PoMesh1DHints).

The interpretation of colorBinding is the following :

  • INHERITED: The entire filled curve is colored with the same inherited color.
  • PER_PART : Each part of the filled curve is colored with the same color. A part is the curve between two abscissas defined by the current mesh 1D.
  • PER_VERTEX: A color is used at each vertex of the filled curve.

File format/default:

PoCurveFilling {

    colorBinding INHERITED
    yValuesIndex 0
    colorValuesIndex 1
    material NULL
    thicknessIndex -1
    thicknessBinding PER_VERTEX_THICKNESS
    thicknessFactor 1.0
    threshold 0.0
    width 1.0
    orientation VERTICAL
}

<html> <head> <link REL="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <title></title> </head> <body> <h4><a name="Heading249">CATALOG PARTS</a></h4> <blockquote> <p><b>PoCurveFilling</b> {</p> </blockquote> <blockquote> <blockquote> <p><b>Separator</b> <tt>alternateRep</tt> (from PoBase) {</p> </blockquote> <blockquote> <blockquote> <p><b>AppearanceKit</b> <tt>appearance</tt> (from PoBase)</p> </blockquote> </blockquote> <blockquote> <blockquote> <p><i>Specifies the appearance of all the kit. By default lightModel.model=PHONG. The part material is set when the kit is rebuilt, if the field colorBinding is different from INHERITED.</i></p> </blockquote> </blockquote> <blockquote> <blockquote> <p><b>MatrixTransform</b> <tt>domainTransform</tt> (from PoBase)</p> </blockquote> </blockquote> <blockquote> <blockquote> <p><i>Corresponds to the domain transformation.</i></p> <p><b>Group</b> <tt>curve </tt>(from PoCurveLine)</p> </blockquote> </blockquote> <blockquote> <blockquote> <p><i>Contains a SoIndexedTriangleStripSet shape to draw the filled curve.</i></p> </blockquote> <p>}</p> </blockquote> </blockquote> <blockquote> <p>}</p> </blockquote> </body> </html>

  • Field Details

    • threshold

      public final SoSFFloat threshold
      Defines the threshold of the origin of the filled curve. This value is either an ordinate (VERTICAL orientation) or an abscissas (HORIZONTAL orientation).
    • width

      public final SoSFFloat width
      Defines the width of the curve filled. If the thicknessIndex is different from -1, thickness values are multiplied to this value. If this value is equal to 0, thicknessIndex, thicknessBinding and thicknessFactor are ignored.
    • orientation

      public final SoSFEnum<PoCurveFilling.Orientations> orientation
      Defines the orientation of the filled curve.
  • Constructor Details

    • PoCurveFilling

      public PoCurveFilling()
      Constructor.
  • Method Details