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 "OSGAnimBlenderBase.h"
67 #include "OSGAnimBlender.h"
69 #include <boost/bind.hpp>
73 /***************************************************************************\
75 \***************************************************************************/
77 /*! \class OSG::AnimBlender
81 /***************************************************************************\
82 * Field Documentation *
83 \***************************************************************************/
86 /***************************************************************************\
87 * FieldType/FieldTrait Instantiation *
88 \***************************************************************************/
90 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
91 PointerType FieldTraits
<AnimBlender
*, nsOSG
>::_type(
93 "AttachmentContainerPtr",
94 AnimBlender::getClassType(),
98 OSG_FIELDTRAITS_GETTYPE_NS(AnimBlender
*, nsOSG
)
100 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
104 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
108 /***************************************************************************\
109 * Field Description *
110 \***************************************************************************/
112 void AnimBlenderBase::classDescInserter(TypeObject
&oType
)
114 Inherited::classDescInserter(oType
);
119 AnimBlenderBase::TypeObject
AnimBlenderBase::_type(
120 AnimBlenderBase::getClassname(),
121 Inherited::getClassname(),
125 reinterpret_cast<InitContainerF
>(&AnimBlender::initMethod
),
126 reinterpret_cast<ExitContainerF
>(&AnimBlender::exitMethod
),
127 reinterpret_cast<InitalInsertDescFunc
>(
128 reinterpret_cast<void *>(&AnimBlender::classDescInserter
)),
131 "<?xml version=\"1.0\"?>\n"
134 " name=\"AnimBlender\"\n"
135 " parent=\"AttachmentContainer\"\n"
136 " mixinparent=\"AnimBlenderTaskParent\"\n"
137 " library=\"Dynamics\"\n"
138 " pointerfieldtypes=\"both\"\n"
139 " structure=\"abstract\"\n"
140 " systemcomponent=\"true\"\n"
141 " parentsystemcomponent=\"true\"\n"
142 " decoratable=\"false\"\n"
143 " useLocalIncludes=\"false\"\n"
144 " isNodeCore=\"true\"\n"
145 " isBundle=\"false\"\n"
146 " parentFields=\"none\"\n"
148 "</FieldContainer>\n",
152 /*------------------------------ get -----------------------------------*/
154 FieldContainerType
&AnimBlenderBase::getType(void)
159 const FieldContainerType
&AnimBlenderBase::getType(void) const
164 UInt32
AnimBlenderBase::getContainerSize(void) const
166 return sizeof(AnimBlender
);
169 /*------------------------- decorator get ------------------------------*/
176 /*------------------------------ access -----------------------------------*/
178 SizeT
AnimBlenderBase::getBinSize(ConstFieldMaskArg whichField
)
180 SizeT returnValue
= Inherited::getBinSize(whichField
);
186 void AnimBlenderBase::copyToBin(BinaryDataHandler
&pMem
,
187 ConstFieldMaskArg whichField
)
189 Inherited::copyToBin(pMem
, whichField
);
193 void AnimBlenderBase::copyFromBin(BinaryDataHandler
&pMem
,
194 ConstFieldMaskArg whichField
)
196 Inherited::copyFromBin(pMem
, whichField
);
203 /*------------------------- constructors ----------------------------------*/
205 AnimBlenderBase::AnimBlenderBase(void) :
210 AnimBlenderBase::AnimBlenderBase(const AnimBlenderBase
&source
) :
216 /*-------------------------- destructors ----------------------------------*/
218 AnimBlenderBase::~AnimBlenderBase(void)
224 #ifdef OSG_MT_CPTR_ASPECT
225 void AnimBlenderBase::execSyncV( FieldContainer
&oFrom
,
226 ConstFieldMaskArg whichField
,
227 AspectOffsetStore
&oOffsets
,
228 ConstFieldMaskArg syncMode
,
229 const UInt32 uiSyncInfo
)
231 AnimBlender
*pThis
= static_cast<AnimBlender
*>(this);
233 pThis
->execSync(static_cast<AnimBlender
*>(&oFrom
),
243 void AnimBlenderBase::resolveLinks(void)
245 Inherited::resolveLinks();