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)
Setter for the tesselation width.
Definition: tessellation.cpp:66
void setRotation(int r)
Setter for the tesselation rotation.
Definition: tessellation.cpp:57
int height
Definition: tessellation.h:96
void paintEvent(QPaintEvent *)
Paints a tessellation in the window every time that a paint event occurs.
Definition: tessellation.cpp:86
Definition: tessellation.h:11
int rotation
Definition: tessellation.h:95
void setHeight(int h)
Setter for the tesselation height.
Definition: tessellation.cpp:76
int width
Definition: tessellation.h:96
int getHeight()
Getter for the tesseltation height.
Definition: tessellation.cpp:47
Tessellation(QWidget *parent=0)
Constructor. Creates a tesselation like this:
Definition: tessellation.cpp:12
int getWidth()
Getter for the tesseltation width.
Definition: tessellation.cpp:38
int getRotation()
Getter for the rotation.
Definition: tessellation.cpp:29