1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2003 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
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 \*---------------------------------------------------------------------------*/
41 #include "OSGSField.h"
42 #include "OSGSField.ins"
44 #include "OSGMField.h"
45 #include "OSGMField.ins"
47 #include "OSGFieldContainerSFields.h"
48 #include "OSGFieldContainerMFields.h"
50 #include "OSGAttachmentContainerSFields.h"
51 #include "OSGAttachmentContainerMFields.h"
53 #include "OSGNodeSFields.h"
54 #include "OSGNodeMFields.h"
56 #include "OSGMemoryObjectSFields.h"
57 #include "OSGMemoryObjectMFields.h"
59 #include "OSGHardwareContextDataSFields.h"
60 #include "OSGHardwareContextDataMFields.h"
62 #include "OSGChangedFunctorSFields.h"
63 #include "OSGChangedFunctorMFields.h"
69 PointerType FieldTraits
<FieldContainer
*>::_type(
72 FieldContainer::getClassType(),
75 DataType FieldTraits
<FieldContainer
*>::_mapType(
76 "FieldContainerPtrMap",
80 PointerType FieldTraits
<AttachmentContainer
*>::_type(
81 "AttachmentContainerPtr",
83 AttachmentContainer::getClassType(),
86 PointerType FieldTraits
<Node
*>::_type(
88 "AttachmentContainerPtr",
92 DataType FieldTraits
<ChangedFunctorCallback
>::_type(
93 "ChangedFunctorCallback",
97 DataType FieldTraits
<MemoryObject
*>::_type(
102 DataType FieldTraits
<HardwareContextData
*>::_type(
103 "HardwareContextDataPtr",
107 OSG_FIELDTRAITS_GETTYPE(FieldContainer
*)
108 OSG_FIELDTRAITS_GETTYPE(AttachmentContainer
*)
109 OSG_FIELDTRAITS_GETTYPE(Node
*)
110 OSG_FIELDTRAITS_GETTYPE(ChangedFunctorCallback
)
111 OSG_FIELDTRAITS_GETTYPE(MemoryObject
*)
112 OSG_FIELDTRAITS_GETTYPE(HardwareContextData
*)
114 DataType
&FieldTraits
< FieldContainer
*>::getMapType(void)
119 DataType
&FieldTraits
< FieldContainer
*, 1 >::getType(void)
121 return FieldTraits
<FieldContainer
*, 0>::getType();
124 DataType
&FieldTraits
< Node
*, 1 >::getType(void)
126 return FieldTraits
<Node
*, 0>::getType();
131 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
135 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
141 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
145 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
149 // AttachmentContainer
151 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
152 AttachmentContainer
*,
155 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField
,
156 AttachmentContainer
*,
160 OSG_EXPORT_PTR_MFIELD(ChildPointerMField
,
162 UnrecordedRefCountPolicy
,
166 // ParentFieldContainer
168 OSG_SFIELDTYPE_INST(ParentPointerSField
,
172 OSG_MFIELDTYPE_INST(ParentPointerMField
,
177 OSG_FIELD_DLLEXPORT_DEF3(ParentPointerSField
,
181 OSG_FIELD_DLLEXPORT_DEF3(ParentPointerMField
,
187 OSG_SFIELDTYPE_INST_X(ParentPointerSField
,
191 OSG_MFIELDTYPE_INST_X(ParentPointerMField
,
196 OSG_FIELD_DLLEXPORT_DEF3(ParentPointerSField
,
200 OSG_FIELD_DLLEXPORT_DEF3(ParentPointerMField
,
207 OSG_FIELD_DLLEXPORT_DEF1(SField
, ChangedFunctorCallback
)
208 OSG_FIELD_DLLEXPORT_DEF1(MField
, ChangedFunctorCallback
)
212 OSG_EXPORT_PTR_SFIELD(MemObjPointerSField
,
214 MemObjRefCountPolicy
,
216 OSG_EXPORT_PTR_MFIELD(MemObjPointerMField
,
218 MemObjRefCountPolicy
,
221 // HardwareContextData
223 OSG_EXPORT_PTR_SFIELD(MemObjPointerSField
,
224 HardwareContextData
*,
225 MemObjRefCountPolicy
,
227 OSG_EXPORT_PTR_MFIELD(MemObjPointerMField
,
228 HardwareContextData
*,
229 MemObjRefCountPolicy
,