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

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  *
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/SbLinear.h>
30 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
31 
32 class SoSeparator;
33 class SoSwitch;
34 class SoTranslation;
35 class SoScale;
36 
37 class SoQtThumbWheel;
38 
39 // *************************************************************************
40 
41 class SOQT_DLL_API SoQtExaminerViewer : public SoQtFullViewer {
42  SOQT_OBJECT_HEADER(SoQtExaminerViewer, SoQtFullViewer);
43 
44 public:
45  SoQtExaminerViewer(QWidget * parent = NULL,
46  const char * name = NULL,
47  SbBool embed = TRUE,
48  SoQtFullViewer::BuildFlag flag = BUILD_ALL,
49  SoQtViewer::Type type = BROWSER);
51 
52  void setAnimationEnabled(const SbBool enable);
53  SbBool isAnimationEnabled(void) const;
54 
55  void stopAnimating(void);
56  SbBool isAnimating(void) const;
57 
58  void setFeedbackVisibility(const SbBool enable);
59  SbBool isFeedbackVisible(void) const;
60 
61  void setFeedbackSize(const int size);
62  int getFeedbackSize(void) const;
63 
64  virtual void setViewing(SbBool enable);
65  virtual void setCamera(SoCamera * camera);
66  virtual void setCursorEnabled(SbBool enable);
67 
68 protected:
69  SoQtExaminerViewer(QWidget * parent,
70  const char * name,
71  SbBool embed,
73  SoQtViewer::Type type,
74  SbBool build);
75 
76  virtual void leftWheelMotion(float val);
77  virtual void bottomWheelMotion(float val);
78  virtual void rightWheelMotion(float val);
79 
80  virtual void createViewerButtons(QWidget * parent, SbPList * buttonlist);
81 
82  virtual const char * getDefaultWidgetName(void) const;
83  virtual const char * getDefaultTitle(void) const;
84  virtual const char * getDefaultIconTitle(void) const;
85 
86  virtual SbBool processSoEvent(const SoEvent * const event);
87  virtual void setSeekMode(SbBool enable);
88  virtual void actualRedraw(void);
89 
90  virtual void afterRealizeHook(void);
91 
92 private:
93  class SoQtExaminerViewerP * pimpl;
94 
95  friend class SoGuiExaminerViewerP;
96  friend class SoQtExaminerViewerP;
97 };
98 
99 #endif // ! SOQT_EXAMINERVIEWER_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 actualRedraw(void)
Definition: SoQtViewer.cpp:3252
virtual void setViewing(SbBool on)
Definition: FullViewer.cpp:357
Type
Definition: SoQtViewer.h:85
The SoQtExaminerViewer class is a 3D-model examination viewer.This class is the viewer considered to ...
Definition: SoQtExaminerViewer.h:41
virtual const char * getDefaultWidgetName(void) const
Definition: SoQtRenderArea.cpp:2069
virtual void leftWheelMotion(float)
Definition: SoQtFullViewer.cpp:489
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
virtual void setSeekMode(SbBool enable)
Definition: SoQtViewer.cpp:2943
virtual const char * getDefaultTitle(void) const
Definition: SoQtRenderArea.cpp:2077
virtual void afterRealizeHook(void)
Definition: SoQtRenderArea.cpp:964
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 Fri Mar 30 2018 for SoQt by Doxygen 1.8.8.