My Project
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DrawingWindow Class Reference

#include <drawingWindow.h>

Inheritance diagram for DrawingWindow:

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
 

Detailed Description

A class to create a drawing window to draw tessellations.

Member Function Documentation

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.

Parameters
x0starting coordinate x
y0starting coordinate y
x1end coordinate x
y1end coordinate y
widthline width
colorline 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.

Parameters
x0starting coordinate x
y0starting 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.

Parameters
ta tessellation object

Member Data Documentation

vector<Tessellation *>* DrawingWindow::myTessellation
private

vector of tesselation / vector de mosaicos

vector<Line *>* DrawingWindow::vL
private

vector of line / vector de lineas

vector<Tessellation* >* DrawingWindow::vT
private

vector of tesselation / vector de mosaicos


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