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

« back to all changes in this revision

Viewing changes to build/msvc6/src/Inventor/Qt/nodes/SoGuiViewportFix.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2009-03-01 11:41:00 UTC
  • mfrom: (1.1.4 upstream) (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090301114100-f4zz3n1oasa52fgk
Tags: 1.4.2~svn20090224-2
* Upload upstream SVN head version containing fixes to build with Coin 3
  (Closes: #515729, #515736, #515742).  Upstream indicated to me that
  SVN is stable enough to release.

* control: Update Standards-Version to 3.8.0; no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef COIN_SOGUIVIEWPORTFIX_H
2
 
#define COIN_SOGUIVIEWPORTFIX_H
3
 
 
4
 
/**************************************************************************\
5
 
 *
6
 
 *  This file is part of the Coin 3D visualization library.
7
 
 *  Copyright (C) 1998-2005 by Systems in Motion.  All rights reserved.
8
 
 *
9
 
 *  This library is free software; you can redistribute it and/or
10
 
 *  modify it under the terms of the GNU General Public License
11
 
 *  ("GPL") version 2 as published by the Free Software Foundation.
12
 
 *  See the file LICENSE.GPL at the root directory of this source
13
 
 *  distribution for additional information about the GNU GPL.
14
 
 *
15
 
 *  For using Coin with software that can not be combined with the GNU
16
 
 *  GPL, and for taking advantage of the additional benefits of our
17
 
 *  support services, please contact Systems in Motion about acquiring
18
 
 *  a Coin Professional Edition License.
19
 
 *
20
 
 *  See <URL:http://www.coin3d.org/> for more information.
21
 
 *
22
 
 *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23
 
 *  <URL:http://www.sim.no/>.
24
 
 *
25
 
\**************************************************************************/
26
 
 
27
 
#ifndef SOQT_INTERNAL
28
 
#error this is a private header file
29
 
#endif /* !SOQT_INTERNAL */
30
 
 
31
 
#include <Inventor/fields/SoSFEnum.h>
32
 
#include <Inventor/fields/SoSFVec3f.h>
33
 
#include <Inventor/nodes/SoTransformation.h>
34
 
 
35
 
// might go abstract to separate between ortho and perspective views
36
 
 
37
 
class SoGuiViewportFix : public SoTransformation {
38
 
  typedef SoTransformation inherited;
39
 
  SO_NODE_HEADER(SoGuiViewportFix);
40
 
 
41
 
public:
42
 
  static void initClass(void);
43
 
 
44
 
  SoGuiViewportFix(void);
45
 
 
46
 
  enum Corner {
47
 
    LEFT_TOP,
48
 
    RIGHT_TOP,
49
 
    LEFT_BOTTOM,
50
 
    RIGHT_BOTTOM
51
 
  };
52
 
 
53
 
  SoSFEnum corner;
54
 
 
55
 
  SoSFVec3f viewportSize; // output field: updated internally
56
 
 
57
 
  virtual void doAction(SoAction * action);
58
 
  virtual void GLRender(SoGLRenderAction * action);
59
 
  virtual void pick(SoPickAction * action);
60
 
  virtual void rayPick(SoRayPickAction * action);
61
 
  virtual void getMatrix(SoGetMatrixAction * action);
62
 
 
63
 
protected:
64
 
  virtual ~SoGuiViewportFix(void);
65
 
 
66
 
private:
67
 
  void * internals;
68
 
 
69
 
};
70
 
 
71
 
#endif // !COIN_SOGUIVIEWPORTFIX_H