refimagewidget.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** Author:  Jaime Valls Miro <jaime.vallsmiro@eng.uts.edu.au>
00004 **          Hue Tuan Thi <huetuan.thi@uts.edu.au>, (C) 2006
00005 **
00006 ** This file is part of the S3D Viewer Project
00007 **
00008 ** This file may be used under the terms of the GNU General Public
00009 ** License version 2.0 as published by the Free Software Foundation
00010 ** and appearing in the file LICENSE.GPL included in the packaging of
00011 ** this file.  Please review the following information to ensure GNU
00012 ** General Public Licensing requirements will be met:
00013 ** http://www.trolltech.com/products/qt/opensource.html
00014 **
00015 ** If you are unsure which license is appropriate for your use, please
00016 ** review the following information:
00017 ** http://www.trolltech.com/products/qt/licensing.html or contact the
00018 ** sales department at sales@trolltech.com.
00019 **
00020 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00021 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00022 **
00023 ****************************************************************************/
00024 
00032 #ifndef REFIMAGEWIDGET_H
00033 #define REFIMAGEWIDGET_H
00034 
00035 #include <QGLWidget>
00036 #include <qgl.h>
00037 #include <qapplication.h>
00038 #include <qevent.h>
00039 #include <GL/glu.h>
00040 #include <stdlib.h>
00041 #include <stdio.h>
00042 #include <QMainWindow>
00043 
00044 #include "filereader.h"
00045 #include "point3dwidget.h"
00046 
00050 class RefImgWidget : public QGLWidget
00051 {
00052     Q_OBJECT
00053 
00054 public:
00055     RefImgWidget(QWidget *parent = 0);        
00056     ~RefImgWidget();                          
00057     FileReader *fileReader;                   
00058     void updateFile( FileReader *fd);         
00059     void setDrawAble(bool status);            
00060     void setPointWidget(Point3dWidget *pw);   
00061 
00062 signals:
00063     void setMousePoint(int mousePoint);       
00064 
00065 protected:
00066     void initializeGL();                      
00067     void paintGL();                           
00068     void resizeGL(int width, int height);     
00069     void mouseMoveEvent(QMouseEvent *event);  
00070     void keyPressEvent( QKeyEvent *e );       
00071 
00072 private:
00073     QMainWindow *mainWindow;                  
00074     bool drawAble;                            
00075     int windowHeight;                         
00076     int windowWidth;                          
00077     int getColor(int x, int y, int z);        
00078     float getCoord(int x, int y, int k);      
00079     Point3dWidget *point3dWidget;             
00080     GLint myHeight;                           
00081 };
00082 
00083 #endif

Generated on Mon Aug 14 10:44:20 2006 for S3DViewer by  doxygen 1.4.4