Class to build a logarithmic axis. More...
#include <MeshViz/graph/PoLogAxis.h>
This class builds a logarithmic axis. This axis will be generated between the point start to the point end. The graduations will be in the plane given by the user (cf type field). For instance, it can be used for building a logarithmic axis in the plane XY, with the first decade graduation being 10E3 and the last decade graduation being 10E8. Graduation values are: 10E3, 10E4, 10E5, ...,10E8): gradStart = 3, gradEnd = 8 plane = XY and maxGradNum > 8. If maxGradNum = 4, the graduations values are 10E3, 10E5 and 10E7. If the fields gradStart and gradEnd are equal, the fields start and end are used to define the graduation values.
gradVisibility | VISILITY_DEPEND |
gradPosition | GRAD_DEPEND |
gradPath | PATH_DEPEND |
gradFontName | "" |
gradFontSize | 0 |
gradDistAxis | 0 |
gradAddStringVisibility | FALSE |
gradAddString | "" |
marginType | REL_MARGIN |
marginStart | 0 |
marginEnd | 0 |
maxGradNum | 10 |
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 |
start | 0 0 0 |
end | 1 |
type | XY |
gradStart | 0 |
gradEnd | 0 |
decadeListDef | DECADE_LIST_AUTO |
decadeList | 2 |
tenPowerRep | TEN_POWER_POW10 |
decadeRep | DECADE_NONE |
decadeFontName | "" |
decadeFontSize | 0 |
multFactorPosition | MULT_FACTOR_END |
multFactorDistAxis | 0 |
enum PoLogAxis::DecadeRep |
Type of presentation of the axis decades.
Type of position of the multiplicative factor.
PoLogAxis::PoLogAxis | ( | ) | [inline] |
Constructor.
PoLogAxis::PoLogAxis | ( | const SbVec3f & | _start, | |
float | _end, | |||
PoCartesianAxis::Type | _type, | |||
DecadeListDef | _decadeListDef = DECADE_LIST_AUTO , |
|||
const unsigned short * | _decadeList = NULL , |
|||
short | _numDecade = 0 | |||
) | [inline] |
Constructor.
PoLogAxis::PoLogAxis | ( | const SbVec3f & | _start, | |
float | _end, | |||
PoCartesianAxis::Type | _type, | |||
float | _gradStart, | |||
float | _gradEnd, | |||
DecadeListDef | _decadeListDef = DECADE_LIST_AUTO , |
|||
const unsigned short * | _decadeList = NULL , |
|||
short | _numDecade = 0 | |||
) | [inline] |
Constructor. Since Open Inventor 9.5.1
static const SoNodekitCatalog* PoLogAxis::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoCartesianAxis.
static SoType PoLogAxis::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoCartesianAxis.
void PoLogAxis::getLogGrad | ( | unsigned short & | numDecade, | |
unsigned short | decadeList[8], | |||
TenPowGradRep & | tenPowerRep, | |||
DecadeRep & | decadeRep, | |||
SbString & | decadeFontName, | |||
float & | decadeFontSize | |||
) | const |
Returns the current logarithmic graduations attributes (those computed can be different from the associated fields).
void PoLogAxis::getMultFactor | ( | MultFactorPosition & | position, | |
float & | distAxis | |||
) | const |
Returns the current multiplicative factor attributes (those computed can be different from the associated fields).
virtual const SoNodekitCatalog* PoLogAxis::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoCartesianAxis.
virtual SoType PoLogAxis::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoCartesianAxis.
virtual void PoLogAxis::rebuild | ( | ) | [virtual] |
Decade font name.
If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes (cf PoAxis description).
Decade graduations font size.
If this value is <= 0, the font size is fixed at 0.04 if the graduations do not cross each other. This value is a percentage of the current domain (cf PoBase description).
List of graduations between two power of ten graduations (decade graduations).
For each integer value i of decadeList, 2 <= i <= 9, only the 8 first values of decadeList are used. This field is used to build the axis only if decadeListDef = DECADE_LIST_NON_AUTO.
Specifies if the list of decade graduations is given by the user or is automatically computed.
Defines the representation of the decade graduations between two power of ten graduations.
Maximum number of logarithmic graduations displayed.
For example, a logarithmic axis with range 0 to 100 will have 101 graduations if this value is > 100. But that would generate an axis with too many small illegible graduations. If maxGradNum is set to 10, less than 10 logarithmic graduations are displayed like 10E0, 10E10, 10E20, ... 10E90.
In order to make the axis as legible as possible, when some main logarithmic graduations are filtered out by this field, no decade graduations are displayed.
Default value is 10.
Distance from the multiplicative factor to the axis.
This value is a percentage of the current domain (cf PoBase description). If this value is <= 0, the distance is automatically calculated.
Position of the multiplicative factor.
Defines the representation of power of ten graduations.
Use enum TenPowGradRep.