fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Cluster / Window / Base / OSGImageComposerBase.h
blob339023eb94ffb05d3e9ee2e5bd2996cfdad1e457
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 ImageComposer
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGIMAGECOMPOSERBASE_H_
55 #define _OSGIMAGECOMPOSERBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGClusterDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGAttachmentContainer.h" // Parent
68 #include "OSGSysFields.h" // Enabled type
70 #include "OSGImageComposerFields.h"
72 OSG_BEGIN_NAMESPACE
75 class ImageComposer;
77 //! \brief ImageComposer Base Class.
79 class OSG_CLUSTER_DLLMAPPING ImageComposerBase : 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(ImageComposer);
91 /*========================== PUBLIC =================================*/
93 public:
95 enum
97 EnabledFieldId = Inherited::NextFieldId,
98 StatisticsFieldId = EnabledFieldId + 1,
99 NextFieldId = StatisticsFieldId + 1
102 static const OSG::BitVector EnabledFieldMask =
103 (TypeTraits<BitVector>::One << EnabledFieldId);
104 static const OSG::BitVector StatisticsFieldMask =
105 (TypeTraits<BitVector>::One << StatisticsFieldId);
106 static const OSG::BitVector NextFieldMask =
107 (TypeTraits<BitVector>::One << NextFieldId);
109 typedef SFBool SFEnabledType;
110 typedef SFBool SFStatisticsType;
112 /*---------------------------------------------------------------------*/
113 /*! \name Class Get */
114 /*! \{ */
116 static FieldContainerType &getClassType (void);
117 static UInt32 getClassTypeId (void);
118 static UInt16 getClassGroupId(void);
120 /*! \} */
121 /*---------------------------------------------------------------------*/
122 /*! \name FieldContainer Get */
123 /*! \{ */
125 virtual FieldContainerType &getType (void);
126 virtual const FieldContainerType &getType (void) const;
128 virtual UInt32 getContainerSize(void) const;
130 /*! \} */
131 /*---------------------------------------------------------------------*/
132 /*! \name Field Get */
133 /*! \{ */
136 SFBool *editSFEnabled (void);
137 const SFBool *getSFEnabled (void) const;
139 SFBool *editSFStatistics (void);
140 const SFBool *getSFStatistics (void) const;
143 bool &editEnabled (void);
144 bool getEnabled (void) const;
146 bool &editStatistics (void);
147 bool getStatistics (void) const;
149 /*! \} */
150 /*---------------------------------------------------------------------*/
151 /*! \name Field Set */
152 /*! \{ */
154 void setEnabled (const bool value);
155 void setStatistics (const bool value);
157 /*! \} */
158 /*---------------------------------------------------------------------*/
159 /*! \name Ptr MField Set */
160 /*! \{ */
162 /*! \} */
163 /*---------------------------------------------------------------------*/
164 /*! \name Binary Access */
165 /*! \{ */
167 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
168 virtual void copyToBin (BinaryDataHandler &pMem,
169 ConstFieldMaskArg whichField);
170 virtual void copyFromBin(BinaryDataHandler &pMem,
171 ConstFieldMaskArg whichField);
174 /*! \} */
175 /*========================= PROTECTED ===============================*/
177 protected:
179 static TypeObject _type;
181 static void classDescInserter(TypeObject &oType);
182 static const Char8 *getClassname (void );
184 /*---------------------------------------------------------------------*/
185 /*! \name Fields */
186 /*! \{ */
188 SFBool _sfEnabled;
189 SFBool _sfStatistics;
191 /*! \} */
192 /*---------------------------------------------------------------------*/
193 /*! \name Constructors */
194 /*! \{ */
196 ImageComposerBase(void);
197 ImageComposerBase(const ImageComposerBase &source);
199 /*! \} */
200 /*---------------------------------------------------------------------*/
201 /*! \name Destructors */
202 /*! \{ */
204 virtual ~ImageComposerBase(void);
206 /*! \} */
207 /*---------------------------------------------------------------------*/
208 /*! \name onCreate */
209 /*! \{ */
212 /*! \} */
213 /*---------------------------------------------------------------------*/
214 /*! \name Generic Field Access */
215 /*! \{ */
217 GetFieldHandlePtr getHandleEnabled (void) const;
218 EditFieldHandlePtr editHandleEnabled (void);
219 GetFieldHandlePtr getHandleStatistics (void) const;
220 EditFieldHandlePtr editHandleStatistics (void);
222 /*! \} */
223 /*---------------------------------------------------------------------*/
224 /*! \name Sync */
225 /*! \{ */
227 #ifdef OSG_MT_CPTR_ASPECT
228 virtual void execSyncV( FieldContainer &oFrom,
229 ConstFieldMaskArg whichField,
230 AspectOffsetStore &oOffsets,
231 ConstFieldMaskArg syncMode ,
232 const UInt32 uiSyncInfo);
234 void execSync ( ImageComposerBase *pFrom,
235 ConstFieldMaskArg whichField,
236 AspectOffsetStore &oOffsets,
237 ConstFieldMaskArg syncMode ,
238 const UInt32 uiSyncInfo);
239 #endif
241 /*! \} */
242 /*---------------------------------------------------------------------*/
243 /*! \name Edit */
244 /*! \{ */
246 /*! \} */
247 /*---------------------------------------------------------------------*/
248 /*! \name Aspect Create */
249 /*! \{ */
251 /*! \} */
252 /*---------------------------------------------------------------------*/
253 /*! \name Edit */
254 /*! \{ */
255 /*! \} */
256 /*---------------------------------------------------------------------*/
257 /*! \name Sync */
258 /*! \{ */
260 virtual void resolveLinks(void);
262 /*! \} */
263 /*========================== PRIVATE ================================*/
265 private:
266 /*---------------------------------------------------------------------*/
268 // prohibit default functions (move to 'public' if you need one)
269 void operator =(const ImageComposerBase &source);
272 typedef ImageComposerBase *ImageComposerBaseP;
274 OSG_END_NAMESPACE
276 #endif /* _OSGIMAGECOMPOSERBASE_H_ */