]> Shamusworld >> Repos - architektonas/blobdiff - src/arc.cpp
Added 1st stab at grouping capability.
[architektonas] / src / arc.cpp
index a4efa39de9c03b2f4922907d6737188dda986f04..c29e38db2a54c79a2fc47dfec6eef2be737f4f03 100644 (file)
 #include "painter.h"
 
 
-Arc::Arc(Vector p1, double r, double a1, double a2, Object * p/*= NULL*/): Object(p1, p),
-       radius(r), startAngle(a1), angleSpan(a2)
+Arc::Arc(Vector p1, double r, double a1, double a2, Object * p/*= NULL*/):
+       Object(p1, p), /*type(OTArc),*/ radius(r), startAngle(a1), angleSpan(a2)
 {
+       // This is in the base class, why can't we use the contructor to fill it???
+       type = OTArc;
 }
 
 
@@ -292,6 +294,14 @@ but this is actually more compact and cleaner.
                state = oldState;
 }
 
+
+/*virtual*/ QRectF Arc::Extents(void)
+{
+#warning "!!! Arc extents not calculated !!!"
+       return QRectF();
+}
+
+
 #if 0
 /*virtual*/ bool Arc::NeedsUpdate(void)
 {
@@ -300,6 +310,14 @@ but this is actually more compact and cleaner.
 #endif
 
 
+#if 0
+/*virtual*/ ObjectType Arc::Type(void)
+{
+       return OTArc;
+}
+#endif
+
+
 /*
 start = 350, span = 20, end = 10, angle = 5
 angle < start, so angle = 365