diff -r 133e2ed6b9c5 -r 7d67be709091 mapobj.h --- a/mapobj.h Thu Sep 03 08:52:00 2009 +0000 +++ b/mapobj.h Tue Sep 08 12:15:39 2009 +0000 @@ -16,6 +16,7 @@ #define Z_TEXT 100 #define Z_LINEEDIT 110 +class ConvexPolygon; class TreeItem; @@ -40,26 +41,27 @@ virtual qreal width(); virtual qreal height(); virtual QPointF getAbsPos(); - virtual QString getPos(); // Return position as string (x,y) - virtual void move (double x,double y); // move to absolute Position + virtual QString getPos(); //! Return position as string (x,y) + virtual void move (double x,double y); //! move to absolute Position virtual void move (QPointF p); - virtual void moveBy (double x,double y); // move to relative Position - virtual QRectF getBBox(); // returns bounding box - virtual QRectF getClickBox(); // returns box to click + virtual void moveBy (double x,double y); //! move to relative Position + virtual QRectF getBBox(); //! returns bounding box + virtual ConvexPolygon getBoundingPolygon(); //! return bounding convex polygon + virtual QRectF getClickBox(); //! returns box to click virtual bool isInClickBox (const QPointF &p); //! Checks if p is in clickBox - virtual QSizeF getSize(); // returns size of bounding box + virtual QSizeF getSize(); //! returns size of bounding box virtual bool isVisibleObj(); virtual void setVisibility(bool); virtual void positionBBox()=0; virtual void calcBBoxSize()=0; protected: QGraphicsScene* scene; - QRectF bbox; // bounding box of MO itself - QRectF clickBox; // area where mouseclicks are found - QPointF absPos; // Position on canvas + QRectF bbox; // bounding box of MO itself + QRectF clickBox; // area where mouseclicks are found + QPointF absPos; // Position on canvas bool visible; - TreeItem *treeItem; // Crossrefence to treemodel + TreeItem *treeItem; //! Crossrefence to treemodel };