00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef QBEXAMINERVIEWER_H
00017 #define QBEXAMINERVIEWER_H
00018
00019 #include <Inventor/Qt/SoQt.h>
00020 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
00021 #include <Inventor/nodes/SoRotationXYZ.h>
00022 #include <Inventor/nodes/SoSeparator.h>
00023 #include <Inventor/threads/SbRWMutex.h>
00024
00025 class QbExaminerViewer : public SoQtExaminerViewer {
00026 typedef SoQtExaminerViewer inherited;
00027 public:
00028 QbExaminerViewer(QWidget * parent, const char * filename);
00029 ~QbExaminerViewer();
00030 void setBackground(const char *filename = "QbExaminerViewer_BACKGROUND.iv");
00031 void setForeground(const char *filename = "QbExaminerViewer_FOREGROUND.iv");
00032 SbRWMutex renderMutex;
00033 protected:
00034 virtual void actualRedraw(void);
00035 private:
00036 SoSeparator * backgroundroot;
00037 SoSeparator * foregroundroot;
00038 };
00039
00040 #endif
00041