18 class MapObj:public xmlObj {
25 virtual void copy (MapObj*);
26 virtual QCanvas* getCanvas();
31 virtual void move (double x,double y); // move to absolute Position
32 virtual void moveBy (double x,double y); // move to relative Position
33 virtual bool inBBox(QPoint); // Check if Point is in bbox
34 virtual QRect getBBox(); // returns bounding box
35 virtual QRect addBBox(QRect,QRect); // returns bbox which includes both boxes
36 virtual QSize getSize(); // returns size of bounding box
37 virtual bool isVisibleObj();
38 virtual void setVisibility(bool);
41 QRect bbox; // bounding box of MO itself
42 virtual void positionBBox()=0;
43 virtual void calcBBoxSize()=0;
44 QPoint absPos; // Position on canvas