NCL Composer  0.1.5
 All Classes Functions Variables Pages
qnstviewlink.h
1 #ifndef QNSTVIEWLINK_H
2 #define QNSTVIEWLINK_H
3 
4 #define PI 3.14159265
5 
6 #include <cmath>
7 
8 #include "qnstgraphicsentity.h"
9 
11 {
12 public:
13  QnstViewLink(QnstGraphicsEntity* parent = 0);
14 
15  ~QnstViewLink();
16 
17  QLineF getLine() const;
18 
19  void setLine(QLineF line);
20 
21  virtual void adjust(bool avoidCollision = false);
22 
23 protected:
24  virtual void draw(QPainter* painter);
25 
26  virtual void delineate(QPainterPath* painter) const;
27 
28  virtual void move(QGraphicsSceneMouseEvent* event);
29 
30  virtual void resize(QGraphicsSceneMouseEvent* event);
31 
32 private:
33  QLineF line;
34 };
35 
36 #endif // QNSTVIEWLINK_H