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 GeoIntegralProperty!
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 "OSGGeoIntegralPropertyBase.h"
67 #include "OSGGeoIntegralProperty.h"
69 #include <boost/bind.hpp>
73 /***************************************************************************\
75 \***************************************************************************/
77 /*! \class OSG::GeoIntegralProperty
78 Parent class for integral (i.e. one dimensional unsigned integer typed)
82 /***************************************************************************\
83 * Field Documentation *
84 \***************************************************************************/
87 /***************************************************************************\
88 * FieldType/FieldTrait Instantiation *
89 \***************************************************************************/
91 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
92 PointerType FieldTraits
<GeoIntegralProperty
*, nsOSG
>::_type(
93 "GeoIntegralPropertyPtr",
95 GeoIntegralProperty::getClassType(),
99 OSG_FIELDTRAITS_GETTYPE_NS(GeoIntegralProperty
*, nsOSG
)
101 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
102 GeoIntegralProperty
*,
105 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
106 GeoIntegralProperty
*,
109 DataType
&FieldTraits
< GeoIntegralProperty
*, nsOSG
+ 1 >::getType(void)
111 return FieldTraits
<GeoIntegralProperty
*, nsOSG
>::getType();
115 OSG_EXPORT_PTR_SFIELD(ChildPointerSField
,
116 GeoIntegralProperty
*,
117 UnrecordedRefCountPolicy
,
121 OSG_EXPORT_PTR_MFIELD(ChildPointerMField
,
122 GeoIntegralProperty
*,
123 UnrecordedRefCountPolicy
,
127 /***************************************************************************\
128 * Field Description *
129 \***************************************************************************/
131 void GeoIntegralPropertyBase::classDescInserter(TypeObject
&oType
)
136 GeoIntegralPropertyBase::TypeObject
GeoIntegralPropertyBase::_type(
137 GeoIntegralPropertyBase::getClassname(),
138 Inherited::getClassname(),
142 reinterpret_cast<InitContainerF
>(&GeoIntegralProperty::initMethod
),
143 reinterpret_cast<ExitContainerF
>(&GeoIntegralProperty::exitMethod
),
144 reinterpret_cast<InitalInsertDescFunc
>(
145 reinterpret_cast<void *>(&GeoIntegralProperty::classDescInserter
)),
148 "<?xml version=\"1.0\"?>\n"
151 " name=\"GeoIntegralProperty\"\n"
152 " parent=\"GeoProperty\"\n"
153 " library=\"Drawable\"\n"
154 " pointerfieldtypes=\"both\"\n"
155 " structure=\"abstract\"\n"
156 " systemcomponent=\"true\"\n"
157 " parentsystemcomponent=\"true\"\n"
158 " decoratable=\"false\"\n"
159 " childFields=\"both\"\n"
160 " docGroupBase=\"GrpDrawablesGeometry\"\n"
162 " Parent class for integral (i.e. one dimensional unsigned integer typed)\n"
165 " The main use for this class is as a parent class for indices, lengths and \n"
166 " types for the Geometry.\n"
167 "</FieldContainer>\n",
168 "Parent class for integral (i.e. one dimensional unsigned integer typed)\n"
171 "The main use for this class is as a parent class for indices, lengths and \n"
172 "types for the Geometry.\n"
175 /*------------------------------ get -----------------------------------*/
177 FieldContainerType
&GeoIntegralPropertyBase::getType(void)
182 const FieldContainerType
&GeoIntegralPropertyBase::getType(void) const
187 UInt32
GeoIntegralPropertyBase::getContainerSize(void) const
189 return sizeof(GeoIntegralProperty
);
192 /*------------------------- decorator get ------------------------------*/
199 /*------------------------------ access -----------------------------------*/
201 SizeT
GeoIntegralPropertyBase::getBinSize(ConstFieldMaskArg whichField
)
203 SizeT returnValue
= Inherited::getBinSize(whichField
);
209 void GeoIntegralPropertyBase::copyToBin(BinaryDataHandler
&pMem
,
210 ConstFieldMaskArg whichField
)
212 Inherited::copyToBin(pMem
, whichField
);
216 void GeoIntegralPropertyBase::copyFromBin(BinaryDataHandler
&pMem
,
217 ConstFieldMaskArg whichField
)
219 Inherited::copyFromBin(pMem
, whichField
);
226 /*------------------------- constructors ----------------------------------*/
228 GeoIntegralPropertyBase::GeoIntegralPropertyBase(void) :
233 GeoIntegralPropertyBase::GeoIntegralPropertyBase(const GeoIntegralPropertyBase
&source
) :
239 /*-------------------------- destructors ----------------------------------*/
241 GeoIntegralPropertyBase::~GeoIntegralPropertyBase(void)
247 #ifdef OSG_MT_CPTR_ASPECT
248 void GeoIntegralPropertyBase::execSyncV( FieldContainer
&oFrom
,
249 ConstFieldMaskArg whichField
,
250 AspectOffsetStore
&oOffsets
,
251 ConstFieldMaskArg syncMode
,
252 const UInt32 uiSyncInfo
)
254 GeoIntegralProperty
*pThis
= static_cast<GeoIntegralProperty
*>(this);
256 pThis
->execSync(static_cast<GeoIntegralProperty
*>(&oFrom
),
266 void GeoIntegralPropertyBase::resolveLinks(void)
268 Inherited::resolveLinks();