![]() |
http://www.coin3d.org/ http://www.kongsberg.com/kogt/ |
00001 #ifndef SOQTPLANEVIEWER_H 00002 #define SOQTPLANEVIEWER_H 00003 00004 // src/Inventor/Qt/viewers/SoQtPlaneViewer.h. Generated from SoGuiPlaneViewer.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/Qt/viewers/SoQtFullViewer.h> 00039 00040 // ************************************************************************ 00041 00042 class SOQT_DLL_API SoQtPlaneViewer : public SoQtFullViewer { 00043 SOQT_OBJECT_HEADER(SoQtPlaneViewer, SoQtFullViewer); 00044 00045 public: 00046 SoQtPlaneViewer(QWidget * parent = NULL, 00047 const char * const name = NULL, 00048 SbBool embed = TRUE, 00049 SoQtFullViewer::BuildFlag flag = BUILD_ALL, 00050 SoQtViewer::Type type = BROWSER); 00051 ~SoQtPlaneViewer(); 00052 00053 virtual void setViewing(SbBool enable); 00054 virtual void setCamera(SoCamera * camera); 00055 virtual void setCursorEnabled(SbBool enable); 00056 00057 protected: 00058 SoQtPlaneViewer(QWidget * parent, 00059 const char * const name, 00060 SbBool embed, 00061 SoQtFullViewer::BuildFlag flag, 00062 SoQtViewer::Type type, 00063 SbBool build); 00064 00065 QWidget * buildWidget(QWidget * parent); 00066 00067 virtual const char * getDefaultWidgetName(void) const; 00068 virtual const char * getDefaultTitle(void) const; 00069 virtual const char * getDefaultIconTitle(void) const; 00070 00071 virtual SbBool processSoEvent(const SoEvent * const event); 00072 virtual void setSeekMode(SbBool enable); 00073 virtual void actualRedraw(void); 00074 00075 virtual void bottomWheelStart(void); 00076 virtual void bottomWheelMotion(float value); 00077 virtual void bottomWheelFinish(void); 00078 00079 virtual void leftWheelStart(void); 00080 virtual void leftWheelMotion(float value); 00081 virtual void leftWheelFinish(void); 00082 00083 virtual void rightWheelStart(void); 00084 virtual void rightWheelMotion(float value); 00085 virtual void rightWheelFinish(void); 00086 00087 virtual void createViewerButtons(QWidget * parent, SbPList * buttons); 00088 00089 virtual void afterRealizeHook(void); 00090 virtual void computeSeekFinalOrientation(void); 00091 00092 private: 00093 class SoQtPlaneViewerP * pimpl; 00094 00095 friend class SoGuiPlaneViewerP; 00096 friend class SoQtPlaneViewerP; 00097 }; 00098 00099 #endif // !SOQTPLANEVIEWER_H
Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Mon Sep 7 2015 11:30:44 for SoQt by Doxygen 1.7.3.