|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
The standard (1:1) mapping class for axis numbering. More...
#include <qwt3d_scale.h>
Classes | |
| class | PrivateData |
Protected Member Functions | |
| Qwt3DLinearScale () | |
| Applies Qwt3DLinearAutoScaler::execute() for autoscaling. | |
| int | autoscale (double &a, double &b, double start, double stop, int ivals) override |
| Autoscales the axis. | |
| Qwt3DScale * | clone () const override |
| Returns a new heap based object utilized from Qwt3DClonePtr. | |
| void | calculate () override |
| Creates the major and minor vector for the scale. | |
| void | copyLinearScaleState (const Qwt3DLinearScale &other) |
| Copies the linear autoscaler state from another Qwt3DLinearScale. | |
Protected Member Functions inherited from Qwt3DScale | |
| 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. | |
| 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. | |
Friends | |
| class | Qwt3DAxis |
| class | Qwt3DClonePtr< Qwt3DScale > |
The standard (1:1) mapping class for axis numbering.
|
protected |
Applies Qwt3DLinearAutoScaler::execute() for autoscaling.
| [out] | a | First major tic after autoscaling |
| [out] | b | Last major tic after autoscaling |
| start | Scale begin | |
| stop | Scale end | |
| ivals | Requested number of major intervals |
|
overrideprotectedvirtual |
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.
Reimplemented from Qwt3DScale.
|
overrideprotectedvirtual |
Creates the major and minor vector for the scale.
Implements Qwt3DScale.
|
overrideprotectedvirtual |
Returns a new heap based object utilized from Qwt3DClonePtr.
Implements Qwt3DScale.
Reimplemented in Qwt3DTextScale.
|
protected |
Copies the linear autoscaler state from another Qwt3DLinearScale.
| other | Source scale to copy from |
Qwt3DLinearScale is a friend of Qwt3DLinearAutoScaler, so this protected member gives derived scales (e.g. Qwt3DTextScale) access to the autoscaler state copy inside their clone() overrides.