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 ShaderStorageBufferObjBaseChunk!
50 *****************************************************************************
51 \*****************************************************************************/
57 #pragma warning(disable: 4355) // turn off 'this' : used in base member initializer list warning
58 #pragma warning(disable: 4290) // disable exception specification warning
61 #include "OSGConfig.h"
66 #include "OSGShaderStorageBufferObjBaseChunkBase.h"
67 #include "OSGShaderStorageBufferObjBaseChunk.h"
69 #include <boost/bind.hpp>
73 /***************************************************************************\
75 \***************************************************************************/
77 /*! \class OSG::ShaderStorageBufferObjBaseChunk
78 Base class for all ShaderStorageBufferObj chunk classes.
81 /***************************************************************************\
82 * Field Documentation *
83 \***************************************************************************/
86 /***************************************************************************\
87 * FieldType/FieldTrait Instantiation *
88 \***************************************************************************/
90 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
91 PointerType FieldTraits
<ShaderStorageBufferObjBaseChunk
*, nsOSG
>::_type(
92 "ShaderStorageBufferObjBaseChunkPtr",
94 ShaderStorageBufferObjBaseChunk::getClassType(),
98 OSG_FIELDTRAITS_GETTYPE_NS(ShaderStorageBufferObjBaseChunk
*, nsOSG
)
100 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
101 ShaderStorageBufferObjBaseChunk
*,
104 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
105 ShaderStorageBufferObjBaseChunk
*,
108 /***************************************************************************\
109 * Field Description *
110 \***************************************************************************/
112 void ShaderStorageBufferObjBaseChunkBase::classDescInserter(TypeObject
&oType
)
117 ShaderStorageBufferObjBaseChunkBase::TypeObject
ShaderStorageBufferObjBaseChunkBase::_type(
118 ShaderStorageBufferObjBaseChunkBase::getClassname(),
119 Inherited::getClassname(),
123 reinterpret_cast<InitContainerF
>(&ShaderStorageBufferObjBaseChunk::initMethod
),
124 reinterpret_cast<ExitContainerF
>(&ShaderStorageBufferObjBaseChunk::exitMethod
),
125 reinterpret_cast<InitalInsertDescFunc
>(
126 reinterpret_cast<void *>(&ShaderStorageBufferObjBaseChunk::classDescInserter
)),
129 "<?xml version=\"1.0\"?>\n"
132 " name=\"ShaderStorageBufferObjBaseChunk\"\n"
133 " parent=\"StateChunk\"\n"
134 " library=\"System\"\n"
135 " pointerfieldtypes=\"both\"\n"
136 " structure=\"abstract\"\n"
137 " systemcomponent=\"true\"\n"
138 " parentsystemcomponent=\"true\"\n"
139 " decoratable=\"false\"\n"
140 " useLocalIncludes=\"false\"\n"
141 " docGroupBase=\"GrpSystemState\"\n"
144 " Base class for all ShaderStorageBufferObj chunk classes.\n"
145 "</FieldContainer>\n",
146 "Base class for all ShaderStorageBufferObj chunk classes.\n"
149 /*------------------------------ get -----------------------------------*/
151 FieldContainerType
&ShaderStorageBufferObjBaseChunkBase::getType(void)
156 const FieldContainerType
&ShaderStorageBufferObjBaseChunkBase::getType(void) const
161 UInt32
ShaderStorageBufferObjBaseChunkBase::getContainerSize(void) const
163 return sizeof(ShaderStorageBufferObjBaseChunk
);
166 /*------------------------- decorator get ------------------------------*/
173 /*------------------------------ access -----------------------------------*/
175 SizeT
ShaderStorageBufferObjBaseChunkBase::getBinSize(ConstFieldMaskArg whichField
)
177 SizeT returnValue
= Inherited::getBinSize(whichField
);
183 void ShaderStorageBufferObjBaseChunkBase::copyToBin(BinaryDataHandler
&pMem
,
184 ConstFieldMaskArg whichField
)
186 Inherited::copyToBin(pMem
, whichField
);
190 void ShaderStorageBufferObjBaseChunkBase::copyFromBin(BinaryDataHandler
&pMem
,
191 ConstFieldMaskArg whichField
)
193 Inherited::copyFromBin(pMem
, whichField
);
200 /*------------------------- constructors ----------------------------------*/
202 ShaderStorageBufferObjBaseChunkBase::ShaderStorageBufferObjBaseChunkBase(void) :
207 ShaderStorageBufferObjBaseChunkBase::ShaderStorageBufferObjBaseChunkBase(const ShaderStorageBufferObjBaseChunkBase
&source
) :
213 /*-------------------------- destructors ----------------------------------*/
215 ShaderStorageBufferObjBaseChunkBase::~ShaderStorageBufferObjBaseChunkBase(void)
221 #ifdef OSG_MT_CPTR_ASPECT
222 void ShaderStorageBufferObjBaseChunkBase::execSyncV( FieldContainer
&oFrom
,
223 ConstFieldMaskArg whichField
,
224 AspectOffsetStore
&oOffsets
,
225 ConstFieldMaskArg syncMode
,
226 const UInt32 uiSyncInfo
)
228 ShaderStorageBufferObjBaseChunk
*pThis
= static_cast<ShaderStorageBufferObjBaseChunk
*>(this);
230 pThis
->execSync(static_cast<ShaderStorageBufferObjBaseChunk
*>(&oFrom
),
240 void ShaderStorageBufferObjBaseChunkBase::resolveLinks(void)
242 Inherited::resolveLinks();