Class PoCoordinateSystemAxis

  • All Implemented Interfaces:
    SafeDisposable

    public class PoCoordinateSystemAxis
    extends PoGraphMaster
    Class for a 3D axes system. Class to build an axes system. It is composed of three vectors, each having a title string at its extremity. A multiplicative factor translates each title string according to each vector length and another one defines the arrow length of vectors relative to the vector length.

    File format/default:

    PoCoordinateSystemAxis {

      start 0 0 0
      end 1 1 1
      xTitle "X"
      yTitle "Y"
      zTitle "Z"
      arrowLengthFactor 0.05
      titleTranslationFactor 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="Heading499">CATALOG PARTS</A></h4> <ul><b>PoCoordinateSystemAxis</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><b>PoArrow </b><tt>xArrow</tt></ul></ul></ul> <ul><ul><ul><i>Corresponds to the arrow of the x-axis.</i></ul></ul></ul> <ul><ul><ul><b>PoArrow </b><tt>yArrow</tt></ul></ul></ul> <ul><ul><ul><i>Corresponds to the arrow of the y-axis.</i></ul></ul></ul> <ul><ul><ul><b>PoArrow </b><tt>zArrow</tt></ul></ul></ul> <ul><ul><ul><i>Corresponds to the arrow of the z-axis.</i></ul></ul></ul> <ul><ul><ul><br> <b>Separator</b> <tt>xTitleTextSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw text of the x-axis.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>xTitleTextApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of text of the x-axis.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b><tt> xTitleText</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoText2 shape to draw text of the x-axis.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>yTitleTextSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw text of the y-axis.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>yTitleTextApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of text of the y-axis.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>yTitleText</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoText2 shape to draw text of the y-axis.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>zTitleTextSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw text of the z-axis.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>zTitleTextApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of text of the z-axis.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>zTitleText</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoText2 shape to draw the text of the z-axis.</i></ul></ul></ul></ul> <ul><ul><ul>}</ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <ul><ul><br> <br> </ul></ul> </body> </html>

    • Field Detail

      • start

        public final SoSFVec3f start
        Start of the coordinate system. (0,0,0) by default.
      • end

        public final SoSFVec3f end
        End of the coordinate system. (1,1,1) by default.
      • xTitle

        public final SoSFString xTitle
        String to be displayed at the end of the X coordinate vector. "X" by default.
      • yTitle

        public final SoSFString yTitle
        String to be displayed at the end of the Y coordinate vector. "Y" by default.
      • zTitle

        public final SoSFString zTitle
        String to be displayed at the end of the Z coordinate vector. "Z" by default.
      • arrowLengthFactor

        public final SoSFFloat arrowLengthFactor
        Arrow length scale factor. This is the ratio between the length of the arrow and the length of one of the vectors. This value is normally less than 1. 0.05 by default.
      • titleTranslationFactor

        public final SoSFFloat titleTranslationFactor
        Translation factor of the titles (as function of the length of each vector). 0 by default.
    • Constructor Detail

      • PoCoordinateSystemAxis

        public PoCoordinateSystemAxis​(SbVec3f _start,
                                      SbVec3f _end,
                                      java.lang.String _xTitle,
                                      java.lang.String _yTitle,
                                      java.lang.String _zTitle,
                                      float _arrowLengthFactor,
                                      float _titleTranslationFactor)
        Constructor.
      • PoCoordinateSystemAxis

        public PoCoordinateSystemAxis()
        Default constructor.