~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to build/msvc6/src/Inventor/Qt/viewers/SoQtConstrainedViewer.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2006-02-06 22:34:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060206223400-g69m5soqa4zh0gkc
Tags: 1.3.0-3
debian/control: update libsoqt-dev depends.  Closes: #351700.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************\
 
2
 *
 
3
 *  This file is part of the Coin 3D visualization library.
 
4
 *  Copyright (C) 1998-2005 by Systems in Motion.  All rights reserved.
 
5
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
17
 *  See <URL:http://www.coin3d.org/> for more information.
 
18
 *
 
19
 *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
 
20
 *  <URL:http://www.sim.no/>.
 
21
 *
 
22
\**************************************************************************/
 
23
 
 
24
// src/Inventor/Qt/viewers/SoQtConstrainedViewer.h.  Generated from SoGuiConstrainedViewer.h.in by configure.
 
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,
 
48
                           SoQtFullViewer::BuildFlag flag, 
 
49
                           SoQtViewer::Type type, 
 
50
                           SbBool build);
 
51
 
 
52
  ~SoQtConstrainedViewer();
 
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