measured(false), s(str) { p[0] = pt1; angle[0] = 0; }
};
+//prolly don't need this, as this just a special case of a polyline...
struct Polygon {
OBJECT_COMMON;
int sides;
struct Polyline {
OBJECT_COMMON;
- VPVector objects;
- bool closed;
+ VPVector points;
+//need this? could just repeat the endpoint as well...
+// bool closed;
Object * clicked;
Polyline(): type(OTPolyline), id(Global::objectID++), selected(false), hovered(false), hitObject(false), clicked(NULL) {}
- void Add(void * obj) { objects.push_back(obj); }
- void Add(VPVector objs) { objects.insert(objects.end(), objs.begin(), objs.end()); }
+ void Add(void * obj) { points.push_back(obj); }
+ void Add(VPVector objs) { points.insert(points.end(), objs.begin(), objs.end()); }
};
struct Spline {