QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Properties | List of all members
QwtAbstractScale Class Reference

An abstract base class for widgets having a scale. More...

#include <qwt_abstract_scale.h>

Inheritance diagram for QwtAbstractScale:
QwtAbstractSlider QwtThermo QwtDial QwtKnob QwtSlider QwtAnalogClock QwtCompass

Classes

class  PrivateData
 

Public Member Functions

 QwtAbstractScale (QWidget *parent=nullptr)
 Constructor for QwtAbstractScale.
 
virtual ~QwtAbstractScale ()
 Destructor for QwtAbstractScale .
 
void setScale (double lowerBound, double upperBound)
 Specify a scale by interval bounds.
 
void setScale (const QwtInterval &)
 Specify a scale by interval.
 
void setScale (const QwtScaleDiv &)
 Specify a scale by scale division.
 
const QwtScaleDivscaleDiv () const
 Return the scale division.
 
void setLowerBound (double value)
 Set the lower bound of the scale.
 
double lowerBound () const
 Return the lower bound of the scale.
 
void setUpperBound (double value)
 Set the upper bound of the scale.
 
double upperBound () const
 Return the upper bound of the scale.
 
void setScaleStepSize (double stepSize)
 Set the step size used for calculating scale division.
 
double scaleStepSize () const
 Return the step size hint.
 
void setScaleMaxMajor (int ticks)
 Set the maximum number of major tick intervals.
 
int scaleMaxMinor () const
 Return the maximum number of minor tick intervals.
 
void setScaleMaxMinor (int ticks)
 Set the maximum number of minor tick intervals.
 
int scaleMaxMajor () const
 Return the maximum number of major tick intervals.
 
void setScaleEngine (QwtScaleEngine *)
 Set the scale engine.
 
const QwtScaleEnginescaleEngine () const
 Return the scale engine (const version)
 
QwtScaleEnginescaleEngine ()
 Return the scale engine (non-const version)
 
int transform (double) const
 Transform a scale value to widget coordinates.
 
double invTransform (int) const
 Transform a widget coordinate to scale value.
 
bool isInverted () const
 Check if scale is inverted.
 
double minimum () const
 Return the minimum boundary.
 
double maximum () const
 Return the maximum boundary.
 
const QwtScaleMapscaleMap () const
 Return the scale map.
 

Protected Member Functions

virtual void changeEvent (QEvent *) override
 Handle change events (English only)
 
void rescale (double lowerBound, double upperBound, double stepSize)
 Recalculate scale and update scale draw (English only)
 
void setAbstractScaleDraw (QwtAbstractScaleDraw *)
 Set the scale draw object (English only)
 
const QwtAbstractScaleDrawabstractScaleDraw () const
 Return the scale draw (const version) (English only)
 
QwtAbstractScaleDrawabstractScaleDraw ()
 Return the scale draw (non-const version) (English only)
 
void updateScaleDraw ()
 Update the scale draw (English only)
 
virtual void scaleChange ()
 Notify about scale changes (English only)
 

Properties

double lowerBound
 
double upperBound
 
int scaleMaxMajor
 
int scaleMaxMinor
 
double scaleStepSize
 

Detailed Description

An abstract base class for widgets having a scale.

Constructor & Destructor Documentation

◆ QwtAbstractScale()

QwtAbstractScale::QwtAbstractScale ( QWidget *  parent = nullptr)
explicit

Constructor for QwtAbstractScale.

◆ ~QwtAbstractScale()

QwtAbstractScale::~QwtAbstractScale ( )
virtual

Destructor for QwtAbstractScale .

Member Function Documentation

◆ abstractScaleDraw() [1/2]

QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw ( )
protected

Return the scale draw (non-const version) (English only)

Return the scale draw object (non-const)

◆ abstractScaleDraw() [2/2]

const QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw ( ) const
protected

Return the scale draw (const version) (English only)

Return the scale draw object (const)

◆ changeEvent()

void QwtAbstractScale::changeEvent ( QEvent *  event)
overrideprotectedvirtual

