A scale map.
More...
#include <qwt_scale_map.h>
◆ QwtScaleMap() [1/2]
| QwtScaleMap::QwtScaleMap |
( |
| ) |
|
◆ QwtScaleMap() [2/2]
Copy constructor.
Copy constructor .
◆ ~QwtScaleMap()
| QwtScaleMap::~QwtScaleMap |
( |
| ) |
|
◆ invTransform() [1/3]
Transform a point from paint to scale coordinates.
◆ invTransform() [2/3]
Transform a rectangle from paint to scale coordinates.
◆ invTransform() [3/3]
| double QwtScaleMap::invTransform |
( |
double |
p | ) |
const |
|
inline |
Transform a paint device coordinate to scale value.
Transform a paint device value into a value in the interval of the scale.
◆ isInverting()
| bool QwtScaleMap::isInverting |
( |
| ) |
const |
|
inline |
Check if the mapping direction is inverted.
Return true when ( p1() < p2() ) != ( s1() < s2() )
◆ isLinerScale()
| bool QwtScaleMap::isLinerScale |
( |
const QwtScaleMap & |
sm | ) |
|
|
static |
Check if the scale is linear (no transformation)
◆ operator=()
Copy assignment operator.
Assignment operator .
◆ p1()
| double QwtScaleMap::p1 |
( |
| ) |
const |
|
inline |
Return first border of paint interval.
Return first border of the paint interval .
◆ p2()
| double QwtScaleMap::p2 |
( |
| ) |
const |
|
inline |
Return second border of paint interval.
Return second border of the paint interval .
◆ pDist()
| double QwtScaleMap::pDist |
( |
| ) |
const |
|
inline |
Return distance between paint interval boundaries.
Return qwtAbs(p2() - p1()) .
◆ s1()
| double QwtScaleMap::s1 |
( |
| ) |
const |
|
inline |
Return first border of scale interval.
Return first border of the scale interval .
◆ s2()
| double QwtScaleMap::s2 |
( |
| ) |
const |
|
inline |
Return second border of scale interval.
Return second border of the scale interval .
◆ sDist()
| double QwtScaleMap::sDist |
( |
| ) |
const |
|
inline |
Return distance between scale interval boundaries.
Return qwtAbs(s2() - s1()) .
◆ setPaintInterval()
| void QwtScaleMap::setPaintInterval |
( |
double |
p1, |
|
|
double |
p2 |
|
) |
| |
Set the paint device interval boundaries.
Specify the borders of the paint device interval.
◆ setScaleInterval()
| void QwtScaleMap::setScaleInterval |
( |
double |
s1, |
|
|
double |
s2 |
|
) |
| |
Set the scale interval boundaries.
Specify the borders of the scale interval.
◆ setTransformation()
| void QwtScaleMap::setTransformation |
( |
QwtTransform * |
transform | ) |
|
Set the transformation (takes ownership)
Initialize the map with a transformation.
◆ transform() [1/3]
Transform a point from scale to paint coordinates.
◆ transform() [2/3]
Transform a rectangle from scale to paint coordinates.
◆ transform() [3/3]
| double QwtScaleMap::transform |
( |
double |
s | ) |
const |
|
inline |
Transform a scale value to paint device coordinate.
Transform a point related to the scale interval into a point related to the paint device interval.
◆ transformation()
Return the transformation.
Get the transformation.
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_scale_map.h
- /home/runner/work/QWT/QWT/src/plot/qwt_scale_map.cpp