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 implementing QGLViewer. 00008 00009 class Viewer : public QGLViewer 00010 { 00011 protected : 00012 void init(); 00013 void draw(); 00014 void keyPressEvent(QKeyEvent *e); 00015 void loadFile(); 00016 void about(); 00017 QString helpString() const; 00018 void help() const; 00019 00020 private: 00021 X3DTK::SimpleX3DGLScene scene; 00022 }; 00023 00024 #endif