My Project
tessellation.h
1 #ifndef TESSELATION_H
2 #define TESSELATION_H
3 
4 #include <QWidget>
5 #include <QPainter>
6 
11 class Tessellation : public QWidget
12 {
13  Q_OBJECT
14 public:
15 
25  explicit Tessellation(QWidget *parent = 0);
26 
34  int getRotation();
35 
43  int getWidth();
44 
52  int getHeight();
53 
61  void setRotation(int r);
62 
70  void setWidth(int w);
71 
79  void setHeight(int h);
80 
81 signals:
82 
83 public slots:
84 
85 protected:
93  void paintEvent(QPaintEvent *);
94 private:
95  int rotation;
96  int width,
97  height;
98 };
99 
100 #endif // TESSELATION_H
void setWidth(int w)
Ajusta el ancho del mosaico.
Definition: tessellation.cpp:66
void setRotation(int r)
Ajusta la rotacion del mosaico.
Definition: tessellation.cpp:57
int height
Definition: tessellation.h:96
void paintEvent(QPaintEvent *)
Pinta un mosaico en la pantalla cada ves que ocurre un evento de pintar.
Definition: tessellation.cpp:86
Definition: tessellation.h:11
int rotation
Definition: tessellation.h:95
void setHeight(int h)
Ajusta la altura del mosaico.
Definition: tessellation.cpp:76
int width
Definition: tessellation.h:96
int getHeight()
Devuelve la altura del mosaico.
Definition: tessellation.cpp:47
Tessellation(QWidget *parent=0)
Constructor. Crea un mosaico como este:
Definition: tessellation.cpp:12
int getWidth()
Devuelve el ancho del mosaico.
Definition: tessellation.cpp:38
int getRotation()
Devuelve la rotacion.
Definition: tessellation.cpp:29