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