Public Member Functions | Private Attributes | List of all members
QwtPowerTransform Class Reference

A transformation using pow() More...

#include <qwt_transform.h>

Inheritance diagram for QwtPowerTransform:
Inheritance graph
[legend]

Public Member Functions

virtual QwtTransformcopy () const
 
virtual double invTransform (double value) const
 
 QwtPowerTransform (double exponent)
 
virtual double transform (double value) const
 
virtual ~QwtPowerTransform ()
 Destructor. More...
 
- Public Member Functions inherited from QwtTransform
virtual double bounded (double value) const
 
 QwtTransform ()
 Constructor. More...
 
virtual ~QwtTransform ()
 Destructor. More...
 

Private Attributes

const double d_exponent
 

Detailed Description

A transformation using pow()

QwtPowerTransform preserves the sign of a value. F.e. a transformation with a factor of 2 transforms a value of -3 to -9 and v.v. Thus QwtPowerTransform can be used for scales including negative values.

Definition at line 125 of file qwt_transform.h.

Constructor & Destructor Documentation

QwtPowerTransform::QwtPowerTransform ( double  exponent)
explicit

Constructor

Parameters
exponentExponent

Definition at line 125 of file qwt_transform.cpp.

QwtPowerTransform::~QwtPowerTransform ( )
virtual

Destructor.

Definition at line 132 of file qwt_transform.cpp.

Member Function Documentation

QwtTransform * QwtPowerTransform::copy ( ) const
virtual
Returns
Clone of the transformation

Implements QwtTransform.

Definition at line 162 of file qwt_transform.cpp.

double QwtPowerTransform::invTransform ( double  value) const
virtual
Parameters
valueValue to be transformed
Returns
Inverse exponentiation preserving the sign

Implements QwtTransform.

Definition at line 153 of file qwt_transform.cpp.

double QwtPowerTransform::transform ( double  value) const
virtual
Parameters
valueValue to be transformed
Returns
Exponentiation preserving the sign

Implements QwtTransform.

Definition at line 140 of file qwt_transform.cpp.

Member Data Documentation

const double QwtPowerTransform::d_exponent
private

Definition at line 137 of file qwt_transform.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19