TarzaNN
TarzaNN neural network simulator
C:/Users/albertlr/projects/TarzaNN/TarzaNN/UI_ImageViewer.h
Go to the documentation of this file.
00001 /****************************************************************************
00002  **
00003  ** Copyright C 2002-2012 Laboratory for Active and Attentive Vision (LAAV), Department of Computer Science and Engineering, York University, Toronto, ON, Canada.
00004  ** All rights reserved.
00005  **
00006  ** This file is part of the TarzaNN Neural Network Simulator.
00007  **
00008  ** This file may be distributed and/or modified under the terms of the
00009  ** GNU General Public License version 2 as published by the Free Software
00010  ** Foundation and appearing in the file LICENSE.GPL included in the
00011  ** packaging of this file.
00012  **
00013  ** See http://www.tarzann.org/gpl/ for GPL licensing information.
00014  **
00015  ** Contact info@tarzann.org if any conditions of this licensing are
00016  ** not clear to you.
00017  **
00018  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00019  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00020  **
00021  ****************************************************************************/
00022 
00023 #ifndef UI_IMAGEVIEWER_H_INCLUDED
00024 #define UI_IMAGEVIEWER_H_INCLUDED
00025 
00026 #include <QImage>
00027 #include <QPixmap>
00028 #include <QWidget>
00029 #include <QMutex>
00030 #include <QLayout>
00031 #include <QLabel>
00032 #include <QPushButton>
00033 #include <QEvent>
00034 #include <QGridLayout>
00035 #include "UI_Image.h"
00036 
00037 class UI_ImageViewer: public QWidget
00038 {
00039     Q_OBJECT
00040 public:
00042     UI_ImageViewer(QWidget *p=0, const char *name=0);
00044     ~UI_ImageViewer();
00046     void setSaccadeHistoryImages( QImage* saccadeHistoryImage);
00047 
00049     UI_Image* theImage;
00051     QGridLayout* UI_Layout;
00053     QPushButton *saveButton;
00055     void paintEvent( QPaintEvent *e );
00056 
00057 public slots:
00059     void slotSaveButtonPressed();
00060 
00061 private:
00063     QMutex localAccess;
00064 
00066     QImage* saccadeHistoryImage;
00067 };
00068 #endif //UI_IMAGEVIEWER_H_INCLUDED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines