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

SoQtConstrainedViewer.h
1 // src/Inventor/Qt/viewers/SoQtConstrainedViewer.h. Generated from SoGuiConstrainedViewer.h.in by configure.
2 
3 /**************************************************************************\
4  *
5  * This file is part of the Coin 3D visualization library.
6  * Copyright (C) by Kongsberg Oil & Gas Technologies.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.GPL at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using Coin with software that can not be combined with the GNU
15  * GPL, and for taking advantage of the additional benefits of our
16  * support services, please contact Kongsberg Oil & Gas Technologies
17  * about acquiring a Coin Professional Edition License.
18  *
19  * See http://www.coin3d.org/ for more information.
20  *
21  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
22  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
23  *
24 \**************************************************************************/
25 
26 #ifndef SOQT_CONSTRAINEDVIEWER_H
27 #define SOQT_CONSTRAINEDVIEWER_H
28 
29 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
30 
31 // ************************************************************************
32 
33 class SOQT_DLL_API SoQtConstrainedViewer : public SoQtFullViewer {
34  SOQT_OBJECT_ABSTRACT_HEADER(SoQtConstrainedViewer, SoQtFullViewer);
35 
36 public:
37  void setUpDirection(const SbVec3f & dir);
38  const SbVec3f & getUpDirection(void) const;
39 
40  virtual void setCamera(SoCamera * newcam);
41  virtual void saveHomePosition(void);
42  virtual void resetToHomePosition(void);
43 
44 protected:
45  SoQtConstrainedViewer(QWidget * parent,
46  const char * const name,
47  SbBool embed,
49  SoQtViewer::Type type,
50  SbBool build);
51 
53 
54  virtual void tiltCamera(float delta);
55  virtual void bottomWheelMotion(float value);
56  virtual void leftWheelMotion(float value);
57 
58  virtual void changeCameraValues(SoCamera * camera);
59  void findUpDirection(SbVec2s mouselocation);
60  void checkForCameraUpConstrain(void);
61 
62 private:
63  class SoQtConstrainedViewerP * pimpl;
64 };
65 
66 // ************************************************************************
67 
68 #endif // ! SOQT_CONSTRAINEDVIEWER_H
virtual void saveHomePosition(void)
Definition: SoQtViewer.cpp:1882
virtual void setCamera(SoCamera *camera)
Definition: SoQtViewer.cpp:1686
The SoQtConstrainedViewer class is the superclass for viewers with constrains on the viewpoint...
Definition: SoQtConstrainedViewer.h:33
virtual void bottomWheelMotion(float)
Definition: SoQtFullViewer.cpp:556
BuildFlag
Definition: SoQtFullViewer.h:39
virtual void resetToHomePosition(void)
Definition: SoQtViewer.cpp:1918
Type
Definition: SoQtViewer.h:85
virtual void leftWheelMotion(float)
Definition: SoQtFullViewer.cpp:489
virtual void changeCameraValues(SoCamera *camera)
Definition: SoQtViewer.cpp:3604
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:35

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

Generated on Tue Mar 24 2020 for SoQt by Doxygen 1.8.5.