8 class Line: public Object
11 Line(Vector, Vector, Object * p = 0);
14 virtual void Draw(QPainter *);
15 virtual Vector Center(void);
16 virtual bool Collided(Vector);
17 virtual void PointerMoved(Vector);
18 virtual void PointerReleased(void);
19 void SetDimensionOnPoint1(Dimension *);
20 void SetDimensionOnPoint2(Dimension *);
25 bool StateChanged(void);
28 Vector endpoint; // Starting point is Object::position
29 Vector oldPoint; // Used for dragging
35 bool objectWasDragged;
37 bool hitPoint1, hitPoint2, hitLine;
38 bool oldHitPoint1, oldHitPoint2, oldHitLine;