20 class MapObj:public xmlObj {
27 virtual void copy (MapObj*);
28 virtual QCanvas* getCanvas();
33 virtual QPoint getAbsPos();
34 virtual QString getPos(); // Return position as string (x,y)
35 virtual void move (double x,double y); // move to absolute Position
36 virtual void moveBy (double x,double y); // move to relative Position
37 virtual bool inBox(const QPoint&); // Check if Point is within clickbox
38 virtual QRect getBBox(); // returns bounding box
39 virtual QRect addBBox(QRect,QRect); // returns bbox which includes both boxes
40 virtual QSize getSize(); // returns size of bounding box
41 virtual bool isVisibleObj();
42 virtual void setVisibility(bool);
43 virtual void positionBBox()=0;
44 virtual void calcBBoxSize()=0;
47 QRect bbox; // bounding box of MO itself
48 QRect clickBox; // area where mouseclicks are found
49 QPoint absPos; // Position on canvas