ImageGraphicsItem.qt.H

00001 
00002 
00003 #ifndef IMAGEGRAPHICSITEM_H
00004 #define IMAGEGRAPHICSITEM_H
00005 
00006 #include <QtGui/qgraphicsitem.h>
00007 #include <QtGui/qevent.h>
00008 #include <QtGui/qwidget.h>
00009 
00010 #include "Component/ModelManager.H"
00011 #include "Component/ModelComponent.H"
00012 #include "Media/FrameSeries.H"
00013 #include "Image/Image.H"
00014 #include "Image/PixelsTypes.H"
00015 
00016 class ImageGraphicsItem : public QObject, public QGraphicsItem
00017 {
00018         Q_OBJECT;
00019 
00020   public:
00021     ImageGraphicsItem();
00022 
00023                 //! Returns the bounding rectangle of this object
00024     QRectF boundingRect() const;
00025 
00026                 //! Paint this object to the screen
00027     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00028 
00029     void setImage(QImage img);
00030 
00031     void setSize(QSize size);
00032 
00033     QRectF getRect();
00034 
00035   private:
00036     QImage itsImage;
00037     QSize  itsSize;
00038 };
00039 
00040 #endif //IMAGEGRAPHICSITEM_H
00041 
Generated on Sun May 8 08:05:34 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3