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
virtual SbBool processSoEvent(const SoEvent *const event)
Definition: SoQtFullViewer.cpp:715
virtual void setCamera(SoCamera *camera)
Definition: SoQtViewer.cpp:1686
virtual void bottomWheelMotion(float)
Definition: SoQtFullViewer.cpp:556
BuildFlag
Definition: SoQtFullViewer.h:39
virtual void rightWheelMotion(float)
Definition: SoQtFullViewer.cpp:623
virtual void bottomWheelStart(void)
Definition: SoQtFullViewer.cpp:542
virtual void computeSeekFinalOrientation(void)
Definition: SoQtViewer.cpp:3574
virtual void actualRedraw(void)
Definition: SoQtViewer.cpp:3252
virtual void setViewing(SbBool on)
Definition: FullViewer.cpp:357
Type
Definition: SoQtViewer.h:85
virtual void bottomWheelFinish(void)
Definition: SoQtFullViewer.cpp:570
virtual const char * getDefaultWidgetName(void) const
Definition: SoQtRenderArea.cpp:2069
virtual void leftWheelMotion(float)
Definition: SoQtFullViewer.cpp:489
virtual void leftWheelStart(void)
Definition: SoQtFullViewer.cpp:475
virtual const char * getDefaultIconTitle(void) const
Definition: SoQtRenderArea.cpp:2085
virtual void setCursorEnabled(SbBool enable)
Definition: SoQtViewer.cpp:2179
virtual void createViewerButtons(QWidget *parent, SbPList *buttonlist)
Definition: FullViewer.cpp:604
The SoQtPlaneViewer class is for examining 3D models by moving the camera in orthogonal planes...
Definition: SoQtPlaneViewer.h:33
virtual void setSeekMode(SbBool enable)
Definition: SoQtViewer.cpp:2943
virtual void rightWheelFinish(void)
Definition: SoQtFullViewer.cpp:637
virtual void rightWheelStart(void)
Definition: SoQtFullViewer.cpp:609
virtual const char * getDefaultTitle(void) const
Definition: SoQtRenderArea.cpp:2077
virtual void afterRealizeHook(void)
Definition: SoQtRenderArea.cpp:964
virtual void leftWheelFinish(void)
Definition: SoQtFullViewer.cpp:503
The SoQtFullViewer class adds some user interface components to the viewer canvas.The SoQtFullViewer is an abstract viewer class which extends it's superclass (the basic SoQtViewer class) with two major user interface additions:
Definition: SoQtFullViewer.h:35

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

Generated on Wed Mar 18 2015 for SoQt by Doxygen 1.8.9.1.