]> Shamusworld >> Repos - architektonas/blobdiff - src/dimension.h
Added gratuitous About screen (this time, for real).
[architektonas] / src / dimension.h
index 34084c26af291a8d31e4bf70aacf58acc1e9f25a..301bcffdb782df3205e00921acd1d5cdba0fe849 100644 (file)
@@ -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,8 +15,9 @@ class Dimension: public Object
                virtual bool Collided(Vector);
                virtual void PointerMoved(Vector);
                virtual void PointerReleased(void);
-               void SetPoint1(Vector);
-               void SetPoint2(Vector);
+               void SetPoint1(Vector *);
+               void SetPoint2(Vector *);
+               void FlipSides(void);
 
        protected:
                Vector endpoint;                                        // Starting point is Object::position
@@ -27,6 +29,9 @@ class Dimension: public Object
                bool draggingHandle2;
                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__