]> Shamusworld >> Repos - architektonas/blobdiff - src/circle.h
Mirror tool now works successfully for all object types. :-D
[architektonas] / src / circle.h
index cc5159fd581a2da6bd8f32052d550d46a5a387d3..6fd22cd615dcbeb89fc3f61381206babe0631bee 100644 (file)
@@ -14,18 +14,30 @@ class Circle: public Object
                virtual bool Collided(Vector);
                virtual void PointerMoved(Vector);
                virtual void PointerReleased(void);
-//             virtual bool NeedsUpdate(void);
+               virtual bool HitTest(Point);
+               virtual void Enumerate(FILE *);
+               virtual Object * Copy(void);
+               virtual QRectF Extents(void);
+               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 oldPoint;                                        // Used for dragging
+               Vector dragPoint;                                       // Used for rendering edge dragging
+               double oldRadius2;
 
        private:
-               bool dragging;
-               bool draggingHandle1;
-               bool draggingHandle2;
-//             bool needUpdate;
+               bool draggingEdge;
+               bool draggingCenter;
                bool objectWasDragged;
+               bool hitCenter, hitCircle;
+               bool oldHitCenter, oldHitCircle;
+               double oldRadius;
 };
 
 #endif // __CIRCLE_H__