#include <PaintAssistant.h>
Definition at line 24 of file PaintAssistant.h.
Public Types | |
| enum | Scale { LinearScale, MeterScale, dBScale } |
Static Public Member Functions | |
| static void | paintVerticalLevelScale (QPainter &p, QRect rect, float minVal, float maxVal, Scale scale, int &multRtn, std::vector< int > *markCoordRtns=0) |
| static int | getYForValue (Scale scale, float value, float minVal, float maxVal, int minY, int height) |
| void PaintAssistant::paintVerticalLevelScale | ( | QPainter & | p, | |
| QRect | rect, | |||
| float | minVal, | |||
| float | maxVal, | |||
| Scale | scale, | |||
| int & | multRtn, | |||
| std::vector< int > * | markCoordRtns = 0 | |||
| ) | [static] |
Definition at line 27 of file PaintAssistant.cpp.
References AudioLevel::dB_to_multiplier(), dBScale, getYForValue(), LinearScale, meterdbs, and MeterScale.
Referenced by SliceLayer::paintVerticalScale().
| int PaintAssistant::getYForValue | ( | Scale | scale, | |
| float | value, | |||
| float | minVal, | |||
| float | maxVal, | |||
| int | minY, | |||
| int | height | |||
| ) | [static] |
Definition at line 181 of file PaintAssistant.cpp.
References dBscale(), dBScale, LinearScale, MeterScale, and AudioLevel::multiplier_to_preview().
Referenced by paintVerticalLevelScale().
1.5.1