changed: gcc8 base update
[opensg.git] / Source / System / Window / Camera / OSGTileCameraDecorator.h
blobc56f9af2875b1c2a8360388a5c1984feeb9d0bca
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 \*---------------------------------------------------------------------------*/
40 #ifndef _OSGTILECAMERADECORATOR_H_
41 #define _OSGTILECAMERADECORATOR_H_
42 #ifdef __sgi
43 #pragma once
44 #endif
46 #include "OSGTileCameraDecoratorBase.h"
48 OSG_BEGIN_NAMESPACE
51 /*! \brief Camera Decorator class to select a part of the image, see \ref
52 PageSystemWindowCameraDecoratorsTile for a description.
53 \ingroup GrpWindowCameraObj
54 \ingroup GrpLibOSGWindow
55 \includebasedoc
58 class OSG_WINDOW_DLLMAPPING TileCameraDecorator :
59 public TileCameraDecoratorBase
61 /*========================== PRIVATE ================================*/
63 private:
65 /*========================== PUPLIC ================================*/
67 public:
69 typedef TileCameraDecoratorBase Inherited;
71 /*---------------------------------------------------------------------*/
72 /*! \name transformation */
73 /*! \{ */
75 virtual void changed(ConstFieldMaskArg whichField,
76 UInt32 origin,
77 BitVector detail);
79 /*! \} */
80 /*---------------------------------------------------------------------*/
81 /*! \name access */
82 /*! \{ */
84 void setSize (Real32 left,
85 Real32 bottom,
86 Real32 right,
87 Real32 top );
89 void setFullSize (UInt32 width,
90 UInt32 height);
92 virtual void getProjection(Matrix &result,
93 UInt32 width,
94 UInt32 height);
96 virtual void getDecoration(Matrix &result,
97 UInt32 width,
98 UInt32 height);
101 /*! \} */
102 /*---------------------------------------------------------------------*/
103 /*! \name Output */
104 /*! \{ */
106 virtual Vec2u tileGetFullSize(void) const;
107 virtual Vec4f tileGetRegion (void) const;
109 /*! \} */
110 /*---------------------------------------------------------------------*/
111 /*! \name dump */
112 /*! \{ */
114 virtual void dump( UInt32 uiIndent = 0,
115 const BitVector bvFlags = 0) const;
117 /*! \} */
118 /*========================= PROTECTED ===============================*/
120 protected:
122 /*---------------------------------------------------------------------*/
123 /*! \name Constructors */
124 /*! \{ */
126 TileCameraDecorator(void);
127 TileCameraDecorator(const TileCameraDecorator &source);
129 /*! \} */
130 /*---------------------------------------------------------------------*/
131 /*! \name Destructors */
132 /*! \{ */
134 virtual ~TileCameraDecorator(void);
136 /*! \} */
137 /*---------------------------------------------------------------------*/
138 /*! \name Init */
139 /*! \{ */
141 static void initMethod(InitPhase ePhase);
143 /*! \} */
144 /*========================= PRIVATE ===============================*/
146 private:
148 friend class FieldContainer;
149 friend class TileCameraDecoratorBase;
151 void operator =(const TileCameraDecorator &source);
154 //---------------------------------------------------------------------------
155 // Exported Types
156 //---------------------------------------------------------------------------
158 typedef TileCameraDecorator *TileCameraDecoratorP;
160 OSG_END_NAMESPACE
162 #include "OSGTileCameraDecoratorBase.inl"
163 #include "OSGTileCameraDecorator.inl"
165 #endif /* _OSGTILECAMERADECORATOR_H_ */