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 <X3DTK/simplifiedmeshscene.h>
00006 
00007 #include "BasicDrawer.h"
00008 
00009 typedef enum {VERTEX, EDGE, FACE} Entity;
00010 
00011 // Viewer for the meshViewer.
00012 
00013 class Viewer : public QGLViewer
00014 {
00015 public:
00016   Viewer();
00017   
00018 protected :
00019   void loadFile();
00020   void keyPressEvent(QKeyEvent *e);
00021   void init();
00022   void draw();
00023   QString helpString() const;
00024   void help() const;
00025   
00026 private:
00027   X3DTK::SimplifiedMeshScene scene;
00028   X3DTK::MESH::BasicDrawer drawer;
00029   Entity entity;
00030 };
00031 
00032 #endif

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