Class to build an angular axis. More...
#include <MeshViz/graph/PoAngularAxis.h>
Classes | |
struct | AngularAxisAttr |
Public Types | |
enum | GradFit { GRAD_FIT, GRAD_UNFIT } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoAngularAxis () | |
PoAngularAxis (float _offset, float _startAngle, float _endAngle, float _radius, float _angleStep) | |
virtual void | rebuild () |
float | getAngleStep () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFFloat | offset |
SoSFFloat | startAngle |
SoSFFloat | endAngle |
SoSFFloat | radius |
SoSFFloat | angleStep |
SoSFEnum | gradFit |
This class builds an angular axis in the plane XY. The axis is generated between (startAngle + offset) and (endEngle + offset) in counter-clockwise. It is centered at (0,0). An angle step defines the angular distance between two graduations. Graduations are displayed in degrees. The inherited field reverseFlag is not used.
PoAngularAxis::PoAngularAxis | ( | ) |
Default constructor.
PoAngularAxis::PoAngularAxis | ( | float | _offset, | |
float | _startAngle, | |||
float | _endAngle, | |||
float | _radius, | |||
float | _angleStep | |||
) | [inline] |
Constructor.
float PoAngularAxis::getAngleStep | ( | ) | const |
Returns the current angle step (the step computed can be different from the associated field).
static const SoNodekitCatalog* PoAngularAxis::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoAxis.
static SoType PoAngularAxis::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoAxis.
virtual const SoNodekitCatalog* PoAngularAxis::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoAxis.
virtual SoType PoAngularAxis::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoAxis.
virtual void PoAngularAxis::rebuild | ( | ) | [virtual] |
Angular distance in radians between two graduations.
If this value is <= 0, the angle step is automatically calculated according to the ratio radius and the current domain (see PoBase description).
Angle in radians of the end of the axis.
This flag indicates if the first graduation is rounded or not.
(GRAD_UNFIT by default).
Offset for the axis in radians.
(However the graduations begin at startAngle to endAngle).
Radius of the axis.
Angle in radians of the origin of the axis.