changed: gcc8 base update
[opensg.git] / Source / System / State / Base / OSGShaderStorageBufferObjRefChunkBase.h
blob476c7468644073f4a9fb8da89f20ae2f6bb906c8
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 ShaderStorageBufferObjRefChunk
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGSHADERSTORAGEBUFFEROBJREFCHUNKBASE_H_
55 #define _OSGSHADERSTORAGEBUFFEROBJREFCHUNKBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGShaderStorageBufferObjBaseChunk.h" // Parent
68 #include "OSGBaseFields.h" // OglGLId type
70 #include "OSGShaderStorageBufferObjRefChunkFields.h"
72 OSG_BEGIN_NAMESPACE
75 class ShaderStorageBufferObjRefChunk;
77 //! \brief ShaderStorageBufferObjRefChunk Base Class.
79 class OSG_SYSTEM_DLLMAPPING ShaderStorageBufferObjRefChunkBase : public ShaderStorageBufferObjBaseChunk
81 public:
83 typedef ShaderStorageBufferObjBaseChunk Inherited;
84 typedef ShaderStorageBufferObjBaseChunk ParentContainer;
86 typedef Inherited::TypeObject TypeObject;
87 typedef TypeObject::InitPhase InitPhase;
89 OSG_GEN_INTERNALPTR(ShaderStorageBufferObjRefChunk);
91 /*========================== PUBLIC =================================*/
93 public:
95 enum
97 OglGLIdFieldId = Inherited::NextFieldId,
98 OsgGLIdFieldId = OglGLIdFieldId + 1,
99 NextFieldId = OsgGLIdFieldId + 1
102 static const OSG::BitVector OglGLIdFieldMask =
103 (TypeTraits<BitVector>::One << OglGLIdFieldId);
104 static const OSG::BitVector OsgGLIdFieldMask =
105 (TypeTraits<BitVector>::One << OsgGLIdFieldId);
106 static const OSG::BitVector NextFieldMask =
107 (TypeTraits<BitVector>::One << NextFieldId);
109 typedef SFGLenum SFOglGLIdType;
110 typedef SFGLenum SFOsgGLIdType;
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 SFGLenum *editSFOglGLId (void);
137 const SFGLenum *getSFOglGLId (void) const;
139 SFGLenum *editSFOsgGLId (void);
140 const SFGLenum *getSFOsgGLId (void) const;
143 GLenum &editOglGLId (void);
144 const GLenum &getOglGLId (void) const;
146 GLenum &editOsgGLId (void);
147 const GLenum &getOsgGLId (void) const;
149 /*! \} */
150 /*---------------------------------------------------------------------*/
151 /*! \name Field Set */
152 /*! \{ */
154 void setOglGLId (const GLenum &value);
155 void setOsgGLId (const GLenum &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 /*---------------------------------------------------------------------*/
176 /*! \name Construction */
177 /*! \{ */
179 static ShaderStorageBufferObjRefChunkTransitPtr create (void);
180 static ShaderStorageBufferObjRefChunk *createEmpty (void);
182 static ShaderStorageBufferObjRefChunkTransitPtr createLocal (
183 BitVector bFlags = FCLocal::All);
185 static ShaderStorageBufferObjRefChunk *createEmptyLocal(
186 BitVector bFlags = FCLocal::All);
188 static ShaderStorageBufferObjRefChunkTransitPtr createDependent (BitVector bFlags);
190 /*! \} */
191 /*---------------------------------------------------------------------*/
192 /*! \name Copy */
193 /*! \{ */
195 virtual FieldContainerTransitPtr shallowCopy (void) const;
196 virtual FieldContainerTransitPtr shallowCopyLocal(
197 BitVector bFlags = FCLocal::All) const;
198 virtual FieldContainerTransitPtr shallowCopyDependent(
199 BitVector bFlags) const;
201 /*! \} */
202 /*========================= PROTECTED ===============================*/
204 protected:
206 static TypeObject _type;
208 static void classDescInserter(TypeObject &oType);
209 static const Char8 *getClassname (void );
211 /*---------------------------------------------------------------------*/
212 /*! \name Fields */
213 /*! \{ */
215 SFGLenum _sfOglGLId;
216 SFGLenum _sfOsgGLId;
218 /*! \} */
219 /*---------------------------------------------------------------------*/
220 /*! \name Constructors */
221 /*! \{ */
223 ShaderStorageBufferObjRefChunkBase(void);
224 ShaderStorageBufferObjRefChunkBase(const ShaderStorageBufferObjRefChunkBase &source);
226 /*! \} */
227 /*---------------------------------------------------------------------*/
228 /*! \name Destructors */
229 /*! \{ */
231 virtual ~ShaderStorageBufferObjRefChunkBase(void);
233 /*! \} */
234 /*---------------------------------------------------------------------*/
235 /*! \name onCreate */
236 /*! \{ */
239 /*! \} */
240 /*---------------------------------------------------------------------*/
241 /*! \name Generic Field Access */
242 /*! \{ */
244 GetFieldHandlePtr getHandleOglGLId (void) const;
245 EditFieldHandlePtr editHandleOglGLId (void);
246 GetFieldHandlePtr getHandleOsgGLId (void) const;
247 EditFieldHandlePtr editHandleOsgGLId (void);
249 /*! \} */
250 /*---------------------------------------------------------------------*/
251 /*! \name Sync */
252 /*! \{ */
254 #ifdef OSG_MT_CPTR_ASPECT
255 virtual void execSyncV( FieldContainer &oFrom,
256 ConstFieldMaskArg whichField,
257 AspectOffsetStore &oOffsets,
258 ConstFieldMaskArg syncMode ,
259 const UInt32 uiSyncInfo);
261 void execSync ( ShaderStorageBufferObjRefChunkBase *pFrom,
262 ConstFieldMaskArg whichField,
263 AspectOffsetStore &oOffsets,
264 ConstFieldMaskArg syncMode ,
265 const UInt32 uiSyncInfo);
266 #endif
268 /*! \} */
269 /*---------------------------------------------------------------------*/
270 /*! \name Edit */
271 /*! \{ */
273 /*! \} */
274 /*---------------------------------------------------------------------*/
275 /*! \name Aspect Create */
276 /*! \{ */
278 #ifdef OSG_MT_CPTR_ASPECT
279 virtual FieldContainer *createAspectCopy(
280 const FieldContainer *pRefAspect) const;
281 #endif
283 /*! \} */
284 /*---------------------------------------------------------------------*/
285 /*! \name Edit */
286 /*! \{ */
287 /*! \} */
288 /*---------------------------------------------------------------------*/
289 /*! \name Sync */
290 /*! \{ */
292 virtual void resolveLinks(void);
294 /*! \} */
295 /*========================== PRIVATE ================================*/
297 private:
298 /*---------------------------------------------------------------------*/
300 // prohibit default functions (move to 'public' if you need one)
301 void operator =(const ShaderStorageBufferObjRefChunkBase &source);
304 typedef ShaderStorageBufferObjRefChunkBase *ShaderStorageBufferObjRefChunkBaseP;
306 OSG_END_NAMESPACE
308 #endif /* _OSGSHADERSTORAGEBUFFEROBJREFCHUNKBASE_H_ */