X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdimension.h;h=0cda92924fa9cd75aabe1e0e64a4a3d7452d5e8e;hb=baf67656b97e3d61e9223e66ebe4f554e364cd4a;hp=44e2afe3e4b1101de32c176f4cf236359f110c48;hpb=5446001bd9adfd9f4787f5de5a2a7afd8d7cdb5a;p=architektonas diff --git a/src/dimension.h b/src/dimension.h index 44e2afe..0cda929 100644 --- a/src/dimension.h +++ b/src/dimension.h @@ -3,11 +3,13 @@ #include "object.h" +enum DimensionType { DTLinear, DTRadial, DTDiametric, DTCircumferential, DTLeader }; + class Dimension: public Object { public: - Dimension(Vector, Vector, Object * p = 0); - Dimension(Vector *, Vector *, Object * p = 0); + Dimension(Vector, Vector, DimensionType dt = DTLinear, Object * p = 0); + Dimension(Vector *, Vector *, DimensionType dt = DTLinear, Object * p = 0); ~Dimension(); virtual void Draw(Painter *); @@ -31,6 +33,7 @@ class Dimension: public Object bool draggingHandle2; bool objectWasDragged; double length; + DimensionType type; Vector * point1; // These couple to external points; if there Vector * point2; // are none then fall back to endpoint/position