Coin Logo http://www.coin3d.org/
http://www.kongsberg.com/kogt/

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  * Copyright (c) Kongsberg Oil & Gas Technologies AS
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions are
12  * met:
13  *
14  * Redistributions of source code must retain the above copyright notice,
15  * this list of conditions and the following disclaimer.
16  *
17  * Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in the
19  * documentation and/or other materials provided with the distribution.
20  *
21  * Neither the name of the copyright holder nor the names of its
22  * contributors may be used to endorse or promote products derived from
23  * this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 \**************************************************************************/
37 
38 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
39 
40 // ************************************************************************
41 
42 class SOQT_DLL_API SoQtPlaneViewer : public SoQtFullViewer {
43  SOQT_OBJECT_HEADER(SoQtPlaneViewer, SoQtFullViewer);
44 
45 public:
46  SoQtPlaneViewer(QWidget * parent = NULL,
47  const char * const name = NULL,
48  SbBool embed = TRUE,
49  SoQtFullViewer::BuildFlag flag = BUILD_ALL,
50  SoQtViewer::Type type = BROWSER);
51  ~SoQtPlaneViewer();
52 
53  virtual void setViewing(SbBool enable);
54  virtual void setCamera(SoCamera * camera);
55  virtual void setCursorEnabled(SbBool enable);
56 
57 protected:
58  SoQtPlaneViewer(QWidget * parent,
59  const char * const name,
60  SbBool embed,
62  SoQtViewer::Type type,
63  SbBool build);
64 
65  QWidget * buildWidget(QWidget * parent);
66 
67  virtual const char * getDefaultWidgetName(void) const;
68  virtual const char * getDefaultTitle(void) const;
69  virtual const char * getDefaultIconTitle(void) const;
70 
71  virtual SbBool processSoEvent(const SoEvent * const event);
72  virtual void setSeekMode(SbBool enable);
73  virtual void actualRedraw(void);
74 
75  virtual void bottomWheelStart(void);
76  virtual void bottomWheelMotion(float value);
77  virtual void bottomWheelFinish(void);
78 
79  virtual void leftWheelStart(void);
80  virtual void leftWheelMotion(float value);
81  virtual void leftWheelFinish(void);
82 
83  virtual void rightWheelStart(void);
84  virtual void rightWheelMotion(float value);
85  virtual void rightWheelFinish(void);
86 
87  virtual void createViewerButtons(QWidget * parent, SbPList * buttons);
88 
89  virtual void afterRealizeHook(void);
90  virtual void computeSeekFinalOrientation(void);
91 
92 private:
93  class SoQtPlaneViewerP * pimpl;
94 
95  friend class SoGuiPlaneViewerP;
96  friend class SoQtPlaneViewerP;
97 };
98 
99 #endif // !SOQTPLANEVIEWER_H
virtual SbBool processSoEvent(const SoEvent *const event)
Definition: SoQtFullViewer.cpp:724
virtual void setCamera(SoCamera *camera)
Definition: SoQtViewer.cpp:1698
virtual void bottomWheelMotion(float)
Definition: SoQtFullViewer.cpp:565
BuildFlag
Definition: SoQtFullViewer.h:48
virtual void rightWheelMotion(float)
Definition: SoQtFullViewer.cpp:632
virtual void bottomWheelStart(void)
Definition: SoQtFullViewer.cpp:551
virtual void computeSeekFinalOrientation(void)
Definition: SoQtViewer.cpp:3586
virtual void actualRedraw(void)
Definition: SoQtViewer.cpp:3264
virtual void setViewing(SbBool on)
Definition: FullViewer.cpp:366
Type
Definition: SoQtViewer.h:94
virtual void bottomWheelFinish(void)
Definition: SoQtFullViewer.cpp:579
virtual const char * getDefaultWidgetName(void) const
Definition: SoQtRenderArea.cpp:2092
virtual void leftWheelMotion(float)
Definition: SoQtFullViewer.cpp:498
virtual void leftWheelStart(void)
Definition: SoQtFullViewer.cpp:484
virtual const char * getDefaultIconTitle(void) const
Definition: SoQtRenderArea.cpp:2108
virtual void setCursorEnabled(SbBool enable)
Definition: SoQtViewer.cpp:2191
virtual void createViewerButtons(QWidget *parent, SbPList *buttonlist)
Definition: FullViewer.cpp:613
The SoQtPlaneViewer class is for examining 3D models by moving the camera in orthogonal planes...
Definition: SoQtPlaneViewer.h:42
virtual void setSeekMode(SbBool enable)
Definition: SoQtViewer.cpp:2955
virtual void rightWheelFinish(void)
Definition: SoQtFullViewer.cpp:646
virtual void rightWheelStart(void)
Definition: SoQtFullViewer.cpp:618
virtual const char * getDefaultTitle(void) const
Definition: SoQtRenderArea.cpp:2100
virtual void afterRealizeHook(void)
Definition: SoQtRenderArea.cpp:983
virtual void leftWheelFinish(void)
Definition: SoQtFullViewer.cpp:512
The SoQtFullViewer class adds some user interface components to the viewer canvas.The SoQtFullViewer is an abstract viewer class which extends it&#39;s superclass (the basic SoQtViewer class) with two major user interface additions:
Definition: SoQtFullViewer.h:44

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

Generated on Fri Nov 11 2016 20:48:08 for SoQt by Doxygen 1.8.5.