LogRangeMapper Class Reference

#include <RangeMapper.h>

Inherits RangeMapper.

Inheritance diagram for LogRangeMapper:

Inheritance graph
[legend]
Collaboration diagram for LogRangeMapper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 53 of file RangeMapper.h.

Public Member Functions

 LogRangeMapper (int minpos, int maxpos, float minval, float maxval, QString m_unit="")
virtual int getPositionForValue (float value) const
virtual float getValueForPosition (int position) const
virtual QString getUnit () const

Static Public Member Functions

static void convertRatioMinLog (float ratio, float minlog, int minpos, int maxpos, float &minval, float &maxval)
static void convertMinMax (int minpos, int maxpos, float minval, float maxval, float &ratio, float &minlog)

Protected Attributes

int m_minpos
int m_maxpos
float m_ratio
float m_minlog
float m_maxlog
QString m_unit


Constructor & Destructor Documentation

LogRangeMapper::LogRangeMapper ( int  minpos,
int  maxpos,
float  minval,
float  maxval,
QString  m_unit = "" 
)

Definition at line 62 of file RangeMapper.cpp.

References convertMinMax(), m_maxlog, m_maxpos, m_minlog, m_minpos, and m_ratio.


Member Function Documentation

void LogRangeMapper::convertRatioMinLog ( float  ratio,
float  minlog,
int  minpos,
int  maxpos,
float &  minval,
float &  maxval 
) [static]

Definition at line 93 of file RangeMapper.cpp.

void LogRangeMapper::convertMinMax ( int  minpos,
int  maxpos,
float  minval,
float  maxval,
float &  ratio,
float &  minlog 
) [static]

Definition at line 82 of file RangeMapper.cpp.

Referenced by LogRangeMapper().

int LogRangeMapper::getPositionForValue ( float  value  )  const [virtual]

Implements RangeMapper.

Definition at line 102 of file RangeMapper.cpp.

References m_maxpos, m_minlog, m_minpos, and m_ratio.

float LogRangeMapper::getValueForPosition ( int  position  )  const [virtual]

Implements RangeMapper.

Definition at line 113 of file RangeMapper.cpp.

References m_maxpos, m_minlog, m_minpos, and m_ratio.

virtual QString LogRangeMapper::getUnit (  )  const [inline, virtual]

Reimplemented from RangeMapper.

Definition at line 71 of file RangeMapper.h.

References m_unit.


Member Data Documentation

int LogRangeMapper::m_minpos [protected]

Definition at line 74 of file RangeMapper.h.

Referenced by getPositionForValue(), getValueForPosition(), and LogRangeMapper().

int LogRangeMapper::m_maxpos [protected]

Definition at line 75 of file RangeMapper.h.

Referenced by getPositionForValue(), getValueForPosition(), and LogRangeMapper().

float LogRangeMapper::m_ratio [protected]

Definition at line 76 of file RangeMapper.h.

Referenced by getPositionForValue(), getValueForPosition(), and LogRangeMapper().

float LogRangeMapper::m_minlog [protected]

Definition at line 77 of file RangeMapper.h.

Referenced by getPositionForValue(), getValueForPosition(), and LogRangeMapper().

float LogRangeMapper::m_maxlog [protected]

Definition at line 78 of file RangeMapper.h.

Referenced by LogRangeMapper().

QString LogRangeMapper::m_unit [protected]

Definition at line 79 of file RangeMapper.h.

Referenced by getUnit().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:33 2008 for SonicVisualiser by  doxygen 1.5.1