fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Window / Base / OSGForegroundBase.h
blob23b595b71a250edae6ec61fc33ed0d55d64372b4
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 Foreground
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGFOREGROUNDBASE_H_
55 #define _OSGFOREGROUNDBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGAttachmentContainer.h" // Parent
68 #include "OSGSysFields.h" // Active type
70 #include "OSGForegroundFields.h"
72 OSG_BEGIN_NAMESPACE
75 class Foreground;
77 //! \brief Foreground Base Class.
79 class OSG_SYSTEM_DLLMAPPING ForegroundBase : public AttachmentContainer
81 public:
83 typedef AttachmentContainer Inherited;
84 typedef AttachmentContainer ParentContainer;
86 typedef Inherited::TypeObject TypeObject;
87 typedef TypeObject::InitPhase InitPhase;
89 OSG_GEN_INTERNALPTR(Foreground);
91 /*========================== PUBLIC =================================*/
93 public:
95 enum
97 ActiveFieldId = Inherited::NextFieldId,
98 NextFieldId = ActiveFieldId + 1
101 static const OSG::BitVector ActiveFieldMask =
102 (TypeTraits<BitVector>::One << ActiveFieldId);
103 static const OSG::BitVector NextFieldMask =
104 (TypeTraits<BitVector>::One << NextFieldId);
106 typedef SFBool SFActiveType;
108 /*---------------------------------------------------------------------*/
109 /*! \name Class Get */
110 /*! \{ */
112 static FieldContainerType &getClassType (void);
113 static UInt32 getClassTypeId (void);
114 static UInt16 getClassGroupId(void);
116 /*! \} */
117 /*---------------------------------------------------------------------*/
118 /*! \name FieldContainer Get */
119 /*! \{ */
121 virtual FieldContainerType &getType (void);
122 virtual const FieldContainerType &getType (void) const;
124 virtual UInt32 getContainerSize(void) const;
126 /*! \} */
127 /*---------------------------------------------------------------------*/
128 /*! \name Field Get */
129 /*! \{ */
132 SFBool *editSFActive (void);
133 const SFBool *getSFActive (void) const;
136 bool &editActive (void);
137 bool getActive (void) const;
139 /*! \} */
140 /*---------------------------------------------------------------------*/
141 /*! \name Field Set */
142 /*! \{ */
144 void setActive (const bool value);
146 /*! \} */
147 /*---------------------------------------------------------------------*/
148 /*! \name Ptr MField Set */
149 /*! \{ */
151 /*! \} */
152 /*---------------------------------------------------------------------*/
153 /*! \name Binary Access */
154 /*! \{ */
156 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
157 virtual void copyToBin (BinaryDataHandler &pMem,
158 ConstFieldMaskArg whichField);
159 virtual void copyFromBin(BinaryDataHandler &pMem,
160 ConstFieldMaskArg whichField);
163 /*! \} */
164 /*========================= PROTECTED ===============================*/
166 protected:
168 static TypeObject _type;
170 static void classDescInserter(TypeObject &oType);
171 static const Char8 *getClassname (void );
173 /*---------------------------------------------------------------------*/
174 /*! \name Fields */
175 /*! \{ */
177 SFBool _sfActive;
179 /*! \} */
180 /*---------------------------------------------------------------------*/
181 /*! \name Constructors */
182 /*! \{ */
184 ForegroundBase(void);
185 ForegroundBase(const ForegroundBase &source);
187 /*! \} */
188 /*---------------------------------------------------------------------*/
189 /*! \name Destructors */
190 /*! \{ */
192 virtual ~ForegroundBase(void);
194 /*! \} */
195 /*---------------------------------------------------------------------*/
196 /*! \name onCreate */
197 /*! \{ */
200 /*! \} */
201 /*---------------------------------------------------------------------*/
202 /*! \name Generic Field Access */
203 /*! \{ */
205 GetFieldHandlePtr getHandleActive (void) const;
206 EditFieldHandlePtr editHandleActive (void);
208 /*! \} */
209 /*---------------------------------------------------------------------*/
210 /*! \name Sync */
211 /*! \{ */
213 #ifdef OSG_MT_CPTR_ASPECT
214 virtual void execSyncV( FieldContainer &oFrom,
215 ConstFieldMaskArg whichField,
216 AspectOffsetStore &oOffsets,
217 ConstFieldMaskArg syncMode ,
218 const UInt32 uiSyncInfo);
220 void execSync ( ForegroundBase *pFrom,
221 ConstFieldMaskArg whichField,
222 AspectOffsetStore &oOffsets,
223 ConstFieldMaskArg syncMode ,
224 const UInt32 uiSyncInfo);
225 #endif
227 /*! \} */
228 /*---------------------------------------------------------------------*/
229 /*! \name Edit */
230 /*! \{ */
232 /*! \} */
233 /*---------------------------------------------------------------------*/
234 /*! \name Aspect Create */
235 /*! \{ */
237 /*! \} */
238 /*---------------------------------------------------------------------*/
239 /*! \name Edit */
240 /*! \{ */
241 /*! \} */
242 /*---------------------------------------------------------------------*/
243 /*! \name Sync */
244 /*! \{ */
246 virtual void resolveLinks(void);
248 /*! \} */
249 /*========================== PRIVATE ================================*/
251 private:
252 /*---------------------------------------------------------------------*/
254 // prohibit default functions (move to 'public' if you need one)
255 void operator =(const ForegroundBase &source);
258 typedef ForegroundBase *ForegroundBaseP;
260 OSG_END_NAMESPACE
262 #endif /* _OSGFOREGROUNDBASE_H_ */