Class PoArrow

  • All Implemented Interfaces:
    SafeDisposable

    public class PoArrow
    extends PoGraphMaster
    Class to build a 2D arrow. This class builds an arrow in the plane XY. The arrow is defined by a point list. The start pattern and the end pattern can be parameterized.

    File format/default:

    PoArrow {

      point 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="Heading337">CATALOG PARTS</A></h4> <ul><b>PoArrow</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><br> <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 SoMFVec2f 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

      • PoArrow

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

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

        public PoArrow()
        Default constructor.