svapp
1.9
|
#include <PlaySpeedRangeMapper.h>
Public Member Functions | |
PlaySpeedRangeMapper (int minpos, int maxpos) | |
virtual int | getPositionForValue (float value) const |
virtual int | getPositionForValueUnclamped (float value) const |
virtual float | getValueForPosition (int position) const |
virtual float | getValueForPositionUnclamped (int position) const |
int | getPositionForFactor (float factor) const |
float | getValueForFactor (float factor) const |
float | getFactorForPosition (int position) const |
float | getFactorForValue (float value) const |
virtual QString | getUnit () const |
Protected Attributes | |
int | m_minpos |
int | m_maxpos |
Definition at line 21 of file PlaySpeedRangeMapper.h.
PlaySpeedRangeMapper::PlaySpeedRangeMapper | ( | int | minpos, |
int | maxpos | ||
) |
Definition at line 21 of file PlaySpeedRangeMapper.cpp.
int PlaySpeedRangeMapper::getPositionForValue | ( | float | value | ) | const [virtual] |
Definition at line 28 of file PlaySpeedRangeMapper.cpp.
References getFactorForValue(), and getPositionForFactor().
Referenced by getPositionForValueUnclamped().
int PlaySpeedRangeMapper::getPositionForValueUnclamped | ( | float | value | ) | const [virtual] |
Definition at line 37 of file PlaySpeedRangeMapper.cpp.
References getPositionForValue().
float PlaySpeedRangeMapper::getValueForPosition | ( | int | position | ) | const [virtual] |
Definition at line 67 of file PlaySpeedRangeMapper.cpp.
References getFactorForPosition(), and getValueForFactor().
Referenced by getValueForPositionUnclamped().
float PlaySpeedRangeMapper::getValueForPositionUnclamped | ( | int | position | ) | const [virtual] |
Definition at line 75 of file PlaySpeedRangeMapper.cpp.
References getValueForPosition().
int PlaySpeedRangeMapper::getPositionForFactor | ( | float | factor | ) | const |
Definition at line 44 of file PlaySpeedRangeMapper.cpp.
References m_maxpos, and m_minpos.
Referenced by getPositionForValue().
float PlaySpeedRangeMapper::getValueForFactor | ( | float | factor | ) | const |
Definition at line 82 of file PlaySpeedRangeMapper.cpp.
Referenced by getValueForPosition().
float PlaySpeedRangeMapper::getFactorForPosition | ( | int | position | ) | const |
Definition at line 109 of file PlaySpeedRangeMapper.cpp.
References m_maxpos, and m_minpos.
Referenced by getValueForPosition().
float PlaySpeedRangeMapper::getFactorForValue | ( | float | value | ) | const |
Definition at line 92 of file PlaySpeedRangeMapper.cpp.
Referenced by getPositionForValue().
QString PlaySpeedRangeMapper::getUnit | ( | ) | const [virtual] |
Definition at line 144 of file PlaySpeedRangeMapper.cpp.
int PlaySpeedRangeMapper::m_minpos [protected] |
Definition at line 41 of file PlaySpeedRangeMapper.h.
Referenced by getFactorForPosition(), and getPositionForFactor().
int PlaySpeedRangeMapper::m_maxpos [protected] |
Definition at line 42 of file PlaySpeedRangeMapper.h.
Referenced by getFactorForPosition(), and getPositionForFactor().