Inheritance diagram for QwtScaleIf:
This interface class is used to provide classes a QwtScaleDraw and an interface to access that scale.
Public Member Functions | |
QwtScaleIf () | |
virtual | ~QwtScaleIf () |
void | setScale (double vmin, double vmax, int logarithmic=0) |
void | setScale (double vmin, double vmax, double step, int logarithmic=0) |
void | setScale (const QwtScaleDiv &s) |
void | setScaleMaxMajor (int ticks) |
void | setScaleMaxMinor (int ticks) |
void | autoScale () |
int | scaleMaxMinor () const |
int | scaleMaxMajor () const |
void | setScaleDraw (QwtScaleDraw *) |
const QwtScaleDraw * | scaleDraw () const |
Protected Member Functions | |
bool | hasUserScale () |
virtual void | scaleChange ()=0 |
QwtScaleDraw * | scaleDraw () |
|
Constructor.
|
|
Destructor.
|
|
Advise the widget to control the scale range internally. Autoscaling is on by default.
|
|
Check for user-defined scale.
|
|
Notify changed scale.
|
|
|
|
|
|
|
|
|
|
Assign a user-defined scale division
|
|
Specify a user-defined scale. By default, the widget is supposed to control the range of its scale automatically, but sometimes it is desirable to have a user-defined scale which is not in sync with the widget's range, e.g. if a logarithmic scale is needed (sliders don't support that) or if the scale is required to have a fixed range (say 0...100%), independent of the widget's range.
|
|
Specify a user-defined scale. By default, the widget is supposed to control the range of its scale automatically, but sometimes it is desirable to have a user-defined scale which is not in sync with the widget's range, e.g. if a logarithmic scale is needed (sliders don't support that) or if the scale is required to have a fixed range (say 0...100%), independent of the widget's range.
|
|
Set a scale draw sd has to be created with new and will be deleted in QwtScaleIf::~QwtScaleIf or the next call of QwtScaleIf::setScaleDraw.
|
|
Set the maximum number of major tick intervals. The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5.
|
|
Set the maximum number of minor tick intervals. The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3.
|