Handle change events (English only)

Handle change events.

Reimplemented in QwtDial, QwtKnob, QwtSlider, and QwtThermo.

◆ invTransform()

double QwtAbstractScale::invTransform ( int  value) const

Transform a widget coordinate to scale value.

◆ isInverted()

bool QwtAbstractScale::isInverted ( ) const

Check if scale is inverted.

◆ lowerBound()

double QwtAbstractScale::lowerBound ( ) const

Return the lower bound of the scale.

◆ maximum()

double QwtAbstractScale::maximum ( ) const

Return the maximum boundary.

◆ minimum()

double QwtAbstractScale::minimum ( ) const

Return the minimum boundary.

◆ rescale()

void QwtAbstractScale::rescale ( double  lowerBound,
double  upperBound,
double  stepSize 
)
protected

Recalculate scale and update scale draw (English only)

Recalculate scale division and update scale.

◆ scaleChange()

void QwtAbstractScale::scaleChange ( )
protectedvirtual

Notify about scale changes (English only)

Notify about scale changes.

Reimplemented in QwtAbstractSlider, QwtDial, QwtSlider, and QwtThermo.

◆ scaleDiv()

const QwtScaleDiv & QwtAbstractScale::scaleDiv ( ) const

Return the scale division.

◆ scaleEngine() [1/2]

QwtScaleEngine * QwtAbstractScale::scaleEngine ( )

Return the scale engine (non-const version)

◆ scaleEngine() [2/2]

const QwtScaleEngine * QwtAbstractScale::scaleEngine ( ) const

Return the scale engine (const version)

◆ scaleMap()

const QwtScaleMap & QwtAbstractScale::scaleMap ( ) const

Return the scale map.

◆ scaleMaxMajor()

int QwtAbstractScale::scaleMaxMajor ( ) const

Return the maximum number of major tick intervals.

◆ scaleMaxMinor()

int QwtAbstractScale::scaleMaxMinor ( ) const

Return the maximum number of minor tick intervals.

◆ scaleStepSize()

double QwtAbstractScale::scaleStepSize ( ) const

Return the step size hint.

◆ setAbstractScaleDraw()

void QwtAbstractScale::setAbstractScaleDraw ( QwtAbstractScaleDraw scaleDraw)
protected

Set the scale draw object (English only)

Set the scale draw object.

◆ setLowerBound()

void QwtAbstractScale::setLowerBound ( double  value)

Set the lower bound of the scale.

◆ setScale() [1/3]

void QwtAbstractScale::setScale ( const QwtInterval interval)

Specify a scale by interval.

◆ setScale() [2/3]

void QwtAbstractScale::setScale ( const QwtScaleDiv scaleDiv)

Specify a scale by scale division.

◆ setScale() [3/3]

void QwtAbstractScale::setScale ( double  lowerBound,
double  upperBound 
)

Specify a scale by interval bounds.

◆ setScaleEngine()

void QwtAbstractScale::setScaleEngine ( QwtScaleEngine scaleEngine)

Set the scale engine.

◆ setScaleMaxMajor()

void QwtAbstractScale::setScaleMaxMajor ( int  ticks)

Set the maximum number of major tick intervals.

◆ setScaleMaxMinor()

void QwtAbstractScale::setScaleMaxMinor ( int  ticks)

Set the maximum number of minor tick intervals.

◆ setScaleStepSize()

void QwtAbstractScale::setScaleStepSize ( double  stepSize)

Set the step size used for calculating scale division.

◆ setUpperBound()

void QwtAbstractScale::setUpperBound ( double  value)

Set the upper bound of the scale.

◆ transform()

int QwtAbstractScale::transform ( double  value) const

Transform a scale value to widget coordinates.

◆ updateScaleDraw()

void QwtAbstractScale::updateScaleDraw ( )
protected

Update the scale draw (English only)

Recalculate ticks and scale boundaries.

◆ upperBound()

double QwtAbstractScale::upperBound ( ) const

Return the upper bound of the scale.


The documentation for this class was generated from the following files: