Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

QGLViewerSceneTreeObjects.h

Go to the documentation of this file.
00001 /*
00002  * QGLViewerSceneTreeObjects.h
00003  * $Id: 
00004  *
00005  * Copyright (C) 2001 Richard Guenther, Markus Janich
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  */
00022 
00023 //  Description : Different general node types to put into a scene tree
00024 //  Purpose     : what do you think about
00025 
00026 
00027 #include "QGLViewer.h"
00028 #include "QSceneTreeNode.h"
00029 #include "CLightSource.h"
00030 #include "CList.h"
00031 
00036 class STLightList : public QSceneTreeDrawable
00037 {
00038 public:
00043   STLightList(const CList<CLightSource> *pLightList);
00045   STLightList(const CLightSource &Light);
00046 
00048   ~STLightList();
00049 
00053   virtual void draw();
00054 
00055 private:
00056   CList<CLightSource> *m_pLightList;
00057 };
00058 
00059 
00064 class STQGLViewerBoundingBox : public CBoundingBox3D, public QSceneTreeDrawable
00065 {
00066 public:
00068   STQGLViewerBoundingBox(const CBoundingBox3D &cBBox);
00069 
00072   virtual void draw();
00073 
00074 private:
00075   GLuint m_nDispList;
00076 };
00077 
00078 
00083 class STDisplayList : public QSceneTreeDrawable
00084 {
00085 public:
00094   STDisplayList(GLuint nDispList) 
00095     : m_nDispList(nDispList)
00096     {};
00098   ~STDisplayList();
00099 
00102   virtual void draw();
00103 
00104 private:
00105   GLuint m_nDispList;
00106 };
00107 
00108 
00109 /*
00110 class STProxy : public QObject, public QSceneTreeDrawable
00111 {
00112   Q_OBJECT
00113 
00114 public:
00115   STProxy();
00116   ~STProxy();
00117 
00118   virtual void draw() { emit(sigRedrawGL()); };
00119 
00120 signals:
00121   void sigRedrawGL();
00122 
00123 public slots:
00124   void sltUpdateView() { requestUpdate(); };
00125 };
00126 */

Generated at Thu Oct 4 17:17:26 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001