LinearRangeMapper Class Reference

#include <RangeMapper.h>

Inherits RangeMapper.

Inheritance diagram for LinearRangeMapper:

Inheritance graph
[legend]
Collaboration diagram for LinearRangeMapper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 32 of file RangeMapper.h.

Public Member Functions

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

Protected Attributes

int m_minpos
int m_maxpos
float m_minval
float m_maxval
QString m_unit


Constructor & Destructor Documentation

LinearRangeMapper::LinearRangeMapper ( int  minpos,
int  maxpos,
float  minval,
float  maxval,
QString  unit = "" 
)

Definition at line 23 of file RangeMapper.cpp.

References m_maxpos, m_maxval, m_minpos, and m_minval.


Member Function Documentation

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

Implements RangeMapper.

Definition at line 37 of file RangeMapper.cpp.

References m_maxpos, m_maxval, m_minpos, and m_minval.

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

Implements RangeMapper.

Definition at line 50 of file RangeMapper.cpp.

References m_maxpos, m_maxval, m_minpos, and m_minval.

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

Reimplemented from RangeMapper.

Definition at line 42 of file RangeMapper.h.

References m_unit.


Member Data Documentation

int LinearRangeMapper::m_minpos [protected]

Definition at line 45 of file RangeMapper.h.

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

int LinearRangeMapper::m_maxpos [protected]

Definition at line 46 of file RangeMapper.h.

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

float LinearRangeMapper::m_minval [protected]

Definition at line 47 of file RangeMapper.h.

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

float LinearRangeMapper::m_maxval [protected]

Definition at line 48 of file RangeMapper.h.

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

QString LinearRangeMapper::m_unit [protected]

Definition at line 49 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