Qwtabstractscale -
#include <qwt_abstract_scale.h>
Inherited by QwtKnob, QwtSlider, and QwtThermo.
QwtAbstractScale ()
virtual ~QwtAbstractScale ()
bool autoScale () const
const QwtScaleEngine * scaleEngine () const
QwtScaleEngine * scaleEngine ()
const QwtScaleMap & scaleMap () const
int scaleMaxMajor () const
int scaleMaxMinor () const
void setAutoScale ()
void setScale (double vmin, double vmax, double step=0.0)
void setScale (const QwtDoubleInterval &, double step=0.0)
void setScale (const QwtScaleDiv &s)
void setScaleEngine (QwtScaleEngine *)
void setScaleMaxMajor (int ticks)
void setScaleMaxMinor (int ticks)
const QwtAbstractScaleDraw * abstractScaleDraw () const
QwtAbstractScaleDraw * abstractScaleDraw ()
void rescale (double vmin, double vmax, double step=0.0)
virtual void scaleChange ()
void setAbstractScaleDraw (QwtAbstractScaleDraw *)
An abstract base class for classes containing a scale.
QwtAbstractScale is used to provide classes with a QwtScaleDraw, and a QwtScaleDiv. The QwtScaleDiv might be set explicitly or calculated by a QwtScaleEngine.
Constructor
Creates a default QwtScaleDraw and a QwtLinearScaleEngine. Autoscaling is enabled, and the stepSize is initialized by 0.0.
Returns:
Scale draw
See also:
setAbstractScaleDraw()
Returns:
Scale draw
See also:
setAbstractScaleDraw()
Returns:
true if autoscaling is enabled
Recalculate the scale division and update the scale draw.
Parameters:
vmin Lower limit of the scale interval
vmax Upper limit of the scale interval
stepSize Major step size
See also:
scaleChange()
Notify changed scale. Dummy empty implementation, intended to be overloaded by derived classes
Reimplemented in QwtThermo, and QwtSlider.
Returns:
Scale engine
See also:
setScaleEngine()
Returns:
Scale engine
See also:
setScaleEngine()
Returns:
abstractScaleDraw()->scaleMap()
Returns:
Max. number of major tick intervals The default value is 5.
Returns:
Max. number of minor tick intervals The default value is 3.
Set a scale draw. scaleDraw has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setAbstractScaleDraw.
Advise the widget to control the scale range internally. Autoscaling is on by default.
See also:
setScale(), autoScale()
Specify a scale. Disable autoscaling and define a scale by an interval and a step size
Parameters:
vmin lower limit of the scale interval
vmax upper limit of the scale interval
stepSize major step size
See also:
setAutoScale()
Specify a scale. Disable autoscaling and define a scale by an interval and a step size
Parameters:
interval Interval
stepSize major step size
See also:
setAutoScale()
Specify a scale. Disable autoscaling and define a scale by a scale division
Parameters:
scaleDiv Scale division
See also:
setAutoScale()
Set a scale engine. The scale engine is responsible for calculating the scale division, and in case of auto scaling how to align the scale.
scaleEngine has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setScaleEngine.
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.
Parameters:
ticks maximal number of major ticks.
See also:
QwtAbstractScaleDraw
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.
Parameters:
ticks
See also:
QwtAbstractScaleDraw
Generated automatically by Doxygen for Qwt User's Guide from the source code.