Image.h
Go to the documentation of this file.
00001 #ifndef IMAGE_H
00002 #define IMAGE_H
00003 
00004 #include <QGraphicsItem>
00005 #include <QImage>
00006 
00007 
00008  class Image : public QGraphicsObject
00009          //transform a Qimage in a qGraphicsItem
00010  {
00011         Q_OBJECT
00012 
00013  public:
00014     Image();
00015     QRectF boundingRect() const;
00016     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00017     void setImage(QImage& image);//set the QImage
00018 
00019  private :
00020     QImage image;
00021 
00022     
00023  public slots:
00024     void saveImage(bool save); // save a picture of the current image stream on the hardrive. The date and time is given in the file name
00025 
00026  };
00027 
00028 #endif // IMAGE_H


corobot_teleop
Author(s):
autogenerated on Sun Oct 5 2014 23:18:16