X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Ffloatimageobj.h;fp=src%2Ffloatimageobj.h;h=b78c29344e76c09bcfea4dcbd659fb57c92e4e82;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/src/floatimageobj.h b/src/floatimageobj.h new file mode 100644 index 0000000..b78c293 --- /dev/null +++ b/src/floatimageobj.h @@ -0,0 +1,42 @@ +#ifndef FLOATIMAGEOBJ_H +#define FLOATIMAGEOBJ_H + +#include "floatobj.h" +#include + +class TreeItem; +/*! \brief A pixmap which can be positioned freely on the map. */ + +///////////////////////////////////////////////////////////////////////////// +class FloatImageObj : public FloatObj { + public: + FloatImageObj(QGraphicsItem *, TreeItem *ti = NULL); + ~FloatImageObj(); + virtual void copy(FloatImageObj *); + virtual void setZValue(const int &); + virtual int z(); + + bool load(const QString &fname); + bool save(const QString &fname); + QString getExtension(); + void setParObj(QGraphicsItem *); + void setVisibility(bool); // set vis. for w + void setScaleFactor(qreal f); + qreal getScaleFactor(); + qreal width(); + qreal height(); + virtual void moveCenter(double x, double y); + virtual void move(double x, double y); + virtual void move(QPointF); + virtual void positionBBox(); + virtual void calcBBoxSize(); + virtual QRectF + getBBoxSizeWithChildren(); // return size of BBox including children + virtual void calcBBoxSizeWithChildren(); // calc size of BBox including + // children recursivly + + protected: + ImageObj *imageObj; +}; + +#endif