//class FILE;
enum ObjectState { OSInactive, OSSelected };
-enum ObjectType { OTNone, OTObject, OTLine, OTCircle, OTArc, OTDimension, OTEllipse, OTContainer };
+enum ObjectType { OTNone, OTObject, OTLine, OTCircle, OTArc, OTDimension, OTEllipse, OTContainer, OTSpline };
class Object
{
virtual void Draw(Painter *);
virtual Vector Center(void);
virtual bool Collided(Vector);
- virtual void PointerMoved(Vector);
+ virtual bool PointerMoved(Vector);
virtual void PointerReleased(void);
virtual bool NeedsUpdate(void);
virtual bool HitTest(Point);
static void SetSnapMode(bool state = true);
static Vector SnapPointToGrid(Vector);
- protected:
+ public:
Vector position; // All objects have a position (doubles as reference point)
+ protected:
Object * parent;
//this needs to be added eventually
// Pen pen;
static QRectF selection;
static double gridSpacing; // Grid spacing in base units
static int currentLayer;
+ static Point snapPoint;
+ static bool snapPointIsValid;
};
#endif // __OBJECT_H__