Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
qwt
src
qwt_transform.h
Go to the documentation of this file.
1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2
* Qwt Widget Library
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
9
10
#ifndef QWT_TRANSFORM_H
11
#define QWT_TRANSFORM_H
12
13
#include "
qwt_global.h
"
14
35
class
QWT_EXPORT
QwtTransform
36
{
37
public
:
38
QwtTransform
();
39
virtual
~
QwtTransform
();
40
45
virtual
double
bounded(
double
value
)
const
;
46
55
virtual
double
transform(
double
value )
const
= 0;
56
65
virtual
double
invTransform(
double
value )
const
= 0;
66
68
virtual
QwtTransform
*copy()
const
= 0;
69
70
private
:
71
Q_DISABLE_COPY(
QwtTransform
)
72
};
73
80
class
QWT_EXPORT
QwtNullTransform
:
public
QwtTransform
81
{
82
public
:
83
QwtNullTransform
();
84
virtual
~
QwtNullTransform
();
85
86
virtual
double
transform
(
double
value
)
const
QWT_OVERRIDE
;
87
virtual
double
invTransform
(
double
value )
const
QWT_OVERRIDE
;
88
89
virtual
QwtTransform
*
copy
()
const
QWT_OVERRIDE
;
90
};
100
class
QWT_EXPORT
QwtLogTransform
:
public
QwtTransform
101
{
102
public
:
103
QwtLogTransform
();
104
virtual
~
QwtLogTransform
();
105
106
virtual
double
transform
(
double
value
)
const
QWT_OVERRIDE
;
107
virtual
double
invTransform
(
double
value )
const
QWT_OVERRIDE
;
108
109
virtual
double
bounded
(
double
value )
const
QWT_OVERRIDE
;
110
111
virtual
QwtTransform
*
copy
()
const
QWT_OVERRIDE
;
112
113
static
const
double
LogMin
;
114
static
const
double
LogMax
;
115
};
116
125
class
QWT_EXPORT
QwtPowerTransform
:
public
QwtTransform
126
{
127
public
:
128
explicit
QwtPowerTransform
(
double
exponent );
129
virtual
~
QwtPowerTransform
();
130
131
virtual
double
transform
(
double
value
)
const
QWT_OVERRIDE
;
132
virtual
double
invTransform
(
double
value )
const
QWT_OVERRIDE
;
133
134
virtual
QwtTransform
*
copy
()
const
QWT_OVERRIDE
;
135
136
private
:
137
const
double
d_exponent
;
138
};
139
140
#endif
QwtPowerTransform
A transformation using pow()
Definition:
qwt_transform.h:125
value
enum MQTTPropertyCodes value
Definition:
MQTTProperties.c:328
QwtTransform::invTransform
virtual double invTransform(double value) const =0
QwtLogTransform
Logarithmic transformation.
Definition:
qwt_transform.h:100
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtNullTransform
Null transformation.
Definition:
qwt_transform.h:80
QwtTransform::copy
virtual QwtTransform * copy() const =0
Virtualized copy operation.
QwtTransform::bounded
virtual double bounded(double value) const
Definition:
qwt_transform.cpp:33
qwt_global.h
QwtTransform
A transformation between coordinate systems.
Definition:
qwt_transform.h:35
QwtLogTransform::LogMax
static const double LogMax
Largest allowed value for logarithmic scales: 1.0e150.
Definition:
qwt_transform.h:114
QwtLogTransform::LogMin
static const double LogMin
Smallest allowed value for logarithmic scales: 1.0e-150.
Definition:
qwt_transform.h:113
QwtPowerTransform::d_exponent
const double d_exponent
Definition:
qwt_transform.h:137
QwtTransform::transform
virtual double transform(double value) const =0
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition:
qwt_global.h:53
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10