1
/**************************************************************************\
3
* This file is part of the Coin 3D visualization library.
4
* Copyright (C) 1998-2005 by Systems in Motion. All rights reserved.
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* ("GPL") version 2 as published by the Free Software Foundation.
9
* See the file LICENSE.GPL at the root directory of this source
10
* distribution for additional information about the GNU GPL.
12
* For using Coin with software that can not be combined with the GNU
13
* GPL, and for taking advantage of the additional benefits of our
14
* support services, please contact Systems in Motion about acquiring
15
* a Coin Professional Edition License.
17
* See <URL:http://www.coin3d.org/> for more information.
19
* Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
20
* <URL:http://www.sim.no/>.
22
\**************************************************************************/
24
// src/Inventor/Qt/viewers/SoQtConstrainedViewer.h. Generated from SoGuiConstrainedViewer.h.in by configure.
26
#ifndef SOQT_CONSTRAINEDVIEWER_H
27
#define SOQT_CONSTRAINEDVIEWER_H
29
#include <Inventor/Qt/viewers/SoQtFullViewer.h>
31
// ************************************************************************
33
class SOQT_DLL_API SoQtConstrainedViewer : public SoQtFullViewer {
34
SOQT_OBJECT_ABSTRACT_HEADER(SoQtConstrainedViewer, SoQtFullViewer);
37
void setUpDirection(const SbVec3f & dir);
38
const SbVec3f & getUpDirection(void) const;
40
virtual void setCamera(SoCamera * newcam);
41
virtual void saveHomePosition(void);
42
virtual void resetToHomePosition(void);
45
SoQtConstrainedViewer(QWidget * parent,
46
const char * const name,
48
SoQtFullViewer::BuildFlag flag,
49
SoQtViewer::Type type,
52
~SoQtConstrainedViewer();
54
virtual void tiltCamera(float delta);
55
virtual void bottomWheelMotion(float value);
56
virtual void leftWheelMotion(float value);
58
virtual void changeCameraValues(SoCamera * camera);
59
void findUpDirection(SbVec2s mouselocation);
60
void checkForCameraUpConstrain(void);
63
class SoQtConstrainedViewerP * pimpl;
66
// ************************************************************************
68
#endif // ! SOQT_CONSTRAINEDVIEWER_H