Class to build a group of two axes. More...
#include <MeshViz/graph/PoGroup2Axis.h>
Public Types | |
enum | AxisType { LINEAR, LOGARITHMIC } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoGroup2Axis () | |
PoGroup2Axis (const SbVec2f &_start, const SbVec2f &_end, AxisType _xAxisType, AxisType _yAxisType, const char *xTtle=NULL, const char *yTtle=NULL) | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFVec2f | start |
SoSFVec2f | end |
SoSFVec2f | gradStart |
SoSFVec2f | gradEnd |
SoSFString | xTitle |
SoSFString | yTitle |
This class builds a group of two axes in the plane XY. This group contains one horizontal axis (X-axis) and one vertical axis (Y-axis).
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.
start | 0 0 |
end | 1 1 |
gradStart | 0 0 |
gradEnd | 0 0 |
xTitle | "" |
yTitle | "" |
PoGroup2Axis::PoGroup2Axis | ( | ) | [inline] |
Default constructor.
PoGroup2Axis::PoGroup2Axis | ( | const SbVec2f & | _start, | |
const SbVec2f & | _end, | |||
AxisType | _xAxisType, | |||
AxisType | _yAxisType, | |||
const char * | xTtle = NULL , |
|||
const char * | yTtle = NULL | |||
) | [inline] |
Constructor.
static const SoNodekitCatalog* PoGroup2Axis::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoBaseAxis.
static SoType PoGroup2Axis::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoBaseAxis.
virtual const SoNodekitCatalog* PoGroup2Axis::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoBaseAxis.
virtual SoType PoGroup2Axis::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoBaseAxis.
virtual void PoGroup2Axis::rebuild | ( | ) | [virtual] |
Defines the end point of the both axis.
The X-axis is generated from the point "start" to the point (end[0], start[1]). The Y-axis is generated from the point start to the point (start[0], end[1]). (1,1) by default.
Defines the value of the graduation (tick label) corresponding to the end point of this group of axes.
See PoCartesianAxis::gradEnd for details.
Since Open Inventor 9.5.1Defines the value of the graduation (tick label) corresponding to the starting point of this group of axes.
See PoCartesianAxis::gradStart for details.
Since Open Inventor 9.5.1Start point of the both axis.
(0,0) by default.
Title of the horizontal axis.
Empty by default.
Title of the vertical axis.
Empty by default.