Biomechanical Joint Model
 Author: Anderson Maciel

comeqglwidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Anderson Maciel                                 *
00003  *   andi.maciel@gmail.com                                                   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #include <qgl.h>
00021 #include <QGLViewer/qglviewer.h>
00022 #include <general/come.h>
00023 
00024 #define MAX_LINES 10000000
00025 
00026 class QTimer;
00027 class COME_Scenario;
00028 class COME_Discretizer;
00029  
00030 class COME_QGLWidget: public QGLViewer {
00031 
00032         Q_OBJECT        // must include this if you use Qt signals/slots
00033 
00034         public:
00035                 COME_QGLWidget( QWidget *parent, const char *name );
00036                 
00037                 void startTimer( int msec );
00038                 void setScene( COME_Scenario *sc );
00039                 void setGlobal( COME *global1 );
00040                 
00041                 COME* getGlobal();
00042 
00043         protected:
00044         
00045                 COME_Scenario   *scene;
00046         
00047                 virtual void draw();
00048                 virtual void init();
00049                 virtual void keyPressEvent(QKeyEvent *e);
00050                 virtual QString helpString() const;
00051         
00052         private:
00053                 QTimer *Timer;
00054                 COME *global;
00055                 bool wireframe_, flatShading_;
00056                 
00057                 void drawCylinder();
00058 };

Generated on Thu Dec 1 10:13:35 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5