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

SoQtExaminerViewer.h
1 #ifndef SOQT_EXAMINERVIEWER_H
2 #define SOQT_EXAMINERVIEWER_H
3 
4 // src/Inventor/Qt/viewers/SoQtExaminerViewer.h. Generated from SoGuiExaminerViewer.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/SbLinear.h>
39 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
40 
41 class SoSeparator;
42 class SoSwitch;
43 class SoTranslation;
44 class SoScale;
45 
46 class SoQtThumbWheel;
47 
48 // *************************************************************************
49 
50 class SOQT_DLL_API SoQtExaminerViewer : public SoQtFullViewer {
51  SOQT_OBJECT_HEADER(SoQtExaminerViewer, SoQtFullViewer);
52 
53 public:
54  SoQtExaminerViewer(QWidget * parent = NULL,
55  const char * name = NULL,
56  SbBool embed = TRUE,
57  SoQtFullViewer::BuildFlag flag = BUILD_ALL,
58  SoQtViewer::Type type = BROWSER);
60 
61  void setAnimationEnabled(const SbBool enable);
62  SbBool isAnimationEnabled(void) const;
63 
64  void stopAnimating(void);
65  SbBool isAnimating(void) const;
66 
67  void setFeedbackVisibility(const SbBool enable);
68  SbBool isFeedbackVisible(void) const;
69 
70  void setFeedbackSize(const int size);
71  int getFeedbackSize(void) const;
72 
73  virtual void setViewing(SbBool enable);
74  virtual void setCamera(SoCamera * camera);
75  virtual void setCursorEnabled(SbBool enable);
76 
77 protected:
78  SoQtExaminerViewer(QWidget * parent,
79  const char * name,
80  SbBool embed,
82  SoQtViewer::Type type,
83  SbBool build);
84 
85  virtual void leftWheelMotion(float val);
86  virtual void bottomWheelMotion(float val);
87  virtual void rightWheelMotion(float val);
88 
89  virtual void createViewerButtons(QWidget * parent, SbPList * buttonlist);
90 
91  virtual const char * getDefaultWidgetName(void) const;
92  virtual const char * getDefaultTitle(void) const;
93  virtual const char * getDefaultIconTitle(void) const;
94 
95  virtual SbBool processSoEvent(const SoEvent * const event);
96  virtual void setSeekMode(SbBool enable);
97  virtual void actualRedraw(void);
98 
99  virtual void afterRealizeHook(void);
100 
101 private:
102  class SoQtExaminerViewerP * pimpl;
103 
104  friend class SoGuiExaminerViewerP;
105  friend class SoQtExaminerViewerP;
106 };
107 
108 #endif // ! SOQT_EXAMINERVIEWER_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 actualRedraw(void)
Definition: SoQtViewer.cpp:3264
virtual void setViewing(SbBool on)
Definition: FullViewer.cpp:366
Type
Definition: SoQtViewer.h:94
The SoQtExaminerViewer class is a 3D-model examination viewer.This class is the viewer considered to ...
Definition: SoQtExaminerViewer.h:50
virtual const char * getDefaultWidgetName(void) const
Definition: SoQtRenderArea.cpp:2092
virtual void leftWheelMotion(float)
Definition: SoQtFullViewer.cpp:498
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
virtual void setSeekMode(SbBool enable)
Definition: SoQtViewer.cpp:2955
virtual const char * getDefaultTitle(void) const
Definition: SoQtRenderArea.cpp:2100
virtual void afterRealizeHook(void)
Definition: SoQtRenderArea.cpp:983
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:44

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

Generated on Sat May 6 2017 19:04:47 for SoQt by Doxygen 1.8.6.