Rechercher une page de manuel
QwtAbstractScale
Langue: en
Version: 382976 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- Detailed Description
- Constructor & Destructor Documentation
- Member Function Documentation
- QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () [protected]Returns:
- const QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () const [protected]Returns:
- bool QwtAbstractScale::autoScale () constReturns:
- void QwtAbstractScale::rescale (double vmin, double vmax, double stepSize = 0.0) [protected]Recalculate the scale division and update the scale draw.
- void QwtAbstractScale::scaleChange () [protected, virtual]
- QwtScaleEngine * QwtAbstractScale::scaleEngine ()Returns:
- const QwtScaleEngine * QwtAbstractScale::scaleEngine () constReturns:
- const QwtScaleMap & QwtAbstractScale::scaleMap () constReturns:
- int QwtAbstractScale::scaleMaxMajor () constReturns:
- int QwtAbstractScale::scaleMaxMinor () constReturns:
- void QwtAbstractScale::setAbstractScaleDraw (QwtAbstractScaleDraw * scaleDraw) [protected]
- void QwtAbstractScale::setAutoScale ()
- void QwtAbstractScale::setScale (const QwtScaleDiv & scaleDiv)
- void QwtAbstractScale::setScale (const QwtDoubleInterval & interval, double stepSize = 0.0)
- void QwtAbstractScale::setScale (double vmin, double vmax, double stepSize = 0.0)
- void QwtAbstractScale::setScaleEngine (QwtScaleEngine * scaleEngine)
- void QwtAbstractScale::setScaleMaxMajor (int ticks)
- void QwtAbstractScale::setScaleMaxMinor (int ticks)
- Author
NAME
QwtAbstractScale -An abstract base class for classes containing a scale.
SYNOPSIS
#include <qwt_abstract_scale.h>
Inherited by QwtKnob, QwtSlider, and QwtThermo.
Public Member Functions
QwtAbstractScale ()
virtual ~QwtAbstractScale ()
void setScale (double vmin, double vmax, double step=0.0)
void setScale (const QwtDoubleInterval &, double step=0.0)
void setScale (const QwtScaleDiv &s)
void setAutoScale ()
bool autoScale () const
void setScaleMaxMajor (int ticks)
int scaleMaxMinor () const
void setScaleMaxMinor (int ticks)
int scaleMaxMajor () const
void setScaleEngine (QwtScaleEngine *)
const QwtScaleEngine * scaleEngine () const
QwtScaleEngine * scaleEngine ()
const QwtScaleMap & scaleMap () const
Protected Member Functions
void rescale (double vmin, double vmax, double step=0.0)
void setAbstractScaleDraw (QwtAbstractScaleDraw *)
const QwtAbstractScaleDraw * abstractScaleDraw () const
QwtAbstractScaleDraw * abstractScaleDraw ()
virtual void scaleChange ()
Detailed Description
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 explicitely or calculated by a QwtScaleEngine.
Constructor & Destructor Documentation
QwtAbstractScale::QwtAbstractScale ()Constructor
Creates a default QwtScaleDraw and a QwtLinearScaleEngine. Autoscaling is enabled, and the stepSize is initialized by 0.0.
QwtAbstractScale::~QwtAbstractScale () [virtual]
Destructor.
Member Function Documentation
QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () [protected]Returns:
- Scale draw
See also:
- setAbstractScaleDraw()
const QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () const [protected]Returns:
- Scale draw
See also:
- setAbstractScaleDraw()
bool QwtAbstractScale::autoScale () constReturns:
- true if autoscaling is enabled
void QwtAbstractScale::rescale (double vmin, double vmax, double stepSize = 0.0) [protected]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()
void QwtAbstractScale::scaleChange () [protected, virtual]
Notify changed scale. Dummy empty implementation, intended to be overloaded by derived classes
Reimplemented in QwtSlider, and QwtThermo.
QwtScaleEngine * QwtAbstractScale::scaleEngine ()Returns:
- Scale engine
See also:
- setScaleEngine()
const QwtScaleEngine * QwtAbstractScale::scaleEngine () constReturns:
- Scale engine
See also:
- setScaleEngine()
const QwtScaleMap & QwtAbstractScale::scaleMap () constReturns:
- abstractScaleDraw()->scaleMap()
int QwtAbstractScale::scaleMaxMajor () constReturns:
- Max. number of major tick intervals The default value is 5.
int QwtAbstractScale::scaleMaxMinor () constReturns:
- Max. number of minor tick intervals The default value is 3.
void QwtAbstractScale::setAbstractScaleDraw (QwtAbstractScaleDraw * scaleDraw) [protected]
Set a scale draw. scaleDraw has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setAbstractScaleDraw.
void QwtAbstractScale::setAutoScale ()
Advise the widget to control the scale range internally. Autoscaling is on by default.
See also:
- setScale(), autoScale()
void QwtAbstractScale::setScale (const QwtScaleDiv & scaleDiv)
Specify a scale. Disable autoscaling and define a scale by a scale division
Parameters:
- scaleDiv Scale division
See also:
- setAutoScale()
void QwtAbstractScale::setScale (const QwtDoubleInterval & interval, double stepSize = 0.0)
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()
void QwtAbstractScale::setScale (double vmin, double vmax, double stepSize = 0.0)
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()
void QwtAbstractScale::setScaleEngine (QwtScaleEngine * scaleEngine)
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.
void QwtAbstractScale::setScaleMaxMajor (int ticks)
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
void QwtAbstractScale::setScaleMaxMinor (int ticks)
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
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre