changed: gcc8 base update
[opensg.git] / Source / System / State / Auxiliary / OSGTextureSelectChunkBase.h
blob77021211d8203f3f1e11c12aef9b379d91ef35a0
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 TextureSelectChunk
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGTEXTURESELECTCHUNKBASE_H_
55 #define _OSGTEXTURESELECTCHUNKBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGStateDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGTextureBaseChunk.h" // Parent
68 #include "OSGSysFields.h" // Choice type
69 #include "OSGTextureBaseChunkFields.h" // Textures type
71 #include "OSGTextureSelectChunkFields.h"
73 OSG_BEGIN_NAMESPACE
76 class TextureSelectChunk;
78 //! \brief TextureSelectChunk Base Class.
80 class OSG_STATE_DLLMAPPING TextureSelectChunkBase : public TextureBaseChunk
82 public:
84 typedef TextureBaseChunk Inherited;
85 typedef TextureBaseChunk ParentContainer;
87 typedef Inherited::TypeObject TypeObject;
88 typedef TypeObject::InitPhase InitPhase;
90 OSG_GEN_INTERNALPTR(TextureSelectChunk);
92 /*========================== PUBLIC =================================*/
94 public:
96 enum
98 ChoiceFieldId = Inherited::NextFieldId,
99 TexturesFieldId = ChoiceFieldId + 1,
100 NextFieldId = TexturesFieldId + 1
103 static const OSG::BitVector ChoiceFieldMask =
104 (TypeTraits<BitVector>::One << ChoiceFieldId);
105 static const OSG::BitVector TexturesFieldMask =
106 (TypeTraits<BitVector>::One << TexturesFieldId);
107 static const OSG::BitVector NextFieldMask =
108 (TypeTraits<BitVector>::One << NextFieldId);
110 typedef SFUInt32 SFChoiceType;
111 typedef MFUnrecTextureBaseChunkPtr MFTexturesType;
113 /*---------------------------------------------------------------------*/
114 /*! \name Class Get */
115 /*! \{ */
117 static FieldContainerType &getClassType (void);
118 static UInt32 getClassTypeId (void);
119 static UInt16 getClassGroupId(void);
121 /*! \} */
122 /*---------------------------------------------------------------------*/
123 /*! \name FieldContainer Get */
124 /*! \{ */
126 virtual FieldContainerType &getType (void);
127 virtual const FieldContainerType &getType (void) const;
129 virtual UInt32 getContainerSize(void) const;
131 /*! \} */
132 /*---------------------------------------------------------------------*/
133 /*! \name Field Get */
134 /*! \{ */
137 SFUInt32 *editSFChoice (void);
138 const SFUInt32 *getSFChoice (void) const;
139 const MFUnrecTextureBaseChunkPtr *getMFTextures (void) const;
140 MFUnrecTextureBaseChunkPtr *editMFTextures (void);
143 UInt32 &editChoice (void);
144 UInt32 getChoice (void) const;
146 TextureBaseChunk * getTextures (const UInt32 index) const;
148 /*! \} */
149 /*---------------------------------------------------------------------*/
150 /*! \name Field Set */
151 /*! \{ */
153 void setChoice (const UInt32 value);
155 /*! \} */
156 /*---------------------------------------------------------------------*/
157 /*! \name Ptr Field Set */
158 /*! \{ */
160 /*! \} */
161 /*---------------------------------------------------------------------*/
162 /*! \name Ptr MField Set */
163 /*! \{ */
165 void pushToTextures (TextureBaseChunk * const value );
166 void assignTextures (const MFUnrecTextureBaseChunkPtr &value);
167 void removeFromTextures (UInt32 uiIndex );
168 void removeObjFromTextures(TextureBaseChunk * const value );
169 void clearTextures (void );
171 /*! \} */
172 /*---------------------------------------------------------------------*/
173 /*! \name Binary Access */
174 /*! \{ */
176 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
177 virtual void copyToBin (BinaryDataHandler &pMem,
178 ConstFieldMaskArg whichField);
179 virtual void copyFromBin(BinaryDataHandler &pMem,
180 ConstFieldMaskArg whichField);
183 /*! \} */
184 /*---------------------------------------------------------------------*/
185 /*! \name Construction */
186 /*! \{ */
188 static TextureSelectChunkTransitPtr create (void);
189 static TextureSelectChunk *createEmpty (void);
191 static TextureSelectChunkTransitPtr createLocal (
192 BitVector bFlags = FCLocal::All);
194 static TextureSelectChunk *createEmptyLocal(
195 BitVector bFlags = FCLocal::All);
197 static TextureSelectChunkTransitPtr createDependent (BitVector bFlags);
199 /*! \} */
200 /*---------------------------------------------------------------------*/
201 /*! \name Copy */
202 /*! \{ */
204 virtual FieldContainerTransitPtr shallowCopy (void) const;
205 virtual FieldContainerTransitPtr shallowCopyLocal(
206 BitVector bFlags = FCLocal::All) const;
207 virtual FieldContainerTransitPtr shallowCopyDependent(
208 BitVector bFlags) const;
210 /*! \} */
211 /*========================= PROTECTED ===============================*/
213 protected:
215 static TypeObject _type;
217 static void classDescInserter(TypeObject &oType);
218 static const Char8 *getClassname (void );
220 /*---------------------------------------------------------------------*/
221 /*! \name Fields */
222 /*! \{ */
224 SFUInt32 _sfChoice;
225 MFUnrecTextureBaseChunkPtr _mfTextures;
227 /*! \} */
228 /*---------------------------------------------------------------------*/
229 /*! \name Constructors */
230 /*! \{ */
232 TextureSelectChunkBase(void);
233 TextureSelectChunkBase(const TextureSelectChunkBase &source);
235 /*! \} */
236 /*---------------------------------------------------------------------*/
237 /*! \name Destructors */
238 /*! \{ */
240 virtual ~TextureSelectChunkBase(void);
242 /*! \} */
243 /*---------------------------------------------------------------------*/
244 /*! \name onCreate */
245 /*! \{ */
247 void onCreate(const TextureSelectChunk *source = NULL);
249 /*! \} */
250 /*---------------------------------------------------------------------*/
251 /*! \name Generic Field Access */
252 /*! \{ */
254 GetFieldHandlePtr getHandleChoice (void) const;
255 EditFieldHandlePtr editHandleChoice (void);
256 GetFieldHandlePtr getHandleTextures (void) const;
257 EditFieldHandlePtr editHandleTextures (void);
259 /*! \} */
260 /*---------------------------------------------------------------------*/
261 /*! \name Sync */
262 /*! \{ */
264 #ifdef OSG_MT_CPTR_ASPECT
265 virtual void execSyncV( FieldContainer &oFrom,
266 ConstFieldMaskArg whichField,
267 AspectOffsetStore &oOffsets,
268 ConstFieldMaskArg syncMode ,
269 const UInt32 uiSyncInfo);
271 void execSync ( TextureSelectChunkBase *pFrom,
272 ConstFieldMaskArg whichField,
273 AspectOffsetStore &oOffsets,
274 ConstFieldMaskArg syncMode ,
275 const UInt32 uiSyncInfo);
276 #endif
278 /*! \} */
279 /*---------------------------------------------------------------------*/
280 /*! \name Edit */
281 /*! \{ */
283 /*! \} */
284 /*---------------------------------------------------------------------*/
285 /*! \name Aspect Create */
286 /*! \{ */
288 #ifdef OSG_MT_CPTR_ASPECT
289 virtual FieldContainer *createAspectCopy(
290 const FieldContainer *pRefAspect) const;
291 #endif
293 /*! \} */
294 /*---------------------------------------------------------------------*/
295 /*! \name Edit */
296 /*! \{ */
297 /*! \} */
298 /*---------------------------------------------------------------------*/
299 /*! \name Sync */
300 /*! \{ */
302 virtual void resolveLinks(void);
304 /*! \} */
305 /*========================== PRIVATE ================================*/
307 private:
308 /*---------------------------------------------------------------------*/
310 // prohibit default functions (move to 'public' if you need one)
311 void operator =(const TextureSelectChunkBase &source);
314 typedef TextureSelectChunkBase *TextureSelectChunkBaseP;
316 OSG_END_NAMESPACE
318 #endif /* _OSGTEXTURESELECTCHUNKBASE_H_ */