svapp  1.9
PlaySpeedRangeMapper Class Reference

#include <PlaySpeedRangeMapper.h>

List of all members.

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

Detailed Description

Definition at line 21 of file PlaySpeedRangeMapper.h.


Constructor & Destructor Documentation

PlaySpeedRangeMapper::PlaySpeedRangeMapper ( int  minpos,
int  maxpos 
)

Definition at line 21 of file PlaySpeedRangeMapper.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 41 of file PlaySpeedRangeMapper.h.

Referenced by getFactorForPosition(), and getPositionForFactor().

Definition at line 42 of file PlaySpeedRangeMapper.h.

Referenced by getFactorForPosition(), and getPositionForFactor().


The documentation for this class was generated from the following files: