1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
42 ** This file is automatically generated. **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
47 ** Do not change this file, changes should be done in the derived **
48 ** class TrapezoidalShadowMapEngine
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGTRAPEZOIDALSHADOWMAPENGINEBASE_H_
55 #define _OSGTRAPEZOIDALSHADOWMAPENGINEBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGContribTrapezoidalShadowMapsDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGShaderShadowMapEngine.h" // Parent
69 #include "OSGTrapezoidalShadowMapEngineFields.h"
74 class TrapezoidalShadowMapEngine
;
76 //! \brief TrapezoidalShadowMapEngine Base Class.
78 class OSG_CONTRIBTRAPEZOIDALSHADOWMAPS_DLLMAPPING TrapezoidalShadowMapEngineBase
: public ShaderShadowMapEngine
82 typedef ShaderShadowMapEngine Inherited
;
83 typedef ShaderShadowMapEngine ParentContainer
;
85 typedef Inherited::TypeObject TypeObject
;
86 typedef TypeObject::InitPhase InitPhase
;
88 OSG_GEN_INTERNALPTR(TrapezoidalShadowMapEngine
);
90 /*========================== PUBLIC =================================*/
95 /*---------------------------------------------------------------------*/
96 /*! \name Class Get */
99 static FieldContainerType
&getClassType (void);
100 static UInt32
getClassTypeId (void);
101 static UInt16
getClassGroupId(void);
104 /*---------------------------------------------------------------------*/
105 /*! \name FieldContainer Get */
108 virtual FieldContainerType
&getType (void);
109 virtual const FieldContainerType
&getType (void) const;
111 virtual UInt32
getContainerSize(void) const;
114 /*---------------------------------------------------------------------*/
115 /*! \name Binary Access */
118 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
119 virtual void copyToBin (BinaryDataHandler
&pMem
,
120 ConstFieldMaskArg whichField
);
121 virtual void copyFromBin(BinaryDataHandler
&pMem
,
122 ConstFieldMaskArg whichField
);
126 /*---------------------------------------------------------------------*/
127 /*! \name Construction */
130 static TrapezoidalShadowMapEngineTransitPtr
create (void);
131 static TrapezoidalShadowMapEngine
*createEmpty (void);
133 static TrapezoidalShadowMapEngineTransitPtr
createLocal (
134 BitVector bFlags
= FCLocal::All
);
136 static TrapezoidalShadowMapEngine
*createEmptyLocal(
137 BitVector bFlags
= FCLocal::All
);
139 static TrapezoidalShadowMapEngineTransitPtr
createDependent (BitVector bFlags
);
142 /*---------------------------------------------------------------------*/
146 virtual FieldContainerTransitPtr
shallowCopy (void) const;
147 virtual FieldContainerTransitPtr
shallowCopyLocal(
148 BitVector bFlags
= FCLocal::All
) const;
149 virtual FieldContainerTransitPtr
shallowCopyDependent(
150 BitVector bFlags
) const;
153 /*========================= PROTECTED ===============================*/
157 static TypeObject _type
;
159 static void classDescInserter(TypeObject
&oType
);
160 static const Char8
*getClassname (void );
162 /*---------------------------------------------------------------------*/
163 /*! \name Constructors */
166 TrapezoidalShadowMapEngineBase(void);
167 TrapezoidalShadowMapEngineBase(const TrapezoidalShadowMapEngineBase
&source
);
170 /*---------------------------------------------------------------------*/
171 /*! \name Destructors */
174 virtual ~TrapezoidalShadowMapEngineBase(void);
177 /*---------------------------------------------------------------------*/
178 /*! \name onCreate */
183 /*---------------------------------------------------------------------*/
184 /*! \name Generic Field Access */
189 /*---------------------------------------------------------------------*/
193 #ifdef OSG_MT_CPTR_ASPECT
194 virtual void execSyncV( FieldContainer
&oFrom
,
195 ConstFieldMaskArg whichField
,
196 AspectOffsetStore
&oOffsets
,
197 ConstFieldMaskArg syncMode
,
198 const UInt32 uiSyncInfo
);
200 void execSync ( TrapezoidalShadowMapEngineBase
*pFrom
,
201 ConstFieldMaskArg whichField
,
202 AspectOffsetStore
&oOffsets
,
203 ConstFieldMaskArg syncMode
,
204 const UInt32 uiSyncInfo
);
208 /*---------------------------------------------------------------------*/
213 /*---------------------------------------------------------------------*/
214 /*! \name Aspect Create */
217 #ifdef OSG_MT_CPTR_ASPECT
218 virtual FieldContainer
*createAspectCopy(
219 const FieldContainer
*pRefAspect
) const;
223 /*---------------------------------------------------------------------*/
227 /*---------------------------------------------------------------------*/
231 virtual void resolveLinks(void);
234 /*========================== PRIVATE ================================*/
237 /*---------------------------------------------------------------------*/
239 // prohibit default functions (move to 'public' if you need one)
240 void operator =(const TrapezoidalShadowMapEngineBase
&source
);
243 typedef TrapezoidalShadowMapEngineBase
*TrapezoidalShadowMapEngineBaseP
;
247 #endif /* _OSGTRAPEZOIDALSHADOWMAPENGINEBASE_H_ */