00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef SOQT_EXAMINERVIEWER_H
00025 #define SOQT_EXAMINERVIEWER_H
00026
00027 #include <Inventor/SbLinear.h>
00028 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
00029
00030 class SoSeparator;
00031 class SoSwitch;
00032 class SoTranslation;
00033 class SoScale;
00034
00035 class SoQtThumbWheel;
00036
00037
00038
00039 class SOQT_DLL_API SoQtExaminerViewer : public SoQtFullViewer {
00040 SOQT_OBJECT_HEADER(SoQtExaminerViewer, SoQtFullViewer);
00041
00042 public:
00043 SoQtExaminerViewer(QWidget * parent = NULL,
00044 const char * name = NULL,
00045 SbBool embed = TRUE,
00046 SoQtFullViewer::BuildFlag flag = BUILD_ALL,
00047 SoQtViewer::Type type = BROWSER);
00048 ~SoQtExaminerViewer();
00049
00050 void setAnimationEnabled(const SbBool enable);
00051 SbBool isAnimationEnabled(void) const;
00052
00053 void stopAnimating(void);
00054 SbBool isAnimating(void) const;
00055
00056 void setFeedbackVisibility(const SbBool enable);
00057 SbBool isFeedbackVisible(void) const;
00058
00059 void setFeedbackSize(const int size);
00060 int getFeedbackSize(void) const;
00061
00062 virtual void setViewing(SbBool enable);
00063 virtual void setCamera(SoCamera * camera);
00064 virtual void setCursorEnabled(SbBool enable);
00065
00066 protected:
00067 SoQtExaminerViewer(QWidget * parent,
00068 const char * name,
00069 SbBool embed,
00070 SoQtFullViewer::BuildFlag flag,
00071 SoQtViewer::Type type,
00072 SbBool build);
00073
00074 virtual void leftWheelMotion(float val);
00075 virtual void bottomWheelMotion(float val);
00076 virtual void rightWheelMotion(float val);
00077
00078 virtual void createViewerButtons(QWidget * parent, SbPList * buttonlist);
00079
00080 virtual const char * getDefaultWidgetName(void) const;
00081 virtual const char * getDefaultTitle(void) const;
00082 virtual const char * getDefaultIconTitle(void) const;
00083
00084 virtual SbBool processSoEvent(const SoEvent * const event);
00085 virtual void setSeekMode(SbBool enable);
00086 virtual void actualRedraw(void);
00087
00088 virtual void afterRealizeHook(void);
00089
00090 private:
00091 class SoQtExaminerViewerP * pimpl;
00092
00093 friend class SoGuiExaminerViewerP;
00094 friend class SoQtExaminerViewerP;
00095 };
00096
00097 #endif // ! SOQT_EXAMINERVIEWER_H