#include <RangeMapper.h>
Inherits RangeMapper.
Inheritance diagram for LinearRangeMapper:


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 |
| LinearRangeMapper::LinearRangeMapper | ( | int | minpos, | |
| int | maxpos, | |||
| float | minval, | |||
| float | maxval, | |||
| QString | unit = "" | |||
| ) |
| int LinearRangeMapper::getPositionForValue | ( | float | value | ) | const [virtual] |
| float LinearRangeMapper::getValueForPosition | ( | int | position | ) | const [virtual] |
| virtual QString LinearRangeMapper::getUnit | ( | ) | const [inline, virtual] |
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] |
1.5.1