-
- Dimension(): type(OTDimension), id(Global::objectID++) {}
- Dimension(Vector pt1, Vector pt2, DimensionType dt = DTLinear, float th = 1.0, uint32_t c = 0x0000FF, int l = LSSolid):
- type(OTDimension), id(Global::objectID++), layer(0), color(c), thickness(th),
- style(l), selected(false), hovered(false), hitObject(false), subtype(dt) { p[0] = pt1; p[1] = pt2; }
+ Point lp[2]; // Line point, the actual dimension line
+ Object * obj[2]; // Pointer to attached objects (circle, lines for angle)
+
+ Dimension(): type(OTDimension), id(Global::objectID++), selected(false),
+ hovered(false), hitObject(false)
+ { hitPoint[0] = hitPoint[1] = hitPoint[2] = hitPoint[3] = hitPoint[4] = false; }
+ Dimension(Vector pt1, Vector pt2, DimensionType dt = DTLinear, double offs = 0, float th = 1.0, uint32_t c = 0x0000FF, int l = LSSolid):
+ type(OTDimension), id(Global::objectID++), layer(0), color(c),
+ thickness(th), style(l), selected(false), hovered(false),
+ hitObject(false), subtype(dt), offset(offs)
+ { p[0] = pt1; p[1] = pt2; hitPoint[0] = hitPoint[1] = hitPoint[2] = hitPoint[3] = hitPoint[4] = false; }