Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

QSimpleViewer.h

Go to the documentation of this file.
00001 /* 00002 * QSimpleViewer.h 00003 * $Id: QSimpleViewer.h,v 1.3 2001/11/15 16:54:51 guenth Exp $ 00004 * 00005 * Copyright (C) 1999, 2000 Markus Janich, Michael Meissner 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 * As a special exception to the GPL, the QGLViewer authors (Markus 00022 * Janich, Michael Meissner, Richard Guenther, Alexander Buck and Thomas 00023 * Woerner) give permission to link this program with Qt (non-)commercial 00024 * edition, and distribute the resulting executable, without including 00025 * the source code for the Qt (non-)commercial edition in the source 00026 * distribution. 00027 * 00028 */ 00029 00030 // Description : Class inherits from QGLExaminerViewer 00031 // Purpose : Overloads the catch key method and emits an own key signal 00032 00033 00034 00035 #ifndef QMYVIEWER__H 00036 #define QMYVIEWER__H 00037 00038 00039 // Qt 00041 #include <qlabel.h> 00042 #include <qslider.h> 00043 #include <qpushbutton.h> 00044 #include <qlayout.h> 00045 00046 00047 // Own 00049 #include "QGLExaminerViewer.h" 00050 00051 00052 // Defines 00054 #define ZOOMSCALING 100.0 // used for translating slidervalue to real (double) value. 00055 00056 00057 00067 class QSimpleViewer : public QGLExaminerViewer { 00068 Q_OBJECT 00069 00070 public: 00071 00074 QSimpleViewer(const CCamera &homecam, QWidget *parent=0, 00075 const char *name=0, const QGLWidget *shareWidget=0, 00076 WFlags f=0, bool viewertype=true, 00077 const QGLFormat &format=QGLFormat::defaultFormat()) 00078 : QGLExaminerViewer(homecam, parent, name, shareWidget, f, viewertype, format) {}; 00079 00081 virtual ~QSimpleViewer() {}; 00082 00083 signals: 00084 00086 void sigMyKey(int); 00087 00088 00089 protected: 00090 00092 virtual void keyPressEvent(QKeyEvent *event); 00093 00094 private: 00095 }; 00096 00097 #endif // QMYVIEWER__H

Generated on Wed Jul 28 02:09:12 2004 for QGLViewer by doxygen 1.3.7