]> Shamusworld >> Repos - architektonas/blobdiff - src/circle.h
Fixed Arc to give continuous feedback like Line and Circle do.
[architektonas] / src / circle.h
index cc5159fd581a2da6bd8f32052d550d46a5a387d3..b12ae99d44b1346f36c9ed16d76ec627de537f4a 100644 (file)
@@ -14,18 +14,26 @@ 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);
+
+       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
 
        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__