My Project
|
#include <drawingWindow.h>
Public Member Functions | |
DrawingWindow (QWidget *parent=0) | |
Constructor. | |
~DrawingWindow () | |
Destructor. | |
void | addTessellation (Tessellation &t) |
Add a tessalation to the window. More... | |
void | addLine (int x0, int y0, int x1, int y1, int width, QColor color) |
Add a line to the window, specifying coordinates of the starting and end points. More... | |
void | addLinePolar (int x0, int y0, int length, double angle, int width, QColor color) |
Add a line to the window, specifying coordinates of the starting point, the length and angle. More... | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) |
Paints event. | |
Private Attributes | |
Ui::DrawingWindow * | ui |
vector< Tessellation * > * | vT |
vector< Tessellation * > * | myTessellation |
vector< Line * > * | vL |
A class to create a drawing window to draw tessellations.
void DrawingWindow::addLine | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | width, | ||
QColor | color | ||
) |
Add a line to the window, specifying coordinates of the starting and end points.
x0 | starting coordinate x |
y0 | starting coordinate y |
x1 | end coordinate x |
y1 | end coordinate y |
width | line width |
color | line color |
void DrawingWindow::addLinePolar | ( | int | x0, |
int | y0, | ||
int | length, | ||
double | angle, | ||
int | width, | ||
QColor | color | ||
) |
Add a line to the window, specifying coordinates of the starting point, the length and angle.
x0 | starting coordinate x |
y0 | starting coordinate y |
length | - length of the line |
angle | - angle of the line |
width | - line width |
color | - line color |
void DrawingWindow::addTessellation | ( | Tessellation & | t | ) |
Add a tessalation to the window.
t | a tessellation object |
|
private |
vector of tesselation / vector de mosaicos
|
private |
vector of line / vector de lineas
|
private |
vector of tesselation / vector de mosaicos