Class PoArrow3

  • All Implemented Interfaces:
    SafeDisposable

    public class PoArrow3
    extends PoGraphMaster
    Class to build a 3D arrow. This node draws a 3D arrow. The arrow is defined by a point list. The start pattern and the end pattern can be parameterized.

    This node draws a single 3D arrow consisting of a polyline with optional arrowhead or rectangle at each end. Therefore the minimum number of points is 2. Additional points could be used to make, for example, a curved arrow.

    File format/default:

    PoArrow3 {

      point 0 0 0
      startPatternType NO_PATTERN
      endPatternType NO_PATTERN
      patternWidth 0.05
      patternHeight 0.03
    }

    <!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="Heading481">CATALOG PARTS</A></h4> <ul><b>PoArrow3</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>bodySep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the body of the arrow.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>bodyApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of the body of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>body</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoLineSet shape to draw the body of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>startSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the start pattern of the arrow.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>startApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of the start pattern of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>start</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoFaceSet shape to draw the start pattern of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>endSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the end pattern of the arrow.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>endApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of the end pattern of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>end</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoFaceSet shape to draw the end pattern of the arrow.</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 arrow.
      • patternWidth

        public final SoSFFloat patternWidth
        Define the width of the start and end arrow pattern. It is given in the normalized space [0-1]x[0-1]x([0-1]) defined by the current domain (cf PoBase description).
      • patternHeight

        public final SoSFFloat patternHeight
        Define the height of the start and end arrow pattern. It is given in the normalized space [0-1]x[0-1]x([0-1]) defined by the current domain (cf PoBase description).
    • Constructor Detail

      • PoArrow3

        public PoArrow3​(SbVec3f[] _point,
                        PoArrow3.PatternTypes startType)
        Calls PoArrow3(_point, startType, PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).
      • PoArrow3

        public PoArrow3​(SbVec3f[] _point)
        Calls PoArrow3(_point, PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).
      • PoArrow3

        public PoArrow3()
        Default constructor.