Class for a 3D axes system. More...
#include <MeshViz/graph/PoCoordinateSystemAxis.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoCoordinateSystemAxis () | |
PoCoordinateSystemAxis (const SbVec3f &_start, const SbVec3f &_end, const char *_xTitle, const char *_yTitle, const char *_zTitle, float _arrowLengthFactor, float _titleTranslationFactor) | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFVec3f | start |
SoSFVec3f | end |
SoSFString | xTitle |
SoSFString | yTitle |
SoSFString | zTitle |
SoSFFloat | arrowLengthFactor |
SoSFFloat | titleTranslationFactor |
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.
start | 0 0 0 |
end | 1 1 1 |
xTitle | "X" |
yTitle | "Y" |
zTitle | "Z" |
arrowLengthFactor | 0.05 |
titleTranslationFactor | 0 |
PoCoordinateSystemAxis::PoCoordinateSystemAxis | ( | ) | [inline] |
Default constructor.
PoCoordinateSystemAxis::PoCoordinateSystemAxis | ( | const SbVec3f & | _start, | |
const SbVec3f & | _end, | |||
const char * | _xTitle, | |||
const char * | _yTitle, | |||
const char * | _zTitle, | |||
float | _arrowLengthFactor, | |||
float | _titleTranslationFactor | |||
) | [inline] |
Constructor.
static const SoNodekitCatalog* PoCoordinateSystemAxis::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoGraphMaster.
static SoType PoCoordinateSystemAxis::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoGraphMaster.
virtual const SoNodekitCatalog* PoCoordinateSystemAxis::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoGraphMaster.
virtual SoType PoCoordinateSystemAxis::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoGraphMaster.
virtual void PoCoordinateSystemAxis::rebuild | ( | ) | [virtual] |
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.
End of the coordinate system.
(1,1,1) by default.
Start of the coordinate system.
(0,0,0) by default.
Translation factor of the titles (as function of the length of each vector).
0 by default.
String to be displayed at the end of the X coordinate vector.
"X" by default.
String to be displayed at the end of the Y coordinate vector.
"Y" by default.
String to be displayed at the end of the Z coordinate vector.
"Z" by default.