|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Non-visual scale class encapsulating tic generation 更多...
#include <qwt3d_scale.h>
类 | |
| class | PrivateData |
Protected 成员函数 | |
| virtual QString | ticLabel (unsigned int idx) const |
| Maps the double value at tic-position idx to a final representation | |
| virtual void | setLimits (double start, double stop) |
| Sets start and stop value for the scale | |
| virtual void | setMajors (int val) |
| Sets number of major intervals | |
| virtual void | setMinors (int val) |
| Sets number of minor intervals per major interval | |
| virtual void | setMajorLimits (double start, double stop) |
| Sets value of first and last major tic | |
| int | majors () const |
| Returns major intervals | |
| int | minors () const |
| Returns minor intervals | |
| virtual Qwt3DScale * | clone () const =0 |
| virtual void | calculate ()=0 |
| virtual int | autoscale (double &a, double &b, double start, double stop, int ivals) |
| Autoscales the axis | |
| const std::vector< double > & | majorTicks () const |
| Returns const reference to major tic positions | |
| const std::vector< double > & | minorTicks () const |
| Returns const reference to minor tic positions | |
| void | copyFrom (const Qwt3DScale &other) |
| Copies Qwt3DScale base state from another Qwt3DScale | |
友元 | |
| class | Qwt3DAxis |
| class | Qwt3DClonePtr< Qwt3DScale > |
Non-visual scale class encapsulating tic generation
The class encapsulates non-visual scales. It is utilized by Qwt3DAxis and also collaborates closely with Qwt3DAutoScaler. A Qwt3DScale allows control over all aspects of tic generation including arbitrary transformations of tic values into corresponding strings. The strings contain what eventually will be shown as tic labels. Standard linear and logarithmic scales have been integrated into the Qwt3DAxis interface. User-defined axes can be derived from Qwt3DScale, Qwt3DLinearScale et al.
|
protectedvirtual |
Autoscales the axis
| [out] | a | First major tic after applying autoscaling |
| [out] | b | Last major tic after applying autoscaling |
| start | Scale begin | |
| stop | Scale end | |
| ivals | Requested number of major intervals |
The default implementation sets a=start, b=stop and returns ivals.
被 Qwt3DLinearScale 重载.
|
protectedpure virtual |
在 Qwt3DLinearScale , 以及 Qwt3DLogScale 内被实现.
|
protectedpure virtual |
在 Qwt3DLinearScale , 以及 Qwt3DLogScale 内被实现.
|
protected |
Copies Qwt3DScale base state from another Qwt3DScale
| other | Source Qwt3DScale to copy from |
Used by derived class clone() implementations to copy the Qwt3DScale base data without requiring a copy constructor.
|
protected |
Returns major intervals
|
protected |
Returns const reference to major tic positions
|
protected |
Returns minor intervals
|
protected |
Returns const reference to minor tic positions
|
protectedvirtual |
Sets start and stop value for the scale
| start | Scale start value |
| stop | Scale stop value |
|
protectedvirtual |
Sets value of first and last major tic
| start | First major tic value |
| stop | Last major tic value |
|
protectedvirtual |
Sets number of major intervals
| val | Number of major intervals |
|
protectedvirtual |
Sets number of minor intervals per major interval
| val | Number of minor intervals |
被 Qwt3DLogScale 重载.
|
protectedvirtual |
Maps the double value at tic-position idx to a final representation
| idx | The current major tic index |
The default return value is simply the tic values QString representation. Overwrite this function, if you plan to transform the value in some way. See e.g. Qwt3DLogScale::ticLabel.
被 Qwt3DLogScale 重载.