]> Shamusworld >> Repos - architektonas/blobdiff - src/line.h
Initial stab at text object. Nonfunctional ATM.
[architektonas] / src / line.h
index 87c3c7f5d143d7d9af60a783b0dafbeae9b8181b..b7d32f20a98ba5ea319ceb676f50244cfcdc1eb1 100644 (file)
@@ -11,13 +11,17 @@ class Line: public Object
                Line(Vector, Vector, Object * p = 0);
                ~Line();
 
-               virtual void Draw(QPainter *);
+               virtual void Draw(Painter *);
                virtual Vector Center(void);
                virtual bool Collided(Vector);
                virtual void PointerMoved(Vector);
                virtual void PointerReleased(void);
-               void SetDimensionOnPoint1(Dimension *);
-               void SetDimensionOnPoint2(Dimension *);
+               virtual Vector * GetPointAt(Vector);
+               virtual void Enumerate(FILE *);
+               virtual Object * Copy(void);
+               virtual Vector GetPointAtParameter(double parameter);
+               void SetDimensionOnLine(Dimension * d = 0);
+               Object * FindAttachedDimension(void);
 
        protected:
                bool HitTest(Point);
@@ -29,11 +33,12 @@ class Line: public Object
                Vector oldPoint;                                        // Used for dragging
 
        private:
-               bool dragging;
+               bool draggingLine;
                bool draggingHandle1;
                bool draggingHandle2;
                bool objectWasDragged;
                double length;
+               Vector angle;
                bool hitPoint1, hitPoint2, hitLine;
                bool oldHitPoint1, oldHitPoint2, oldHitLine;
 };