00001 #ifndef VIEWER_H
00002 #define VIEWER_H
00003
00004 #include "NormalX3DGLScene.h"
00005
00006 #include <QGLViewer/qglviewer.h>
00007
00009
00010 class Viewer : public QGLViewer
00011 {
00012 public:
00013 Viewer(const char *file);
00014 ~Viewer();
00015
00016 protected :
00017 void loadFile();
00018 void keyPressEvent(QKeyEvent *e);
00019 void init();
00020 void draw();
00021 void about();
00022 QString helpString() const;
00023 void help() const;
00024
00025 private:
00026 float normLength;
00027 X3DTK::NormalX3DGLScene scene;
00028 X3DTK::BBox BB;
00029 char *x3dfile;
00030 bool normal;
00031 };
00032
00033 #endif