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 **
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 "OSGRootGroupBase.h"
67 #include "OSGRootGroup.h"
69 #include <boost/bind.hpp>
73 /***************************************************************************\
75 \***************************************************************************/
77 /*! \class OSG::RootGroup
78 A group that stores its children not in the parent node but in a
79 sfNodePtr locally with the core.
82 /***************************************************************************\
83 * Field Documentation *
84 \***************************************************************************/
87 /***************************************************************************\
88 * FieldType/FieldTrait Instantiation *
89 \***************************************************************************/
91 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
92 PointerType FieldTraits
<RootGroup
*, nsOSG
>::_type(
95 RootGroup::getClassType(),
99 OSG_FIELDTRAITS_GETTYPE_NS(RootGroup
*, nsOSG
)
101 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
105 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
109 /***************************************************************************\
110 * Field Description *
111 \***************************************************************************/
113 void RootGroupBase::classDescInserter(TypeObject
&oType
)
118 RootGroupBase::TypeObject
RootGroupBase::_type(
119 RootGroupBase::getClassname(),
120 Inherited::getClassname(),
124 reinterpret_cast<InitContainerF
>(&RootGroup::initMethod
),
125 reinterpret_cast<ExitContainerF
>(&RootGroup::exitMethod
),
126 reinterpret_cast<InitalInsertDescFunc
>(
127 reinterpret_cast<void *>(&RootGroup::classDescInserter
)),
130 "<?xml version=\"1.0\" ?>\n"
133 " name=\"RootGroup\"\n"
134 " parent=\"NodeCore\"\n"
135 " library=\"System\"\n"
136 " structure=\"abstract\"\n"
137 " pointerfieldtypes=\"both\"\n"
138 " systemcomponent=\"true\"\n"
139 " parentsystemcomponent=\"true\"\n"
140 " isNodeCore=\"true\"\n"
141 " docGroupBase=\"GrpSystemNodeCoreGroups\"\n"
144 " A group that stores its children not in the parent node but in a \n"
145 " sfNodePtr locally with the core.\n"
146 "</FieldContainer>\n",
147 "A group that stores its children not in the parent node but in a \n"
148 "sfNodePtr locally with the core.\n"
151 /*------------------------------ get -----------------------------------*/
153 FieldContainerType
&RootGroupBase::getType(void)
158 const FieldContainerType
&RootGroupBase::getType(void) const
163 UInt32
RootGroupBase::getContainerSize(void) const
165 return sizeof(RootGroup
);
168 /*------------------------- decorator get ------------------------------*/
175 /*------------------------------ access -----------------------------------*/
177 SizeT
RootGroupBase::getBinSize(ConstFieldMaskArg whichField
)
179 SizeT returnValue
= Inherited::getBinSize(whichField
);
185 void RootGroupBase::copyToBin(BinaryDataHandler
&pMem
,
186 ConstFieldMaskArg whichField
)
188 Inherited::copyToBin(pMem
, whichField
);
192 void RootGroupBase::copyFromBin(BinaryDataHandler
&pMem
,
193 ConstFieldMaskArg whichField
)
195 Inherited::copyFromBin(pMem
, whichField
);
202 /*------------------------- constructors ----------------------------------*/
204 RootGroupBase::RootGroupBase(void) :
209 RootGroupBase::RootGroupBase(const RootGroupBase
&source
) :
215 /*-------------------------- destructors ----------------------------------*/
217 RootGroupBase::~RootGroupBase(void)
223 #ifdef OSG_MT_CPTR_ASPECT
224 void RootGroupBase::execSyncV( FieldContainer
&oFrom
,
225 ConstFieldMaskArg whichField
,
226 AspectOffsetStore
&oOffsets
,
227 ConstFieldMaskArg syncMode
,
228 const UInt32 uiSyncInfo
)
230 RootGroup
*pThis
= static_cast<RootGroup
*>(this);
232 pThis
->execSync(static_cast<RootGroup
*>(&oFrom
),
242 void RootGroupBase::resolveLinks(void)
244 Inherited::resolveLinks();