My Project
0.0.16
QUCS Mapping
|
#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 |
Definition at line 33 of file viewpainter.h.
ViewPainter::ViewPainter | ( | QPainter * | p = 0 | ) |
Definition at line 24 of file viewpainter.cpp.
ViewPainter::~ViewPainter | ( | ) |
Definition at line 31 of file viewpainter.cpp.
void ViewPainter::drawArc | ( | int | x1, |
int | y1, | ||
int | w, | ||
int | h, | ||
int | Angle, | ||
int | ArcLen | ||
) |
void ViewPainter::drawArrowSymbols | ( | int | x0, |
int | y0, | ||
float * | pp | ||
) |
void ViewPainter::drawCircleSymbols | ( | int | x0, |
int | y0, | ||
float * | pp | ||
) |
void ViewPainter::drawEllipse | ( | int | x1, |
int | y1, | ||
int | dx, | ||
int | dy | ||
) |
void ViewPainter::drawLine | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
void ViewPainter::drawLines | ( | int | x0, |
int | y0, | ||
float * | pp | ||
) |
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 | ||
) |
void ViewPainter::drawRectD | ( | int | x1, |
int | y1, | ||
int | dx, | ||
int | dy | ||
) |
void ViewPainter::drawResizeRect | ( | int | x1, |
int | y1 | ||
) |
void ViewPainter::drawRoundRect | ( | int | x1, |
int | y1, | ||
int | dx, | ||
int | dy | ||
) |
void ViewPainter::drawStarSymbols | ( | int | x0, |
int | y0, | ||
float * | pp | ||
) |
int ViewPainter::drawText | ( | const QString & | Text, |
int | x1, | ||
int | y1, | ||
int * | Height = 0 |
||
) |
int ViewPainter::drawTextMapped | ( | const QString & | Text, |
int | x1, | ||
int | y1, | ||
int * | Height = 0 |
||
) |
void ViewPainter::eraseRect | ( | int | x1, |
int | y1, | ||
int | dx, | ||
int | dy | ||
) |
void ViewPainter::fillRect | ( | int | x1, |
int | y1, | ||
int | dx, | ||
int | dy, | ||
const QColor & | Color | ||
) |
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.
void ViewPainter::map | ( | int | x1, |
int | y1, | ||
int & | x, | ||
int & | y | ||
) |
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.