An abstract base class for classes containing a scale.
Más...
#include <qwt_abstract_scale.h>
Lista de todos los miembros.
Descripción detallada
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.
Documentación del constructor y destructor
QwtAbstractScale::QwtAbstractScale |
( |
| ) |
|
QwtAbstractScale::~QwtAbstractScale |
( |
| ) |
[virtual] |
Documentación de las funciones miembro
bool QwtAbstractScale::autoScale |
( |
| ) |
const |
- Devuelve:
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.
- Parámetros:
-
vmin | Lower limit of the scale interval |
vmax | Upper limit of the scale interval |
stepSize | Major step size |
- Ver también:
- scaleChange()
void QwtAbstractScale::scaleChange |
( |
| ) |
[protected, virtual] |
Notify changed scale.
Dummy empty implementation, intended to be overloaded by derived classes
Reimplementado en QwtSlider y QwtThermo.
const QwtScaleMap & QwtAbstractScale::scaleMap |
( |
| ) |
const |
int QwtAbstractScale::scaleMaxMajor |
( |
| ) |
const |
- Devuelve:
- Max. number of major tick intervals The default value is 5.
int QwtAbstractScale::scaleMaxMinor |
( |
| ) |
const |
- Devuelve:
- 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.
void QwtAbstractScale::setAutoScale |
( |
| ) |
|
Advise the widget to control the scale range internally.
Autoscaling is on by default.
- Ver también:
- setScale(), autoScale()
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
- Parámetros:
-
vmin | lower limit of the scale interval |
vmax | upper limit of the scale interval |
stepSize | major step size |
- Ver también:
- setAutoScale()
void QwtAbstractScale::setScale |
( |
const QwtScaleDiv & |
scaleDiv | ) |
|
Specify a scale.
Disable autoscaling and define a scale by a scale division
- Parámetros:
-
- Ver también:
- 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
- Parámetros:
-
interval | Interval |
stepSize | major step size |
- Ver también:
- 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.
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.
- Parámetros:
-
ticks | maximal number of major ticks. |
- Ver también:
- 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.
- Parámetros:
-
- Ver también:
- QwtAbstractScaleDraw
La documentación para esta clase fue generada a partir de los siguientes ficheros: