]> git.sven.stormbind.net Git - sven/vym.git/blob - src/floatimageobj.h
New upstream version 2.9.22
[sven/vym.git] / src / floatimageobj.h
1 #ifndef FLOATIMAGEOBJ_H
2 #define FLOATIMAGEOBJ_H
3
4 #include "floatobj.h"
5 #include <QPixmap>
6
7 class TreeItem;
8 /*! \brief A pixmap which can be positioned freely on the map.  */
9
10 /////////////////////////////////////////////////////////////////////////////
11 class FloatImageObj : public FloatObj {
12   public:
13     FloatImageObj(QGraphicsItem *, TreeItem *ti = NULL);
14     ~FloatImageObj();
15     virtual void copy(FloatImageObj *);
16     virtual void setZValue(const int &);
17     virtual int z();
18
19     bool load(const QString &fname);
20     bool save(const QString &fname);
21     QString getExtension();
22     void setParObj(QGraphicsItem *);
23     void setVisibility(bool); // set vis. for w
24     void setScaleFactor(qreal f);
25     qreal getScaleFactor();
26     qreal width();
27     qreal height();
28     virtual void moveCenter(double x, double y);
29     virtual void move(double x, double y);
30     virtual void move(QPointF);
31     virtual void positionBBox();
32     virtual void calcBBoxSize();
33     virtual QRectF
34     getBBoxSizeWithChildren(); // return size of BBox including children
35     virtual void calcBBoxSizeWithChildren(); // calc size of  BBox including
36                                              // children recursivly
37
38   protected:
39     ImageObj *imageObj;
40 };
41
42 #endif