fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Window / Background / OSGDepthClearBackgroundBase.h
blob3bdb66a8dae09bf7928601981cc07c010a8df009
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 /*****************************************************************************\
40 *****************************************************************************
41 ** **
42 ** This file is automatically generated. **
43 ** **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
46 ** **
47 ** Do not change this file, changes should be done in the derived **
48 ** class DepthClearBackground
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGDEPTHCLEARBACKGROUNDBASE_H_
55 #define _OSGDEPTHCLEARBACKGROUNDBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGWindowDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGBackground.h" // Parent
69 #include "OSGDepthClearBackgroundFields.h"
71 OSG_BEGIN_NAMESPACE
74 class DepthClearBackground;
76 //! \brief DepthClearBackground Base Class.
78 class OSG_WINDOW_DLLMAPPING DepthClearBackgroundBase : public Background
80 public:
82 typedef Background Inherited;
83 typedef Background ParentContainer;
85 typedef Inherited::TypeObject TypeObject;
86 typedef TypeObject::InitPhase InitPhase;
88 OSG_GEN_INTERNALPTR(DepthClearBackground);
90 /*========================== PUBLIC =================================*/
92 public:
95 /*---------------------------------------------------------------------*/
96 /*! \name Class Get */
97 /*! \{ */
99 static FieldContainerType &getClassType (void);
100 static UInt32 getClassTypeId (void);
101 static UInt16 getClassGroupId(void);
103 /*! \} */
104 /*---------------------------------------------------------------------*/
105 /*! \name FieldContainer Get */
106 /*! \{ */
108 virtual FieldContainerType &getType (void);
109 virtual const FieldContainerType &getType (void) const;
111 virtual UInt32 getContainerSize(void) const;
113 /*! \} */
114 /*---------------------------------------------------------------------*/
115 /*! \name Binary Access */
116 /*! \{ */
118 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
119 virtual void copyToBin (BinaryDataHandler &pMem,
120 ConstFieldMaskArg whichField);
121 virtual void copyFromBin(BinaryDataHandler &pMem,
122 ConstFieldMaskArg whichField);
125 /*! \} */
126 /*---------------------------------------------------------------------*/
127 /*! \name Construction */
128 /*! \{ */
130 static DepthClearBackgroundTransitPtr create (void);
131 static DepthClearBackground *createEmpty (void);
133 static DepthClearBackgroundTransitPtr createLocal (
134 BitVector bFlags = FCLocal::All);
136 static DepthClearBackground *createEmptyLocal(
137 BitVector bFlags = FCLocal::All);
139 static DepthClearBackgroundTransitPtr createDependent (BitVector bFlags);
141 /*! \} */
142 /*---------------------------------------------------------------------*/
143 /*! \name Copy */
144 /*! \{ */
146 virtual FieldContainerTransitPtr shallowCopy (void) const;
147 virtual FieldContainerTransitPtr shallowCopyLocal(
148 BitVector bFlags = FCLocal::All) const;
149 virtual FieldContainerTransitPtr shallowCopyDependent(
150 BitVector bFlags) const;
152 /*! \} */
153 /*========================= PROTECTED ===============================*/
155 protected:
157 static TypeObject _type;
159 static void classDescInserter(TypeObject &oType);
160 static const Char8 *getClassname (void );
162 /*---------------------------------------------------------------------*/
163 /*! \name Constructors */
164 /*! \{ */
166 DepthClearBackgroundBase(void);
167 DepthClearBackgroundBase(const DepthClearBackgroundBase &source);
169 /*! \} */
170 /*---------------------------------------------------------------------*/
171 /*! \name Destructors */
172 /*! \{ */
174 virtual ~DepthClearBackgroundBase(void);
176 /*! \} */
177 /*---------------------------------------------------------------------*/
178 /*! \name onCreate */
179 /*! \{ */
182 /*! \} */
183 /*---------------------------------------------------------------------*/
184 /*! \name Generic Field Access */
185 /*! \{ */
188 /*! \} */
189 /*---------------------------------------------------------------------*/
190 /*! \name Sync */
191 /*! \{ */
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 ( DepthClearBackgroundBase *pFrom,
201 ConstFieldMaskArg whichField,
202 AspectOffsetStore &oOffsets,
203 ConstFieldMaskArg syncMode ,
204 const UInt32 uiSyncInfo);
205 #endif
207 /*! \} */
208 /*---------------------------------------------------------------------*/
209 /*! \name Edit */
210 /*! \{ */
212 /*! \} */
213 /*---------------------------------------------------------------------*/
214 /*! \name Aspect Create */
215 /*! \{ */
217 #ifdef OSG_MT_CPTR_ASPECT
218 virtual FieldContainer *createAspectCopy(
219 const FieldContainer *pRefAspect) const;
220 #endif
222 /*! \} */
223 /*---------------------------------------------------------------------*/
224 /*! \name Edit */
225 /*! \{ */
226 /*! \} */
227 /*---------------------------------------------------------------------*/
228 /*! \name Sync */
229 /*! \{ */
231 virtual void resolveLinks(void);
233 /*! \} */
234 /*========================== PRIVATE ================================*/
236 private:
237 /*---------------------------------------------------------------------*/
239 // prohibit default functions (move to 'public' if you need one)
240 void operator =(const DepthClearBackgroundBase &source);
243 typedef DepthClearBackgroundBase *DepthClearBackgroundBaseP;
245 OSG_END_NAMESPACE
247 #endif /* _OSGDEPTHCLEARBACKGROUNDBASE_H_ */