A transformation between coordinate systems. More...
#include <qwt_transform.h>
Public Member Functions | |
virtual double | bounded (double value) const |
virtual QwtTransform * | copy () const =0 |
Virtualized copy operation. More... | |
virtual double | invTransform (double value) const =0 |
QwtTransform () | |
Constructor. More... | |
virtual double | transform (double value) const =0 |
virtual | ~QwtTransform () |
Destructor. More... | |
A transformation between coordinate systems.
QwtTransform manipulates values, when being mapped between the scale and the paint device coordinate system.
A transformation consists of 2 methods:
where one is is the inverse function of the other.
When p1, p2 are the boundaries of the paint device coordinates and s1, s2 the boundaries of the scale, QwtScaleMap uses the following calculations:
Definition at line 35 of file qwt_transform.h.
QwtTransform::QwtTransform | ( | ) |
Constructor.
Definition at line 20 of file qwt_transform.cpp.
|
virtual |
Destructor.
Definition at line 25 of file qwt_transform.cpp.
|
virtual |
Modify value to be a valid value for the transformation. The default implementation does nothing.
value | Value to be bounded |
Reimplemented in QwtLogTransform.
Definition at line 33 of file qwt_transform.cpp.
|
pure virtual |
Virtualized copy operation.
Implemented in QwtPowerTransform, QwtLogTransform, and QwtNullTransform.
|
pure virtual |
Inverse transformation function
value | Value |
Implemented in QwtPowerTransform, QwtLogTransform, and QwtNullTransform.
|
pure virtual |
Transformation function
value | Value |
Implemented in QwtPowerTransform, QwtLogTransform, and QwtNullTransform.