![]() |
http://www.coin3d.org/ http://www.kongsberg.com/kogt/ |
00001 #ifndef SOQT_EXAMINERVIEWER_H 00002 #define SOQT_EXAMINERVIEWER_H 00003 00004 // src/Inventor/Qt/viewers/SoQtExaminerViewer.h. Generated from SoGuiExaminerViewer.h.in by configure. 00005 00006 /**************************************************************************\ 00007 * Copyright (c) Kongsberg Oil & Gas Technologies AS 00008 * All rights reserved. 00009 * 00010 * Redistribution and use in source and binary forms, with or without 00011 * modification, are permitted provided that the following conditions are 00012 * met: 00013 * 00014 * Redistributions of source code must retain the above copyright notice, 00015 * this list of conditions and the following disclaimer. 00016 * 00017 * Redistributions in binary form must reproduce the above copyright 00018 * notice, this list of conditions and the following disclaimer in the 00019 * documentation and/or other materials provided with the distribution. 00020 * 00021 * Neither the name of the copyright holder nor the names of its 00022 * contributors may be used to endorse or promote products derived from 00023 * this software without specific prior written permission. 00024 * 00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00026 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00027 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00028 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00029 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00030 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00031 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00032 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00033 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00034 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00035 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00036 \**************************************************************************/ 00037 00038 #include <Inventor/SbLinear.h> 00039 #include <Inventor/Qt/viewers/SoQtFullViewer.h> 00040 00041 class SoSeparator; 00042 class SoSwitch; 00043 class SoTranslation; 00044 class SoScale; 00045 00046 class SoQtThumbWheel; 00047 00048 // ************************************************************************* 00049 00050 class SOQT_DLL_API SoQtExaminerViewer : public SoQtFullViewer { 00051 SOQT_OBJECT_HEADER(SoQtExaminerViewer, SoQtFullViewer); 00052 00053 public: 00054 SoQtExaminerViewer(QWidget * parent = NULL, 00055 const char * name = NULL, 00056 SbBool embed = TRUE, 00057 SoQtFullViewer::BuildFlag flag = BUILD_ALL, 00058 SoQtViewer::Type type = BROWSER); 00059 ~SoQtExaminerViewer(); 00060 00061 void setAnimationEnabled(const SbBool enable); 00062 SbBool isAnimationEnabled(void) const; 00063 00064 void stopAnimating(void); 00065 SbBool isAnimating(void) const; 00066 00067 void setFeedbackVisibility(const SbBool enable); 00068 SbBool isFeedbackVisible(void) const; 00069 00070 void setFeedbackSize(const int size); 00071 int getFeedbackSize(void) const; 00072 00073 virtual void setViewing(SbBool enable); 00074 virtual void setCamera(SoCamera * camera); 00075 virtual void setCursorEnabled(SbBool enable); 00076 00077 protected: 00078 SoQtExaminerViewer(QWidget * parent, 00079 const char * name, 00080 SbBool embed, 00081 SoQtFullViewer::BuildFlag flag, 00082 SoQtViewer::Type type, 00083 SbBool build); 00084 00085 virtual void leftWheelMotion(float val); 00086 virtual void bottomWheelMotion(float val); 00087 virtual void rightWheelMotion(float val); 00088 00089 virtual void createViewerButtons(QWidget * parent, SbPList * buttonlist); 00090 00091 virtual const char * getDefaultWidgetName(void) const; 00092 virtual const char * getDefaultTitle(void) const; 00093 virtual const char * getDefaultIconTitle(void) const; 00094 00095 virtual SbBool processSoEvent(const SoEvent * const event); 00096 virtual void setSeekMode(SbBool enable); 00097 virtual void actualRedraw(void); 00098 00099 virtual void afterRealizeHook(void); 00100 00101 private: 00102 class SoQtExaminerViewerP * pimpl; 00103 00104 friend class SoGuiExaminerViewerP; 00105 friend class SoQtExaminerViewerP; 00106 }; 00107 00108 #endif // ! SOQT_EXAMINERVIEWER_H
Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Mar 2 2016 19:40:11 for SoQt by Doxygen 1.7.3.