Camera.h
Go to the documentation of this file.
00001 #ifndef CAMERA_H
00002 #define CAMERA_H
00003 
00004 #include <QtGui/QGraphicsView>
00005 
00006 // Widget capable not only of displaying the camera image but also to zoom in and out on the image. 
00007 // Of course the zoom is a software zoom, even using a camera with hardware zoom.
00008 class CameraWidget : public QGraphicsView
00009  {
00010      Q_OBJECT
00011 
00012  public:
00013      CameraWidget(QWidget *parent = 0);
00014 
00015 
00016  protected:
00017      void keyPressEvent(QKeyEvent *event);
00018      void timerEvent(QTimerEvent *event);
00019      void wheelEvent(QWheelEvent *event);
00020      void drawBackground(QPainter *painter, const QRectF &rect);
00021      void scaleView(qreal scaleFactor);
00022 
00023  private:
00024      int timerId;
00025 
00026  };
00027 #endif // CAMERA_H


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