PlaySpeedRangeMapper Class Reference

#include <PlaySpeedRangeMapper.h>

Inherits RangeMapper.

Inheritance diagram for PlaySpeedRangeMapper:

Inheritance graph
[legend]
Collaboration diagram for PlaySpeedRangeMapper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 21 of file PlaySpeedRangeMapper.h.

Public Member Functions

 PlaySpeedRangeMapper (int minpos, int maxpos)
virtual int getPositionForValue (float value) const
virtual float getValueForPosition (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


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]

Implements RangeMapper.

Definition at line 28 of file PlaySpeedRangeMapper.cpp.

References getFactorForValue(), and getPositionForFactor().

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

Implements RangeMapper.

Definition at line 60 of file PlaySpeedRangeMapper.cpp.

References getFactorForPosition(), and getValueForFactor().

int PlaySpeedRangeMapper::getPositionForFactor ( float  factor  )  const

Definition at line 37 of file PlaySpeedRangeMapper.cpp.

References m_maxpos, and m_minpos.

Referenced by getPositionForValue().

float PlaySpeedRangeMapper::getValueForFactor ( float  factor  )  const

Definition at line 68 of file PlaySpeedRangeMapper.cpp.

Referenced by getValueForPosition().

float PlaySpeedRangeMapper::getFactorForPosition ( int  position  )  const

Definition at line 95 of file PlaySpeedRangeMapper.cpp.

References m_maxpos, and m_minpos.

Referenced by getValueForPosition().

float PlaySpeedRangeMapper::getFactorForValue ( float  value  )  const

Definition at line 78 of file PlaySpeedRangeMapper.cpp.

Referenced by getPositionForValue(), and MainWindow::playSpeedChanged().

QString PlaySpeedRangeMapper::getUnit (  )  const [virtual]

Reimplemented from RangeMapper.

Definition at line 130 of file PlaySpeedRangeMapper.cpp.


Member Data Documentation

int PlaySpeedRangeMapper::m_minpos [protected]

Definition at line 38 of file PlaySpeedRangeMapper.h.

Referenced by getFactorForPosition(), and getPositionForFactor().

int PlaySpeedRangeMapper::m_maxpos [protected]

Definition at line 39 of file PlaySpeedRangeMapper.h.

Referenced by getFactorForPosition(), and getPositionForFactor().


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