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 QWT_OVERRIDE
 
virtual double invTransform (double value) const QWT_OVERRIDE
 
 QwtPowerTransform (double exponent)
 
virtual double transform (double value) const QWT_OVERRIDE
 
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 m_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::QwtPowerTransform ( double  exponent)
explicit

Constructor

Parameters
exponentExponent

Definition at line 121 of file qwt_transform.cpp.

◆ ~QwtPowerTransform()

QwtPowerTransform::~QwtPowerTransform ( )
virtual

Destructor.

Definition at line 128 of file qwt_transform.cpp.

Member Function Documentation

◆ copy()

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

Implements QwtTransform.

Definition at line 158 of file qwt_transform.cpp.

◆ invTransform()

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

Implements QwtTransform.

Definition at line 149 of file qwt_transform.cpp.

◆ transform()

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

Implements QwtTransform.

Definition at line 136 of file qwt_transform.cpp.

Member Data Documentation

◆ m_exponent

const double QwtPowerTransform::m_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 Mon Nov 11 2024 03:23:51