svgui  1.9
PaintAssistant Class Reference

#include <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)
 

Detailed Description

Definition at line 24 of file PaintAssistant.h.

Member Enumeration Documentation

◆ Scale

Enumerator
LinearScale 
MeterScale 
dBScale 

Definition at line 27 of file PaintAssistant.h.

Member Function Documentation

◆ paintVerticalLevelScale()

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 dBScale, getYForValue(), LinearScale, meterdbs, and MeterScale.

Referenced by SliceLayer::paintVerticalScale().

◆ getYForValue()

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, and MeterScale.

Referenced by paintVerticalLevelScale().


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