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 inBox(const QPoint&); // Check if Point is within clickbox
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);
41 virtual void positionBBox()=0;
42 virtual void calcBBoxSize()=0;
45 QRect bbox; // bounding box of MO itself
46 QRect clickBox; // area where mouseclicks are found
47 QPoint absPos; // Position on canvas