X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdimension.h;h=301bcffdb782df3205e00921acd1d5cdba0fe849;hb=a14390c31519388a3e4f01bc53c0e4572708940c;hp=26fc58800fa5423546ee5451869b8908e1303ac9;hpb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;p=architektonas diff --git a/src/dimension.h b/src/dimension.h index 26fc588..301bcff 100644 --- a/src/dimension.h +++ b/src/dimension.h @@ -7,6 +7,7 @@ class Dimension: public Object { public: Dimension(Vector, Vector, Object * p = 0); + Dimension(Vector *, Vector *, Object * p = 0); ~Dimension(); virtual void Draw(QPainter *); @@ -14,7 +15,9 @@ class Dimension: public Object virtual bool Collided(Vector); virtual void PointerMoved(Vector); virtual void PointerReleased(void); -// virtual bool NeedsUpdate(void); + void SetPoint1(Vector *); + void SetPoint2(Vector *); + void FlipSides(void); protected: Vector endpoint; // Starting point is Object::position @@ -24,9 +27,11 @@ class Dimension: public Object bool dragging; bool draggingHandle1; bool draggingHandle2; -// bool needUpdate; bool objectWasDragged; double length; + + Vector * point1; // These couple to external points; if there + Vector * point2; // are none then fall back to endpoint/position }; #endif // __DIMENSION_H__