4 #include <vector> // This is a container
5 #include "vector.h" // This is the mathematical construct
11 enum ObjectState { OSInactive, OSSelected };
17 Object(Vector, Object * passedInParent = 0);
20 virtual void Draw(Painter *);
21 virtual Vector Center(void);
22 virtual bool Collided(Vector);
23 virtual void PointerMoved(Vector);
24 virtual void PointerReleased(void);
25 virtual bool NeedsUpdate(void);
26 virtual void Transmute(Object *, Object *);
27 virtual Object * GetParent(void);
28 virtual void Add(Object *);
29 ObjectState GetState(void);
30 //Hm. Object * Connect(Object *);
33 static void SetFixedAngle(bool state = true);
34 static void SetFixedLength(bool state = true);
35 static void SetFont(QFont *);
36 static void SetViewportHeight(int);
37 static void SetDeleteActive(bool state = true);
38 static void SetDimensionActive(bool state = true);
41 Vector position; // All objects have a position (doubles as reference point)
48 Dimension * attachedDimension;
49 std::vector<Object *> connected;
53 static bool fixedAngle;
54 static bool fixedLength;
55 static int viewportHeight;
56 static bool deleteActive;
57 static bool dimensionActive;
60 #endif // __OBJECT_H__