summaryrefslogtreecommitdiffstats
path: root/line.h
diff options
context:
space:
mode:
Diffstat (limited to 'line.h')
-rw-r--r--line.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/line.h b/line.h
new file mode 100644
index 0000000..745f653
--- /dev/null
+++ b/line.h
@@ -0,0 +1,22 @@
+#ifndef LINE_H
+#define LINE_H
+
+#include <QLine>
+#include <QPainter>
+#include <QVector3D>
+
+class Line : public QLine
+{
+public:
+ Line();
+ Line(const Line &other);
+
+ bool isHit(const QPoint & clickPoint);
+ void setSelected(bool selected);
+ void draw(QPainter * painter);
+
+private:
+ bool m_selected;
+};
+
+#endif // LINE_H