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 SOQTPLANEVIEWER_H
00025 #define SOQTPLANEVIEWER_H
00026
00027 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
00028
00029
00030
00031 class SOQT_DLL_API SoQtPlaneViewer : public SoQtFullViewer {
00032 SOQT_OBJECT_HEADER(SoQtPlaneViewer, SoQtFullViewer);
00033
00034 public:
00035 SoQtPlaneViewer(QWidget * parent = NULL,
00036 const char * const name = NULL,
00037 SbBool embed = TRUE,
00038 SoQtFullViewer::BuildFlag flag = BUILD_ALL,
00039 SoQtViewer::Type type = BROWSER);
00040 ~SoQtPlaneViewer();
00041
00042 virtual void setViewing(SbBool enable);
00043 virtual void setCamera(SoCamera * camera);
00044 virtual void setCursorEnabled(SbBool enable);
00045
00046 protected:
00047 SoQtPlaneViewer(QWidget * parent,
00048 const char * const name,
00049 SbBool embed,
00050 SoQtFullViewer::BuildFlag flag,
00051 SoQtViewer::Type type,
00052 SbBool build);
00053
00054 QWidget * buildWidget(QWidget * parent);
00055
00056 virtual const char * getDefaultWidgetName(void) const;
00057 virtual const char * getDefaultTitle(void) const;
00058 virtual const char * getDefaultIconTitle(void) const;
00059
00060 virtual SbBool processSoEvent(const SoEvent * const event);
00061 virtual void setSeekMode(SbBool enable);
00062 virtual void actualRedraw(void);
00063
00064 virtual void bottomWheelStart(void);
00065 virtual void bottomWheelMotion(float value);
00066 virtual void bottomWheelFinish(void);
00067
00068 virtual void leftWheelStart(void);
00069 virtual void leftWheelMotion(float value);
00070 virtual void leftWheelFinish(void);
00071
00072 virtual void rightWheelStart(void);
00073 virtual void rightWheelMotion(float value);
00074 virtual void rightWheelFinish(void);
00075
00076 virtual void createViewerButtons(QWidget * parent, SbPList * buttons);
00077
00078 virtual void afterRealizeHook(void);
00079
00080 private:
00081 class SoQtPlaneViewerP * pimpl;
00082
00083 friend class SoGuiPlaneViewerP;
00084 friend class SoQtPlaneViewerP;
00085 };
00086
00087 #endif // !SOQTPLANEVIEWER_H