1 #ifndef __DIMENSION_H__
2 #define __DIMENSION_H__
6 enum DimensionType { DTLinear, DTRadial, DTDiametric, DTCircumferential, DTLeader };
8 class Dimension: public Object
11 Dimension(Vector, Vector, DimensionType dt = DTLinear, Object * p = 0);
12 Dimension(Vector *, Vector *, DimensionType dt = DTLinear, Object * p = 0);
15 virtual void Draw(Painter *);
16 virtual Vector Center(void);
17 virtual bool Collided(Vector);
18 virtual void PointerMoved(Vector);
19 virtual void PointerReleased(void);
20 virtual void Enumerate(FILE *);
21 virtual Object * Copy(void);
22 void SetPoint1(Vector *);
23 void SetPoint2(Vector *);
24 Vector GetPoint1(void);
25 Vector GetPoint2(void);
29 Vector endpoint; // Starting point is Object::position
30 Vector oldPoint; // Used for dragging
36 bool objectWasDragged;
40 Vector * point1; // These couple to external points; if there
41 Vector * point2; // are none then fall back to endpoint/position
44 #endif // __DIMENSION_H__