6 class Arc: public Object
9 Arc(Vector, double, double, double, Object * p = 0);
12 virtual void Draw(Painter *);
13 virtual Vector Center(void);
14 virtual bool Collided(Vector);
15 virtual void PointerMoved(Vector);
16 virtual void PointerReleased(void);
17 virtual bool HitTest(Point);
18 virtual void Enumerate(FILE *);
19 virtual Object * Copy(void);
20 virtual QRectF Extents(void);
21 virtual void Mirror(Point, Point);
22 virtual void Save(void);
23 virtual void Restore(void);
26 bool AngleInArcSpan(double angle);
29 void SaveHitState(void);
30 bool HitStateChanged(void);
33 double radius; // Center is Object::position
34 double startAngle; // Starting angle in radians
35 double angleSpan; // # of degrees the arc spans in radians
41 // bool hitHandle1; // Moving
42 // bool hitHandle2; // Rotation
43 // bool hitHandle3; // Setting span of the arc
44 // bool hitHandle4; // Resizing
49 bool objectWasDragged;
50 Vector oldPoint; // Used for dragging
51 double oldAngle; // Used for user feedback
52 double oldRadius; // Used for user feedback
53 bool hitCenter, hitArc, hitRotate, hitSpan;
54 bool oldHitCenter, oldHitArc, oldHitRotate, oldHitSpan;