Coin Logo http://www.sim.no
http://www.coin3d.org

SoQtPlaneViewer.h
1 #ifndef SOQTPLANEVIEWER_H
2 #define SOQTPLANEVIEWER_H
3 
4 // src/Inventor/Qt/viewers/SoQtPlaneViewer.h. Generated from SoGuiPlaneViewer.h.in by configure.
5 
6 /**************************************************************************\
7  *
8  * This file is part of the Coin 3D visualization library.
9  * Copyright (C) by Kongsberg Oil & Gas Technologies.
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * ("GPL") version 2 as published by the Free Software Foundation.
14  * See the file LICENSE.GPL at the root directory of this source
15  * distribution for additional information about the GNU GPL.
16  *
17  * For using Coin with software that can not be combined with the GNU
18  * GPL, and for taking advantage of the additional benefits of our
19  * support services, please contact Kongsberg Oil & Gas Technologies
20  * about acquiring a Coin Professional Edition License.
21  *
22  * See http://www.coin3d.org/ for more information.
23  *
24  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
25  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
26  *
27 \**************************************************************************/
28 
29 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
30 
31 // ************************************************************************
32 
33 class SOQT_DLL_API SoQtPlaneViewer : public SoQtFullViewer {
34  SOQT_OBJECT_HEADER(SoQtPlaneViewer, SoQtFullViewer);
35 
36 public:
37  SoQtPlaneViewer(QWidget * parent = NULL,
38  const char * const name = NULL,
39  SbBool embed = TRUE,
40  SoQtFullViewer::BuildFlag flag = BUILD_ALL,
41  SoQtViewer::Type type = BROWSER);
42  ~SoQtPlaneViewer();
43 
44  virtual void setViewing(SbBool enable);
45  virtual void setCamera(SoCamera * camera);
46  virtual void setCursorEnabled(SbBool enable);
47 
48 protected:
49  SoQtPlaneViewer(QWidget * parent,
50  const char * const name,
51  SbBool embed,
53  SoQtViewer::Type type,
54  SbBool build);
55 
56  QWidget * buildWidget(QWidget * parent);
57 
58  virtual const char * getDefaultWidgetName(void) const;
59  virtual const char * getDefaultTitle(void) const;
60  virtual const char * getDefaultIconTitle(void) const;
61 
62  virtual SbBool processSoEvent(const SoEvent * const event);
63  virtual void setSeekMode(SbBool enable);
64  virtual void actualRedraw(void);
65 
66  virtual void bottomWheelStart(void);
67  virtual void bottomWheelMotion(float value);
68  virtual void bottomWheelFinish(void);
69 
70  virtual void leftWheelStart(void);
71  virtual void leftWheelMotion(float value);
72  virtual void leftWheelFinish(void);
73 
74  virtual void rightWheelStart(void);
75  virtual void rightWheelMotion(float value);
76  virtual void rightWheelFinish(void);
77 
78  virtual void createViewerButtons(QWidget * parent, SbPList * buttons);
79 
80  virtual void afterRealizeHook(void);
81  virtual void computeSeekFinalOrientation(void);
82 
83 private:
84  class SoQtPlaneViewerP * pimpl;
85 
86  friend class SoGuiPlaneViewerP;
87  friend class SoQtPlaneViewerP;
88 };
89 
90 #endif // !SOQTPLANEVIEWER_H

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Sat Apr 12 2014 16:24:30 for SoQt by Doxygen 1.8.1.2.