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

#include <tessellation.h>

Inheritance diagram for Tessellation:

Public Member Functions

 Tessellation (QWidget *parent=0)
 Constructor. Creates a tesselation like this:

http://i.imgur.com/WuMRMsi.png
More...
 
int getRotation ()
 Getter for the rotation. More...
 
int getWidth ()
 Getter for the tesseltation width. More...
 
int getHeight ()
 Getter for the tesseltation height. More...
 
void setRotation (int r)
 Setter for the tesselation rotation. More...
 
void setWidth (int w)
 Setter for the tesselation width. More...
 
void setHeight (int h)
 Setter for the tesselation height. More...
 

Protected Member Functions

void paintEvent (QPaintEvent *)
 Paints a tessellation in the window every time that a paint event occurs.
 

Private Attributes

int rotation
 
int width
 
int height
 

Detailed Description

A class to create tessellations.

Constructor & Destructor Documentation

Tessellation::Tessellation ( QWidget *  parent = 0)
explicit

Constructor. Creates a tesselation like this:

http://i.imgur.com/WuMRMsi.png

Parameters
parentparent of this tesselation, you should pass a reference to the window where this tesselation 'lives'.

Member Function Documentation

int Tessellation::getHeight ( )

Getter for the tesseltation height.

Returns
tesselation height
int Tessellation::getRotation ( )

Getter for the rotation.

Returns
The rotation
int Tessellation::getWidth ( )

Getter for the tesseltation width.

Returns
tesselation width
void Tessellation::setHeight ( int  h)

Setter for the tesselation height.

Parameters
htessellation height
void Tessellation::setRotation ( int  r)

Setter for the tesselation rotation.

Parameters
rtessellation rotation
void Tessellation::setWidth ( int  w)

Setter for the tesselation width.

Parameters
wtessellation width

Member Data Documentation

int Tessellation::height
private

tesselation height / altura del mosaico

int Tessellation::rotation
private

tesselation rotation / rotacion del mosaico

int Tessellation::width
private

tesselation width / ancho del mosaico


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