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 *);
23 Vector endpoint; // Starting point is Object::position
24 Vector oldPoint; // Used for dragging
30 bool objectWasDragged;
33 Vector * point1; // These couple to external points; if there
34 Vector * point2; // are none then fall back to endpoint/position
37 #endif // __DIMENSION_H__