Viewer.h

Go to the documentation of this file.
00001 #ifndef VIEWER_H
00002 #define VIEWER_H
00003 
00004 #include <QGLViewer/qglviewer.h>
00005 #include "SimpleMeshGLScene.h"
00006 
00007 // Viewer for the meshViewer.
00008 
00009 class Viewer : public QGLViewer
00010 {
00011 public:
00012   Viewer();
00013   ~Viewer();
00014   
00015 protected :
00016   void loadFile();
00017   void keyPressEvent(QKeyEvent *e);
00018   void init();
00019   void draw();
00020   void about();
00021   QString helpString() const;
00022   void select(const QMouseEvent *e);
00023   void help() const;
00024   
00025 private:
00026   X3DTK::SimpleMeshGLScene scene;
00027   
00028   // Events dispatched to the scene.
00029   inline void toggleDrawPoints() {scene.changeDrawPoints();};
00030   inline void toggleDrawEdges() {scene.changeDrawEdges();};
00031   inline void toggleDrawFaces() {scene.changeDrawFaces();};
00032   inline void toggleOneColorPerMesh() {scene.changeOneColorPerMesh();};
00033 
00034 };
00035 
00036 #endif

Generated on Mon Jul 12 09:40:00 2004 for X3DToolKit by doxygen 1.3.6