10 enum ObjectType { OTNone, OTObject, OTLine, OTCircle, OTArc, OTDimension, OTEllipse, OTContainer, OTSpline };
12 #define OBJECT_COMMON \
26 Line(): type(OTLine), id(Global::objectID++) {}
27 Line(Vector pt1, Vector pt2, float th = 1.0, uint32_t c = 0, int l = 0):
28 type(OTLine), id(Global::objectID++), layer(l), color(c), thickness(th),
29 style(0), selected(false), p1(pt1), p2(pt2) {}
37 Circle(Vector pt1, double r, float th = 1.0, uint32_t c = 0, int l = 0):
38 type(OTCircle), id(Global::objectID++), layer(l), color(c), thickness(th),
39 style(0), selected(false), p1(pt1), radius(r) {}
49 Arc(Vector pt1, double r, double a1, double a2, float th = 1.0, uint32_t c = 0, int l = 0):
50 type(OTArc), id(Global::objectID++), layer(l), color(c), thickness(th),
51 style(0), selected(false), p1(pt1), radius(r), angle1(a1), angle2(a2) {}
63 std::vector<void *> objects;
81 #endif // __STRUCTS_H__