#include <PaintAssistant.h>

Public Types

enum  Scale { LinearScale, MeterScale, dBScale }
 
enum  TextStyle { BoxedText, OutlinedText, OutlinedItalicText }
 

Static Public Member Functions

static void paintVerticalLevelScale (QPainter &p, QRect rect, double minVal, double maxVal, Scale scale, int &multRtn, std::vector< int > *markCoordRtns=0)
 
static int getYForValue (Scale scale, double value, double minVal, double maxVal, int minY, int height)
 
static void drawVisibleText (const LayerGeometryProvider *, QPainter &p, int x, int y, QString text, TextStyle style)
 

Detailed Description

Definition at line 27 of file PaintAssistant.h.

Member Enumeration Documentation

Enumerator
LinearScale 
MeterScale 
dBScale 

Definition at line 30 of file PaintAssistant.h.

Enumerator
BoxedText 
OutlinedText 
OutlinedItalicText 

Definition at line 41 of file PaintAssistant.h.

Member Function Documentation

void PaintAssistant::paintVerticalLevelScale ( QPainter &  p,
QRect  rect,
double  minVal,
double  maxVal,
Scale  scale,
int &  multRtn,
std::vector< int > *  markCoordRtns = 0 
)
static

Definition at line 31 of file PaintAssistant.cpp.

References dBScale, getYForValue(), LinearScale, meterdbs, and MeterScale.

Referenced by SliceLayer::paintVerticalScale().

int PaintAssistant::getYForValue ( Scale  scale,
double  value,
double  minVal,
double  maxVal,
int  minY,
int  height 
)
static

Definition at line 173 of file PaintAssistant.cpp.

References dBScale, dBscale(), LinearScale, and MeterScale.

Referenced by paintVerticalLevelScale().


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