changed: gcc8 base update
[opensg.git] / Source / System / Window / Camera / OSGProjectionCameraDecorator.h
bloba97dbe29a359f989b8a18720d4fe8884fb748100
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGPROJECTIONCAMERADECORATOR_H_
40 #define _OSGPROJECTIONCAMERADECORATOR_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGProjectionCameraDecoratorBase.h"
47 OSG_BEGIN_NAMESPACE
49 /*! \brief Camera Decorator for head-tracked stereo setups, see \ref
50 PageSystemWindowCameraDecorators for a description.
51 \ingroup GrpWindowCameraObj
52 \ingroup GrpLibOSGWindow
53 \includebasedoc
56 class OSG_WINDOW_DLLMAPPING ProjectionCameraDecorator :
57 public ProjectionCameraDecoratorBase
59 /*========================== PUBLIC =================================*/
61 public:
63 typedef ProjectionCameraDecoratorBase Inherited;
65 /*---------------------------------------------------------------------*/
66 /*! \name Sync */
67 /*! \{ */
69 virtual void changed(ConstFieldMaskArg whichField,
70 UInt32 origin,
71 BitVector detail);
73 /*! \} */
74 /*---------------------------------------------------------------------*/
75 /*! \name Output */
76 /*! \{ */
78 virtual void dump( UInt32 uiIndent = 0,
79 const BitVector bvFlags = 0) const;
81 /*! \} */
82 /*---------------------------------------------------------------------*/
83 /*! \name access */
84 /*! \{ */
86 virtual void getViewing (Matrix &result,
87 UInt32 width,
88 UInt32 height);
90 virtual void getProjection (Matrix &result,
91 UInt32 width,
92 UInt32 height);
94 virtual void getProjectionTranslation(Matrix &result,
95 UInt32 width,
96 UInt32 height);
98 /*! \} */
99 /*========================= PROTECTED ===============================*/
101 protected:
103 // Variables should all be in ProjectionCameraDecoratorBase.
105 /*---------------------------------------------------------------------*/
106 /*! \name Constructors */
107 /*! \{ */
109 ProjectionCameraDecorator(void);
110 ProjectionCameraDecorator(const ProjectionCameraDecorator &source);
112 /*! \} */
113 /*---------------------------------------------------------------------*/
114 /*! \name Destructors */
115 /*! \{ */
117 virtual ~ProjectionCameraDecorator(void);
119 /*! \} */
120 /*---------------------------------------------------------------------*/
121 /*! \name Init */
122 /*! \{ */
124 static void initMethod(InitPhase ePhase);
126 /*! \} */
127 /*---------------------------------------------------------------------*/
128 /*! \name internal */
129 /*! \{ */
131 void updateData(void);
133 /*! \} */
134 /*========================== PRIVATE ================================*/
136 private:
138 friend class FieldContainer;
139 friend class ProjectionCameraDecoratorBase;
141 // prohibit default functions (move to 'public' if you need one)
142 void operator =(const ProjectionCameraDecorator &source);
145 typedef ProjectionCameraDecorator *ProjectionCameraDecoratorP;
147 OSG_END_NAMESPACE
149 #include "OSGProjectionCameraDecoratorBase.inl"
150 #include "OSGProjectionCameraDecorator.inl"
152 #endif /* _OSGPROJECTIONCAMERADECORATOR_H_ */