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

SoQtFlyViewer.h
1 #ifndef SOQT_FLYVIEWER_H
2 #define SOQT_FLYVIEWER_H
3 
4 // src/Inventor/Qt/viewers/SoQtFlyViewer.h. Generated from SoGuiFlyViewer.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/SoQtConstrainedViewer.h>
30 
31 // ************************************************************************
32 
33 class SOQT_DLL_API SoQtFlyViewer : public SoQtConstrainedViewer {
34  SOQT_OBJECT_HEADER(SoQtFlyViewer, SoQtConstrainedViewer);
35 
36 public:
37  SoQtFlyViewer(QWidget * parent = NULL,
38  const char * name = NULL,
39  SbBool embed = TRUE,
40  SoQtFullViewer::BuildFlag flag = BUILD_ALL,
41  SoQtViewer::Type type = BROWSER);
42  ~SoQtFlyViewer();
43 
44  virtual void setViewing(SbBool enable);
45  virtual void viewAll(void);
46  virtual void resetToHomePosition(void);
47  virtual void setCamera(SoCamera * camera);
48  virtual void setCursorEnabled(SbBool enable);
49  virtual void setCameraType(SoType type);
50 
51 protected:
52  SoQtFlyViewer(QWidget * parent,
53  const char * const name,
54  SbBool embed,
56  SoQtViewer::Type type,
57  SbBool build);
58 
59  virtual const char * getDefaultWidgetName(void) const;
60  virtual const char * getDefaultTitle(void) const;
61  virtual const char * getDefaultIconTitle(void) const;
62 
63  virtual SbBool processSoEvent(const SoEvent * const event);
64  virtual void setSeekMode(SbBool enable);
65  virtual void actualRedraw(void);
66 
67  virtual void rightWheelMotion(float value);
68 
69  virtual void afterRealizeHook(void);
70 
71 private:
72  class SoQtFlyViewerP * pimpl;
73  friend class SoQtFlyViewerP;
74 };
75 
76 // ************************************************************************
77 
78 #endif // ! SOQT_FLYVIEWER_H
virtual void setCameraType(SoType type)
Definition: SoQtViewer.cpp:1753
virtual SbBool processSoEvent(const SoEvent *const event)
Definition: SoQtFullViewer.cpp:715
The SoQtConstrainedViewer class is the superclass for viewers with constrains on the viewpoint...
Definition: SoQtConstrainedViewer.h:33
BuildFlag
Definition: SoQtFullViewer.h:39
virtual void rightWheelMotion(float)
Definition: SoQtFullViewer.cpp:623
The SoQtFlyViewer class implements controls for moving the camera in a "flying" motion.Controls:
Definition: SoQtFlyViewer.h:33
virtual void setCamera(SoCamera *newcam)
Definition: SoQtConstrainedViewer.cpp:155
virtual void actualRedraw(void)
Definition: SoQtViewer.cpp:3252
virtual void setViewing(SbBool on)
Definition: FullViewer.cpp:357
Type
Definition: SoQtViewer.h:85
virtual const char * getDefaultWidgetName(void) const
Definition: SoQtRenderArea.cpp:2069
virtual const char * getDefaultIconTitle(void) const
Definition: SoQtRenderArea.cpp:2085
virtual void setCursorEnabled(SbBool enable)
Definition: SoQtViewer.cpp:2179
virtual void resetToHomePosition(void)
Definition: SoQtConstrainedViewer.cpp:175
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
virtual void viewAll(void)
Definition: SoQtViewer.cpp:1865

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

Generated on Mon Sep 22 2014 for SoQt by Doxygen 1.8.7.