Class PoCurve

  • All Implemented Interfaces:
    SafeDisposable

    public class PoCurve
    extends PoGraphMaster
    Builds a 2D curve. Class to build a curve in the plane XY. The curve is defined by a set of points. Different representations of the curve can be obtained, such as polyline curve, smooth curve, stair curve or double stair curve. The curve can be filled. Furthermore, some filters control the appearance of markers (on the curve) and raise points (vertical lines from the curve to a threshold).

    File format/default:

    PoCurve {

      point 0 0
      curveRep CURVE_POLYLINE
      fillingThreshold 0.0
      isCurveFilled false
      markerFilterType INACTIVE
      markerIndexPeriod 0
      markerIndexList 0
      markerXPeriod 0
      markerXList 0
      markerString "."
      raiseFilterType INACTIVE
      raiseIndexPeriod 0
      raiseIndexList 0
      raiseXPeriod 0
      raiseXList 0
      raiseThreshold 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="Heading346">CATALOG PARTS</A></h4> <ul><b>PoCurve</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.</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>Separator</b> <tt>curveFillingSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to fill the curve.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>curveFillingApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of filling curve.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>curveFilling</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoFaceSet shape to fill the curve.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>curvePointSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the curve.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>curvePointApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of the curve.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>curvePoint</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoLineSet shape to draw the curve.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>markerSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the markers on the curve.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>markerApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of markers. If markerString != ".", the font used for markers is the font set in font.name.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>marker</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a list of SoText2 (markerString != ".") or SoPointSet (markerString = ".") shapes to draw the markers.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>raisePointSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the raise points on the curve.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>raisePointApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of raise points.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>raisePoint</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoLineSet shape to draw the raise points.</i></ul></ul></ul></ul> <ul><ul><ul>}</ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <p> </body> </html>

    • Field Detail

      • point

        public final SoMFVec2f point
        Point list of the curve.
      • curveRep

        public final SoSFEnum<PoCurve.CurveReps> curveRep
        Defines the curve representation (polyline, smooth, stair, ...)
      • isCurveFilled

        public final SoSFBool isCurveFilled
        Indicates if the curve is filled or not.
      • fillingThreshold

        public final SoSFFloat fillingThreshold
        Defines the threshold to fill the curve.
      • markerFilterType

        public final SoSFEnum<PoCurve.FilterTypes> markerFilterType
        Defines the type of marker filter. This value determines which filter is active (markerIndexPeriod or markerIndexList,...)
      • markerIndexPeriod

        public final SoSFInt32 markerIndexPeriod
        One point (of point) in every consecutive markerIndexPeriod is selected.
      • markerIndexList

        public final SoMFInt32 markerIndexList
        A list of points (of point) is selected by their indices.
      • markerXPeriod

        public final SoSFFloat markerXPeriod
        One point (of the computed curve points) in every markerXPeriod is selected.
      • markerXList

        public final SoMFFloat markerXList
        A list of points (of the computed curve points) is selected by their abscises.
      • 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 markerApp.font.name. Be careful, in this version, text markers are not vertically aligned.
      • raiseFilterType

        public final SoSFEnum<PoCurve.FilterTypes> raiseFilterType
        Defines the type of raise filter. This value determines which filter is active (raiseIndexPeriod or raiseIndexList,...)
      • raiseIndexPeriod

        public final SoSFInt32 raiseIndexPeriod
        One point (of point) in every consecutive raiseIndexPeriod is selected.
      • raiseIndexList

        public final SoMFInt32 raiseIndexList
        A list of points (of point) is selected by their indices.
      • raiseXPeriod

        public final SoSFFloat raiseXPeriod
        One point (of the computed curve points) in every raiseXPeriod is selected.
      • raiseXList

        public final SoMFFloat raiseXList
        A list of points (of the computed curve points) is selected by their abscises.
      • raiseThreshold

        public final SoSFFloat raiseThreshold
        Raise points are vertical lines joining the curve points and the specified threshold.
    • Constructor Detail

      • PoCurve

        public PoCurve​(SbVec2f[] _point)
        Calls PoCurve(_point, PoCurve.CurveReps.valueOf( PoCurve.CurveReps.CURVE_POLYLINE.getValue() )).
      • PoCurve

        public PoCurve()
        Default constructor.