forked from kektobiologist/motion-simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrawable.h
More file actions
38 lines (34 loc) · 717 Bytes
/
Copy pathdrawable.h
File metadata and controls
38 lines (34 loc) · 717 Bytes
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
#ifndef DRAWABLE_H
#define DRAWABLE_H
// a class for drawing objects on render area.
// currently implemented: point.
#include <QObject>
#include <QPainter>
#include "pose.h"
#include "beliefstate.h"
class RenderArea;
class Drawable : public QObject
{
Q_OBJECT
protected:
RenderArea *renderArea;
public:
explicit Drawable(RenderArea *renderArea);
virtual ~Drawable();
signals:
public slots:
virtual void draw() = 0;
};
class PointDrawable : public Drawable {
Q_OBJECT
private:
QPointF pt;
public:
virtual ~PointDrawable();
PointDrawable(QPointF p, RenderArea *renderArea);
public slots:
virtual void draw();
signals:
void drawPoint(QPointF pt);
};
#endif // DRAWABLE_H