X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcircle.h;fp=src%2Fcircle.h;h=0000000000000000000000000000000000000000;hb=ea7712f342020baf61cf33ba98b12140da6aecf7;hp=43b297cfe74701eb1bb8c3c3812286db247a20e2;hpb=4a979ddae8aa6b3556f24e8b961f7787c4b40cbe;p=architektonas diff --git a/src/circle.h b/src/circle.h deleted file mode 100644 index 43b297c..0000000 --- a/src/circle.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef __CIRCLE_H__ -#define __CIRCLE_H__ - -#include "object.h" - -class Circle: public Object -{ - friend class Geometry; - - public: - Circle(Vector, double, Object * p = 0); - ~Circle(); - - virtual void Draw(Painter *); - virtual Vector Center(void); - virtual bool Collided(Vector); - virtual bool PointerMoved(Vector); - virtual void PointerReleased(void); - virtual bool HitTest(Point); - virtual void Enumerate(FILE *); - virtual Object * Copy(void); - virtual QRectF Extents(void); - virtual void Rotate(Point, double); - virtual void Mirror(Point, Point); - virtual void Save(void); - virtual void Restore(void); - - protected: - void SaveHitState(void); - bool HitStateChanged(void); - - protected: - double radius; // Center is Object::position - Vector dragPoint; // Used for rendering edge dragging - double oldRadius2; - - private: - bool draggingEdge; - bool draggingCenter; - bool objectWasDragged; - bool hitCenter, hitCircle; - bool oldHitCenter, oldHitCircle; - double oldRadius; -}; - -#endif // __CIRCLE_H__