24#ifndef _PO_POLAR_LOG_AXIS_
25#define _PO_POLAR_LOG_AXIS_
27#include <Inventor/fields/SoSFEnum.h>
28#include <Inventor/fields/SoSFFloat.h>
29#include <Inventor/fields/SoMFUShort.h>
30#include <Inventor/fields/SoSFString.h>
32#include <MeshViz/graph/PoPolarAxis.h>
107 SO_KIT_CATALOG_ENTRY_HEADER(decadeTextSep) ;
108 SO_KIT_CATALOG_ENTRY_HEADER(decadeTextApp) ;
109 SO_KIT_CATALOG_ENTRY_HEADER(decadeText) ;
239 const unsigned short *
decadeList = NULL,
short numDecade = 0) ;
259 static void initClass() ;
260 static void exitClass() ;
272 struct PolLogAxisAttr {
282 virtual void setDefaultOnNonWritingFields() ;
285 virtual void saveAxisAttr() ;
290 const unsigned short *
decadeList = NULL,
short numDecade = 0) ;
294 void buildLogGrad(
const std::vector<float> &mainGradX, std::vector<float> &secdGradX,
295 size_t numDecades,
int *decades,
int firstDecInd,
299 void computeLogGradFontSize(
size_t numMainGrad,
const char **main_str,
300 const char **main_ten_pow_str,
size_t numSecdGrad,
301 const char **secd_str,
const char **secd_ten_pow_str,
302 float min_grad_dist,
SbBool main_grad_pres_auto,
303 float &main_font_size,
float &secd_font_size) ;
306 PolLogAxisAttr polLogAxisAttr ;
309 FieldSensorList fieldSensorList ;
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for polar...
SoSFFloat theta
Rotation angle of the axis in radians.
SoSFFloat endRadius
Radius at the end of the axis.
SoSFFloat offset
Offset for the axis.
SoSFFloat startRadius
Radius at the start of the axis.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to build a logarit...
virtual void rebuild()
Forces node-kit rebuilding.
SoSFFloat decadeFontSize
Decade graduations font size.
void 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 asso...
SoMFUShort decadeList
Specifies if the list of decade graduations is given by the user or is automatically computed.
SoSFEnum decadeRep
Defines the representation of the decade graduations between two power of ten graduations.
DecadeRep
Type of presentation of the axis decades.
@ DECADE_DIGIT
Decade graduations are displayed using a digit from 2 to 9
@ DECADE_AUTO
giving the multiple of the power of ten.
@ DECADE_DECIMAL
Decade graduations are displayed in decimals.
@ DECADE_AS_TEN_POWER
Decade graduations are displayed as power of ten graduations.
@ DECADE_NONE
No decade graduations are displayed.
TenPowGradRep
Type of presentation of the power of ten.
@ TEN_POWER_POW10
The graduations are specified in powers of ten.
@ TEN_POWER_DECIMAL
The graduations are specified in decimals.
@ TEN_POWER_AUTO
The graduations are specified in powers of ten or in decimals,.
DecadeListDef
Decade list computed automatically or given by the user.
@ DECADE_LIST_AUTO
The list of decade graduations is automatically computed.
@ DECADE_LIST_NON_AUTO
The list of decade graduations is given by the user.
PoPolarLogAxis()
Default constructor.
SoSFEnum tenPowerRep
Defines the representation of power of ten graduations.
SoSFEnum decadeListDef
List of graduations between two power of ten graduations (decade graduations).
PoPolarLogAxis(float offset, float startRadius, float endRadius, float theta, DecadeListDef decadeListDef=DECADE_LIST_AUTO, const unsigned short *decadeList=NULL, short numDecade=0)
Constructor.
SoSFString decadeFontName
Decade font name.
Class for smart character strings.
Maintains a list of pointers to fields.
Base class for all group nodes.
Multiple-value field containing any number of unsigned short integers.
Field containing an enumerated value.
Field containing a floating-point value.
Field containing a string.