blob: ffdb5d7ce5b53958165e19a2887b2018bcc06a25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef LINE_H
#define LINE_H
#include <QLine>
#include <QPainter>
#include <QVector3D>
class Line : public QLine
{
public:
Line();
virtual bool isHit(const QPoint & clickPoint);
void setSelected(bool selected);
virtual void draw(QPainter * painter);
virtual void move(const QPoint & oldPoint, const QPoint & newPoint);
protected:
bool m_selected;
};
#endif // LINE_H
|