Class PoCurve3

  • All Implemented Interfaces:
    SafeDisposable

    public class PoCurve3
    extends PoGraphMaster
    Builds a 3D curve. Class to build a 3D curve. The curve is defined by a set of points. Different representations of the curve can be obtained such as a polyline curve or a smooth curve.

    File format/default:

    PoCurve3 {

      point 0 0 0
      curveRep CURVE_POLYLINE
      isMarkerVisible false
      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="Heading490">CATALOG PARTS</A></h4> <ul><b>PoCurve3</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>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 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>}</ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <ul><ul><br> </ul></ul> </body> </html>

    • Field Detail

      • point

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

        public final SoSFEnum<PoCurve3.CurveReps> curveRep
        Defines the curve representation (polyline, smooth or none). CURVE_POLYLINE by default.
      • isMarkerVisible

        public final SoSFBool isMarkerVisible
        Indicates if a marker is generated on each curve point.
      • 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, for the moment, text markers are not vertically aligned.
    • Constructor Detail

      • PoCurve3

        public PoCurve3​(SbVec3f[] _point)
        Calls PoCurve3(_point, PoCurve3.CurveReps.valueOf( PoCurve3.CurveReps.CURVE_POLYLINE.getValue() )).
      • PoCurve3

        public PoCurve3()
        Default constructor.