X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Ffloatimageobj.cpp;fp=src%2Ffloatimageobj.cpp;h=6c9864491ab5fbe50d3a9a19f621de5ea0d4b44b;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/src/floatimageobj.cpp b/src/floatimageobj.cpp new file mode 100644 index 0000000..6c98644 --- /dev/null +++ b/src/floatimageobj.cpp @@ -0,0 +1,137 @@ +#include +#include + +#include "branchobj.h" +#include "floatimageobj.h" + +///////////////////////////////////////////////////////////////// +// FloatImageObj +///////////////////////////////////////////////////////////////// + +FloatImageObj::FloatImageObj(QGraphicsItem *parent, TreeItem *ti) + : FloatObj(parent, ti) +{ + // qDebug() << "Const FloatImageObj this=" << this << " ti=" << ti; + imageObj = new ImageObj(parent); + imageObj->setPos(absPos.x(), absPos.y()); + imageObj->setVisibility(true); + clickPoly = bbox; + useRelPos = true; + + // setLinkStyle (LinkableMapObj::Parabel); +} + +FloatImageObj::~FloatImageObj() +{ + // qDebug() << "Destr FloatImageObj "<copy(other->imageObj); + positionBBox(); +} + +void FloatImageObj::setZValue(const int &i) +{ + + // qDebug()<<"FIO::setZValue z="<