Class to build a polar linear axis. More...
#include <MeshViz/graph/PoPolarLinAxis.h>
Classes | |
struct | PolarLinAxisAttr |
Public Types | |
enum | GradFit { GRAD_FIT, GRAD_UNFIT } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoPolarLinAxis () | |
PoPolarLinAxis (float offset, float startRadius, float endRadius, float theta, float step=0.0) | |
virtual void | rebuild () |
void | setFormat (PbNumericDisplayFormat *format) |
const PbNumericDisplayFormat * | getFormat () const |
float | getStep () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFFloat | step |
SoSFEnum | gradFit |
This class builds a polar linear axis in the plane XY. This axis will be generated from the point in polar coordinate (startRadius + offset, theta) to the point (endRadius + offset, theta), however the graduations start at startRadius and finish at endRadius.
Graduations format depends on the current numerical display format. If the method setFormat(format) is called, the current numerical display format is "format". Otherwise the current numerical display format is specified in the current inherited state (cf property node PoNumericDisplayFormat).
gradVisibility | VISILITY_DEPEND |
gradPosition | GRAD_DEPEND |
gradPath | PATH_DEPEND |
gradFontName | "" |
gradFontSize | 0 |
gradDistAxis | 0 |
gradAddStringVisibility | FALSE |
gradAddString | "" |
marginType | REL_MARGIN |
marginStart | 0 |
marginEnd | 0 |
titleVisibility | VISILITY_DEPEND |
titlePosition | TITLE_DEPEND |
titlePath | PATH_DEPEND |
titleFontName | "" |
titleFontSize | 0 |
titleDistAxis | 0 |
titleString | "" |
gridVisibility | VISILITY_DEPEND |
gridLengthGradSide | 0 |
gridLengthGradOtherSide | 1 |
arrowVisibility | VISIBILITY_DEPEND |
arrowHeight | 0.03 |
arrowLength | 0.05 |
tickVisibility | VISIBILITY_DEPEND |
tickPosition | TICK_GRAD_SIDE |
tickMainLength | 0 |
tickSubLength | 0 |
tickSubDef | PERIOD_MAIN_TICK |
tickNumOrPeriod | 1 |
tickFirstGrad | 1 |
tickLastGrad | 1 |
reverseFlag | AXIS_REVERSE_DEPEND |
offset | 0 |
startRadius | 0 |
endRadius | 1 |
theta | 0 |
multFactorPosition | MULT_FACTOR_END |
multFactorDistAxis | 0 |
step | 0 |
gradFit | GRAD_UNFIT |
PoPolarLinAxis::PoPolarLinAxis | ( | ) |
Default constructor.
PoPolarLinAxis::PoPolarLinAxis | ( | float | offset, | |
float | startRadius, | |||
float | endRadius, | |||
float | theta, | |||
float | step = 0.0 | |||
) |
Constructor.
static const SoNodekitCatalog* PoPolarLinAxis::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoPolarAxis.
static SoType PoPolarLinAxis::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoPolarAxis.
const PbNumericDisplayFormat* PoPolarLinAxis::getFormat | ( | ) | const |
Gets a reference to a PbNumericDisplayFormat object for the numerical display format for the graduations.
virtual const SoNodekitCatalog* PoPolarLinAxis::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoPolarAxis.
float PoPolarLinAxis::getStep | ( | ) | const |
Returns the step (the step computed can be different from the associated field).
virtual SoType PoPolarLinAxis::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoPolarAxis.
virtual void PoPolarLinAxis::rebuild | ( | ) | [virtual] |
void PoPolarLinAxis::setFormat | ( | PbNumericDisplayFormat * | format | ) |
Sets a reference to a PbNumericDisplayFormat object for the numerical display format for the graduations.
If this method is not called (or called passing NULL as argument), this is the numerical display format defined in the current inherited state (defined with the property node PoNumericDisplayFormat) which is used.
This flag indicates if the first graduation is rounded or not.
Defines the step for the axis.
If this value is <= 0, the step is automatically calculated.