changed: gcc8 base update
[opensg.git] / Source / System / NodeCores / Drawables / Geometry / Properties / OSGGeoIntegralPropertyBase.cpp
blob01b1f89f01f717e51970d8eb4c6295d3a9a6f976
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
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. *
18 * *
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. *
23 * *
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. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
41 ** **
42 ** This file is automatically generated. **
43 ** **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
46 ** **
47 ** Do not change this file, changes should be done in the derived **
48 ** class GeoIntegralProperty!
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
53 #include <cstdlib>
54 #include <cstdio>
56 #ifdef WIN32
57 #pragma warning(disable: 4355) // turn off 'this' : used in base member initializer list warning
58 #pragma warning(disable: 4290) // disable exception specification warning
59 #endif
61 #include "OSGConfig.h"
66 #include "OSGGeoIntegralPropertyBase.h"
67 #include "OSGGeoIntegralProperty.h"
69 #include <boost/bind.hpp>
71 OSG_BEGIN_NAMESPACE
73 /***************************************************************************\
74 * Description *
75 \***************************************************************************/
77 /*! \class OSG::GeoIntegralProperty
78 Parent class for integral (i.e. one dimensional unsigned integer typed)
79 properties.
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",
94 "GeoPropertyPtr",
95 GeoIntegralProperty::getClassType(),
96 nsOSG);
97 #endif
99 OSG_FIELDTRAITS_GETTYPE_NS(GeoIntegralProperty *, nsOSG)
101 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField,
102 GeoIntegralProperty *,
103 nsOSG)
105 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField,
106 GeoIntegralProperty *,
107 nsOSG)
109 DataType &FieldTraits< GeoIntegralProperty *, nsOSG + 1 >::getType(void)
111 return FieldTraits<GeoIntegralProperty *, nsOSG>::getType();
115 OSG_EXPORT_PTR_SFIELD(ChildPointerSField,
116 GeoIntegralProperty *,
117 UnrecordedRefCountPolicy,
118 nsOSG + 1)
121 OSG_EXPORT_PTR_MFIELD(ChildPointerMField,
122 GeoIntegralProperty *,
123 UnrecordedRefCountPolicy,
124 nsOSG + 1)
127 /***************************************************************************\
128 * Field Description *
129 \***************************************************************************/
131 void GeoIntegralPropertyBase::classDescInserter(TypeObject &oType)
136 GeoIntegralPropertyBase::TypeObject GeoIntegralPropertyBase::_type(
137 GeoIntegralPropertyBase::getClassname(),
138 Inherited::getClassname(),
139 "NULL",
140 nsOSG, //Namespace
141 NULL,
142 reinterpret_cast<InitContainerF>(&GeoIntegralProperty::initMethod),
143 reinterpret_cast<ExitContainerF>(&GeoIntegralProperty::exitMethod),
144 reinterpret_cast<InitalInsertDescFunc>(
145 reinterpret_cast<void *>(&GeoIntegralProperty::classDescInserter)),
146 false,
148 "<?xml version=\"1.0\"?>\n"
149 "\n"
150 "<FieldContainer\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"
161 " >\n"
162 " Parent class for integral (i.e. one dimensional unsigned integer typed)\n"
163 " properties. \n"
164 "\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"
169 "properties. \n"
170 "\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)
179 return _type;
182 const FieldContainerType &GeoIntegralPropertyBase::getType(void) const
184 return _type;
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);
206 return returnValue;
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) :
229 Inherited()
233 GeoIntegralPropertyBase::GeoIntegralPropertyBase(const GeoIntegralPropertyBase &source) :
234 Inherited(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),
257 whichField,
258 oOffsets,
259 syncMode,
260 uiSyncInfo);
262 #endif
266 void GeoIntegralPropertyBase::resolveLinks(void)
268 Inherited::resolveLinks();
274 OSG_END_NAMESPACE