PoAutoCubeAxis Class Reference
[Axis]

MeshViz Class to build a set of axes on a parallelepiped relating to the view. More...

#include <MeshViz/graph/PoAutoCubeAxis.h>

Inheritance diagram for PoAutoCubeAxis:
PoBaseAxis PoGraphMaster PoBase SoBaseKit SoNode SoGetView SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  AxisType {
  LINEAR,
  LOGARITHMIC,
  GENERALIZED
}

Public Member Functions

virtual SoType getTypeId () const
virtual const SoNodekitCataloggetNodekitCatalog () const
 PoAutoCubeAxis ()
 PoAutoCubeAxis (const SbVec3f &_start, const SbVec3f &_end, AxisType xAxisType, AxisType yAxisType, AxisType zAxisType, const char *xTtle=NULL, const char *yTtle=NULL, const char *zTtle=NULL)
virtual void GLRender (SoGLRenderAction *action)
virtual void rebuild ()

Static Public Member Functions

static SoType getClassTypeId ()
static const SoNodekitCataloggetClassNodekitCatalog ()

Public Attributes

SoSFVec3f start
SoSFVec3f end
SoSFVec3f gradStart
SoSFVec3f gradEnd
SoSFString xTitle
SoSFString yTitle
SoSFString zTitle
SoSFBool isGridLinesXVisible
SoSFBool isGridLinesYVisible
SoSFBool isGridLinesZVisible
SoSFBool isBackgroundFacesVisible
SoSFBool isIntersectingGradsVisible
SoSFMatrix modellingMatrix
SoSFMatrix viewingMatrix
SoSFMatrix projectionMatrix

Detailed Description

MeshViz Class to build a set of axes on a parallelepiped relating to the view.

This class builds a set of 3D axes displayed on some of the 12 edges of a parallelepiped. The choice of the edges depends on the view defined by the current camera (see SoCamera class). The graduations and the title of the axes are always legible whatever the view definition. The two points (start and end fields) define the diagonal of the parallelepiped and only the edges which are intersecting a visible face and an invisible face will be graduated. The visible and invisible faces depend on the view definition. The visible faces of the parallelepiped are the back faces.

                          1-----------2
          Y              /|  (2)     /|
          |            /  |        /  |
          |          /    | (5)  /    |   Vertices numerotation.
          |         6----------5      |
          ----- X   |     |    | (1)  |
         /          |(3)  0----|------3
        /           |    /     | (4) /
       /            |  /       |   /
      Z             |/ (0)     | /
                    7----------4

       Face 0 : 4 5 6 7 ==> edges : (4,5) (5,6) (6,7) (7,4)
       Face 1 : 2 3 4 5 ==> edges : (2,3) (3,4) (4,5) (5,2)
       Face 2 : 0 1 2 3 ==> edges : (0,1) (1,2) (2,3) (3,0)
       Face 3 : 0 1 6 7 ==> edges : (0,1) (1,6) (6,7) (7,0)
       Face 4 : 0 3 4 7 ==> edges : (0,3) (3,4) (4,7) (7,0)
       Face 5 : 1 2 5 6 ==> edges : (1,2) (2,5) (5,6) (6,1)
   

The graduations of these axes are defined by the fields gradStart and gradEnd. However if these fields are equal, the fields start and end are used to define the graduation values. Furthermore, the fields gradStart and gradEnd are always ignored for axis type GENERALIZED.

FILE FORMAT/DEFAULT


Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/