1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
40 #ifndef _OSGTILECAMERADECORATOR_H_
41 #define _OSGTILECAMERADECORATOR_H_
46 #include "OSGTileCameraDecoratorBase.h"
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
58 class OSG_WINDOW_DLLMAPPING TileCameraDecorator
:
59 public TileCameraDecoratorBase
61 /*========================== PRIVATE ================================*/
65 /*========================== PUPLIC ================================*/
69 typedef TileCameraDecoratorBase Inherited
;
71 /*---------------------------------------------------------------------*/
72 /*! \name transformation */
75 virtual void changed(ConstFieldMaskArg whichField
,
80 /*---------------------------------------------------------------------*/
84 void setSize (Real32 left
,
89 void setFullSize (UInt32 width
,
92 virtual void getProjection(Matrix
&result
,
96 virtual void getDecoration(Matrix
&result
,
102 /*---------------------------------------------------------------------*/
106 virtual Vec2u
tileGetFullSize(void) const;
107 virtual Vec4f
tileGetRegion (void) const;
110 /*---------------------------------------------------------------------*/
114 virtual void dump( UInt32 uiIndent
= 0,
115 const BitVector bvFlags
= 0) const;
118 /*========================= PROTECTED ===============================*/
122 /*---------------------------------------------------------------------*/
123 /*! \name Constructors */
126 TileCameraDecorator(void);
127 TileCameraDecorator(const TileCameraDecorator
&source
);
130 /*---------------------------------------------------------------------*/
131 /*! \name Destructors */
134 virtual ~TileCameraDecorator(void);
137 /*---------------------------------------------------------------------*/
141 static void initMethod(InitPhase ePhase
);
144 /*========================= PRIVATE ===============================*/
148 friend class FieldContainer
;
149 friend class TileCameraDecoratorBase
;
151 void operator =(const TileCameraDecorator
&source
);
154 //---------------------------------------------------------------------------
156 //---------------------------------------------------------------------------
158 typedef TileCameraDecorator
*TileCameraDecoratorP
;
162 #include "OSGTileCameraDecoratorBase.inl"
163 #include "OSGTileCameraDecorator.inl"
165 #endif /* _OSGTILECAMERADECORATOR_H_ */