1 #ifndef __DIMENSION_H__
2 #define __DIMENSION_H__
6 class Dimension: public Object
9 Dimension(Vector, Vector, Object * p = 0);
10 Dimension(Vector *, Vector *, Object * p = 0);
13 virtual void Draw(Painter *);
14 virtual Vector Center(void);
15 virtual bool Collided(Vector);
16 virtual void PointerMoved(Vector);
17 virtual void PointerReleased(void);
18 void SetPoint1(Vector *);
19 void SetPoint2(Vector *);
20 Vector GetPoint1(void);
21 Vector GetPoint2(void);
25 Vector endpoint; // Starting point is Object::position
26 Vector oldPoint; // Used for dragging
32 bool objectWasDragged;
35 Vector * point1; // These couple to external points; if there
36 Vector * point2; // are none then fall back to endpoint/position
39 #endif // __DIMENSION_H__