forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Square.hpp
42 lines (32 loc) · 851 Bytes
/
Square.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef _SQUARE_HPP
#define _SQUARE_HPP
// Tell GCC to ignore implicitly declared copy methods as long as
// Qt is not compliant.
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#include <QtGui/QtGui>
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
#include <Shape.hpp>
#include <ShapeDynamics.hpp>
class Square : public Shape {
public:
Square(const QRect& bounds,
std::shared_ptr<ShapeDynamics> dynamics,
const QPen& pen,
const QBrush& brush,
bool targeted = false);
virtual ~Square();
public:
virtual void update();
virtual void paint(QPainter& painter);
private:
Square(const Square& orig);
Square& operator=(const Square&);
private:
std::shared_ptr<ShapeDynamics> dynamics_;
};
#endif /* _SQUARE_HPP */