My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
ViewPainter Class Reference

#include <viewpainter.h>

Public Member Functions

 ViewPainter (QPainter *p=0)
 
 ~ViewPainter ()
 
void init (QPainter *, float, int, int, int, int, float FontScale_=0.0, float PrintScale_=1.0)
 
void map (int, int, int &, int &)
 
void drawPoint (int, int)
 
void drawLine (int, int, int, int)
 
void drawLines (int, int, float *)
 
void drawRect (int, int, int, int)
 
void drawRectD (int, int, int, int)
 
void drawRoundRect (int, int, int, int)
 
void drawEllipse (int, int, int, int)
 
void drawArc (int, int, int, int, int, int)
 
int drawText (const QString &, int, int, int *Height=0)
 
int drawTextMapped (const QString &, int, int, int *Height=0)
 
void fillRect (int, int, int, int, const QColor &)
 
void eraseRect (int, int, int, int)
 
void drawResizeRect (int, int)
 
void drawStarSymbols (int, int, float *)
 
void drawCircleSymbols (int, int, float *)
 
void drawArrowSymbols (int, int, float *)
 

Public Attributes

QPainter * Painter
 
float Scale
 
float FontScale
 
float PrintScale
 
float DX
 
float DY
 
int LineSpacing
 

Detailed Description

Definition at line 33 of file viewpainter.h.

Constructor & Destructor Documentation

ViewPainter::ViewPainter ( QPainter *  p = 0)

Definition at line 24 of file viewpainter.cpp.

ViewPainter::~ViewPainter ( )

Definition at line 31 of file viewpainter.cpp.

Member Function Documentation

void ViewPainter::drawArc ( int  x1,
int  y1,
int  w,
int  h,
int  Angle,
int  ArcLen 
)

Definition at line 374 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawArrowSymbols ( int  x0,
int  y0,
float *  pp 
)

Definition at line 199 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawCircleSymbols ( int  x0,
int  y0,
float *  pp 
)

Definition at line 174 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawEllipse ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 272 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawLine ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 80 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawLines ( int  x0,
int  y0,
float *  pp 
)

Definition at line 96 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawPoint ( int  x1,
int  y1 
)

Definition at line 68 of file viewpainter.cpp.

void ViewPainter::drawRect ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 228 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawRectD ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 244 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawResizeRect ( int  x1,
int  y1 
)

Definition at line 421 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawRoundRect ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 256 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawStarSymbols ( int  x0,
int  y0,
float *  pp 
)

Definition at line 144 of file viewpainter.cpp.

Here is the caller graph for this function:

int ViewPainter::drawText ( const QString &  Text,
int  x1,
int  y1,
int *  Height = 0 
)

Definition at line 289 of file viewpainter.cpp.

Here is the caller graph for this function:

int ViewPainter::drawTextMapped ( const QString &  Text,
int  x1,
int  y1,
int *  Height = 0 
)

Definition at line 306 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::eraseRect ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 407 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::fillRect ( int  x1,
int  y1,
int  dx,
int  dy,
const QColor &  Color 
)

Definition at line 390 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::init ( QPainter *  p,
float  Scale_,
int  DX_,
int  DY_,
int  dx_,
int  dy_,
float  FontScale_ = 0.0,
float  PrintScale_ = 1.0 
)

Definition at line 36 of file viewpainter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ViewPainter::map ( int  x1,
int  y1,
int &  x,
int &  y 
)

Definition at line 58 of file viewpainter.cpp.

Here is the caller graph for this function:

Member Data Documentation

float ViewPainter::DX

Definition at line 59 of file viewpainter.h.

float ViewPainter::DY

Definition at line 59 of file viewpainter.h.

float ViewPainter::FontScale

Definition at line 59 of file viewpainter.h.

int ViewPainter::LineSpacing

Definition at line 60 of file viewpainter.h.

QPainter* ViewPainter::Painter

Definition at line 58 of file viewpainter.h.

float ViewPainter::PrintScale

Definition at line 59 of file viewpainter.h.

float ViewPainter::Scale

Definition at line 59 of file viewpainter.h.


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