1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
42 ** This file is automatically generated. **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
47 ** Do not change this file, changes should be done in the derived **
48 ** class UniformBufferObjBaseChunk
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGUNIFORMBUFFEROBJBASECHUNKBASE_H_
55 #define _OSGUNIFORMBUFFEROBJBASECHUNKBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGStateChunk.h" // Parent
69 #include "OSGUniformBufferObjBaseChunkFields.h"
74 class UniformBufferObjBaseChunk
;
76 //! \brief UniformBufferObjBaseChunk Base Class.
78 class OSG_SYSTEM_DLLMAPPING UniformBufferObjBaseChunkBase
: public StateChunk
82 typedef StateChunk Inherited
;
83 typedef StateChunk ParentContainer
;
85 typedef Inherited::TypeObject TypeObject
;
86 typedef TypeObject::InitPhase InitPhase
;
88 OSG_GEN_INTERNALPTR(UniformBufferObjBaseChunk
);
90 /*========================== PUBLIC =================================*/
95 /*---------------------------------------------------------------------*/
96 /*! \name Class Get */
99 static FieldContainerType
&getClassType (void);
100 static UInt32
getClassTypeId (void);
101 static UInt16
getClassGroupId(void);
104 /*---------------------------------------------------------------------*/
105 /*! \name FieldContainer Get */
108 virtual FieldContainerType
&getType (void);
109 virtual const FieldContainerType
&getType (void) const;
111 virtual UInt32
getContainerSize(void) const;
114 /*---------------------------------------------------------------------*/
115 /*! \name Binary Access */
118 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
119 virtual void copyToBin (BinaryDataHandler
&pMem
,
120 ConstFieldMaskArg whichField
);
121 virtual void copyFromBin(BinaryDataHandler
&pMem
,
122 ConstFieldMaskArg whichField
);
126 /*========================= PROTECTED ===============================*/
130 static TypeObject _type
;
132 static void classDescInserter(TypeObject
&oType
);
133 static const Char8
*getClassname (void );
135 /*---------------------------------------------------------------------*/
136 /*! \name Constructors */
139 UniformBufferObjBaseChunkBase(void);
140 UniformBufferObjBaseChunkBase(const UniformBufferObjBaseChunkBase
&source
);
143 /*---------------------------------------------------------------------*/
144 /*! \name Destructors */
147 virtual ~UniformBufferObjBaseChunkBase(void);
150 /*---------------------------------------------------------------------*/
151 /*! \name onCreate */
156 /*---------------------------------------------------------------------*/
157 /*! \name Generic Field Access */
162 /*---------------------------------------------------------------------*/
166 #ifdef OSG_MT_CPTR_ASPECT
167 virtual void execSyncV( FieldContainer
&oFrom
,
168 ConstFieldMaskArg whichField
,
169 AspectOffsetStore
&oOffsets
,
170 ConstFieldMaskArg syncMode
,
171 const UInt32 uiSyncInfo
);
173 void execSync ( UniformBufferObjBaseChunkBase
*pFrom
,
174 ConstFieldMaskArg whichField
,
175 AspectOffsetStore
&oOffsets
,
176 ConstFieldMaskArg syncMode
,
177 const UInt32 uiSyncInfo
);
181 /*---------------------------------------------------------------------*/
186 /*---------------------------------------------------------------------*/
187 /*! \name Aspect Create */
191 /*---------------------------------------------------------------------*/
195 /*---------------------------------------------------------------------*/
199 virtual void resolveLinks(void);
202 /*========================== PRIVATE ================================*/
205 /*---------------------------------------------------------------------*/
207 // prohibit default functions (move to 'public' if you need one)
208 void operator =(const UniformBufferObjBaseChunkBase
&source
);
211 typedef UniformBufferObjBaseChunkBase
*UniformBufferObjBaseChunkBaseP
;
215 #endif /* _OSGUNIFORMBUFFEROBJBASECHUNKBASE_H_ */