00001 #ifndef VIEWER_H 00002 #define VIEWER_H 00003 00004 #include <QGLViewer/qglviewer.h> 00005 #include <X3DTK/simplex3dglscene.h> 00006 00007 // Class providing an X3D Viewer by using X3DTK::SimpleX3DGLScene 00009 00010 class Viewer : public QGLViewer 00011 { 00012 protected : 00013 void init(); 00014 void draw(); 00015 void keyPressEvent(QKeyEvent *e); 00016 void loadFile(); 00017 void about(); 00018 QString helpString() const; 00019 void help() const; 00020 00021 private: 00022 X3DTK::SimpleX3DGLScene scene; 00023 }; 00024 00025 #endif