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 virtual void Enumerate(FILE *);
21 virtual Object * Copy(void);
22 virtual Vector GetPointAtParameter(double parameter);
23 void SetDimensionOnLine(Dimension * d = 0);
24 Object * FindAttachedDimension(void);
29 bool StateChanged(void);
32 Vector endpoint; // Starting point is Object::position
33 Vector oldPoint; // Used for dragging
39 bool objectWasDragged;
42 bool hitPoint1, hitPoint2, hitLine;
43 bool oldHitPoint1, oldHitPoint2, oldHitLine;