![]() |
http://www.sim.no http://www.coin3d.org |
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 * 00008 * This file is part of the Coin 3D visualization library. 00009 * Copyright (C) by Kongsberg Oil & Gas Technologies. 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * ("GPL") version 2 as published by the Free Software Foundation. 00014 * See the file LICENSE.GPL at the root directory of this source 00015 * distribution for additional information about the GNU GPL. 00016 * 00017 * For using Coin with software that can not be combined with the GNU 00018 * GPL, and for taking advantage of the additional benefits of our 00019 * support services, please contact Kongsberg Oil & Gas Technologies 00020 * about acquiring a Coin Professional Edition License. 00021 * 00022 * See http://www.coin3d.org/ for more information. 00023 * 00024 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00025 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00026 * 00027 \**************************************************************************/ 00028 00029 #include <Inventor/Qt/viewers/SoQtFullViewer.h> 00030 00031 // ************************************************************************ 00032 00033 class SOQT_DLL_API SoQtPlaneViewer : public SoQtFullViewer { 00034 SOQT_OBJECT_HEADER(SoQtPlaneViewer, SoQtFullViewer); 00035 00036 public: 00037 SoQtPlaneViewer(QWidget * parent = NULL, 00038 const char * const name = NULL, 00039 SbBool embed = TRUE, 00040 SoQtFullViewer::BuildFlag flag = BUILD_ALL, 00041 SoQtViewer::Type type = BROWSER); 00042 ~SoQtPlaneViewer(); 00043 00044 virtual void setViewing(SbBool enable); 00045 virtual void setCamera(SoCamera * camera); 00046 virtual void setCursorEnabled(SbBool enable); 00047 00048 protected: 00049 SoQtPlaneViewer(QWidget * parent, 00050 const char * const name, 00051 SbBool embed, 00052 SoQtFullViewer::BuildFlag flag, 00053 SoQtViewer::Type type, 00054 SbBool build); 00055 00056 QWidget * buildWidget(QWidget * parent); 00057 00058 virtual const char * getDefaultWidgetName(void) const; 00059 virtual const char * getDefaultTitle(void) const; 00060 virtual const char * getDefaultIconTitle(void) const; 00061 00062 virtual SbBool processSoEvent(const SoEvent * const event); 00063 virtual void setSeekMode(SbBool enable); 00064 virtual void actualRedraw(void); 00065 00066 virtual void bottomWheelStart(void); 00067 virtual void bottomWheelMotion(float value); 00068 virtual void bottomWheelFinish(void); 00069 00070 virtual void leftWheelStart(void); 00071 virtual void leftWheelMotion(float value); 00072 virtual void leftWheelFinish(void); 00073 00074 virtual void rightWheelStart(void); 00075 virtual void rightWheelMotion(float value); 00076 virtual void rightWheelFinish(void); 00077 00078 virtual void createViewerButtons(QWidget * parent, SbPList * buttons); 00079 00080 virtual void afterRealizeHook(void); 00081 virtual void computeSeekFinalOrientation(void); 00082 00083 private: 00084 class SoQtPlaneViewerP * pimpl; 00085 00086 friend class SoGuiPlaneViewerP; 00087 friend class SoQtPlaneViewerP; 00088 }; 00089 00090 #endif // !SOQTPLANEVIEWER_H
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Sun Dec 11 2011 10:03:22 for SoQt by Doxygen 1.7.6.1.