qwt_transform.h
Go to the documentation of this file.
1 /******************************************************************************
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 
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 
81 {
82  public:
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 };
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 
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 m_exponent;
138 };
139 
140 #endif
QwtPowerTransform::m_exponent
const double m_exponent
Definition: qwt_transform.h:137
QwtTransform::copy
virtual QwtTransform * copy() const =0
Virtualized copy operation.
detail::copy
auto copy(const Range &range, OutputIt out) -> OutputIt
Definition: ranges.h:22
QwtTransform::transform
virtual double transform(double value) const =0
QwtLogTransform
Logarithmic transformation.
Definition: qwt_transform.h:100
QwtTransform
A transformation between coordinate systems.
Definition: qwt_transform.h:35
qwt_global.h
QwtTransform::invTransform
virtual double invTransform(double value) const =0
QwtLogTransform::LogMax
static const double LogMax
Largest allowed value for logarithmic scales: 1.0e150.
Definition: qwt_transform.h:114
QwtNullTransform
Null transformation.
Definition: qwt_transform.h:80
QwtPowerTransform
A transformation using pow()
Definition: qwt_transform.h:125
QwtLogTransform::LogMin
static const double LogMin
Smallest allowed value for logarithmic scales: 1.0e-150.
Definition: qwt_transform.h:113
QwtTransform::bounded
virtual double bounded(double value) const
Definition: qwt_transform.cpp:33
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition: qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46