Class to build a group of four axes. More...
#include <MeshViz/graph/PoGroup4Axis.h>
Public Types | |
enum | AxisType { LINEAR, LOGARITHMIC } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoGroup4Axis () | |
PoGroup4Axis (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 four axes in the plane XY. This group contains two parallel horizontal axes (X-axis) and two parallel vertical axes (Y-axis) which define a rectangle of axes.
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 | "" |
PoGroup4Axis::PoGroup4Axis | ( | ) | [inline] |
Default constructor.
PoGroup4Axis::PoGroup4Axis | ( | const SbVec2f & | _start, | |
const SbVec2f & | _end, | |||
AxisType | _xAxisType, | |||
AxisType | _yAxisType, | |||
const char * | xTtle = NULL , |
|||
const char * | yTtle = NULL | |||
) | [inline] |
Constructor.
(By default the 4 axes are linear axes).
static const SoNodekitCatalog* PoGroup4Axis::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoBaseAxis.
static SoType PoGroup4Axis::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoBaseAxis.
virtual const SoNodekitCatalog* PoGroup4Axis::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoBaseAxis.
virtual SoType PoGroup4Axis::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoBaseAxis.
virtual void PoGroup4Axis::rebuild | ( | ) | [virtual] |
End point of the top horizontal axis and of the right vertical axis.
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 bottom horizontal axis and of the left vertical axis.
The first X-axis is generated from the point "start" to the point (end[0], start[1]). The second X-axis is generated from the point (start[0], end[1]) to the point "end". The first Y-axis is generated from the point "start" to the point (start[0], end[1]). The second Y-axis is generated from the point (end[0], start[1]) to the point "end".
Title of the horizontal axes.
Empty by default.
Title of the vertical axes.
Empty by default.