8 class Line: public Object
11 Line(Vector, Vector, Object * p = 0);
14 virtual void Draw(Painter *);
15 virtual Vector Center(void);
16 virtual bool Collided(Vector);
17 virtual void PointerMoved(Vector);
18 virtual void PointerReleased(void);
19 virtual Vector * GetPointAt(Vector);
20 // void SetDimensionOnPoint1(Dimension *);
21 // void SetDimensionOnPoint2(Dimension *);
22 void SetDimensionOnLine(Dimension * d = 0);
27 bool StateChanged(void);
30 Vector endpoint; // Starting point is Object::position
31 Vector oldPoint; // Used for dragging
37 bool objectWasDragged;
40 bool hitPoint1, hitPoint2, hitLine;
41 bool oldHitPoint1, oldHitPoint2, oldHitLine;