Menu

[c54480]: / floatimageobj.h  Maximize  Restore  History

Download this file

36 lines (28 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef FLOATIMAGEOBJ_H
#define FLOATIMAGEOBJ_H
#include "floatobj.h"
#include <QPixmap>
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();
virtual void load (const QImage &);
virtual void setParObj (QGraphicsItem*);
virtual void setVisibility(bool); // set vis. for w
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 *icon;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.