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 QGraphicsItem
00009          //transform a Qimage in a qGraphicsItem
00010  {
00011  public:
00012      Image();
00013 
00014      enum { Type = UserType + 1 };
00015      int type() const { return Type; }
00016 
00017 
00018      QRectF boundingRect() const;
00019 //     QPainterPath shape() const;
00020      void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00021 
00022 
00023     void setImage(QImage& image);//set the QImage
00024     void saveImage();
00025  private :
00026          QImage image;
00027 
00028  };
00029 
00030 #endif // IMAGE_H


corobot_teleop
Author(s): Morgan Cormier/Gang Li/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:39:41