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 IntersectProxyAttachment
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGINTERSECTPROXYATTACHMENTBASE_H_
55 #define _OSGINTERSECTPROXYATTACHMENTBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGAttachment.h" // Parent
68 #include "OSGSysFields.h" // VisitChildren type
70 #include "OSGIntersectProxyAttachmentFields.h"
75 class IntersectProxyAttachment
;
77 //! \brief IntersectProxyAttachment Base Class.
79 class OSG_SYSTEM_DLLMAPPING IntersectProxyAttachmentBase
: public Attachment
83 typedef Attachment Inherited
;
84 typedef Attachment ParentContainer
;
86 typedef Inherited::TypeObject TypeObject
;
87 typedef TypeObject::InitPhase InitPhase
;
89 OSG_GEN_INTERNALPTR(IntersectProxyAttachment
);
91 /*========================== PUBLIC =================================*/
97 VisitChildrenFieldId
= Inherited::NextFieldId
,
98 NextFieldId
= VisitChildrenFieldId
+ 1
101 static const OSG::BitVector VisitChildrenFieldMask
=
102 (TypeTraits
<BitVector
>::One
<< VisitChildrenFieldId
);
103 static const OSG::BitVector NextFieldMask
=
104 (TypeTraits
<BitVector
>::One
<< NextFieldId
);
106 typedef SFBool SFVisitChildrenType
;
108 /*---------------------------------------------------------------------*/
109 /*! \name Class Get */
112 static FieldContainerType
&getClassType (void);
113 static UInt32
getClassTypeId (void);
114 static UInt16
getClassGroupId(void);
117 /*---------------------------------------------------------------------*/
118 /*! \name FieldContainer Get */
121 virtual FieldContainerType
&getType (void);
122 virtual const FieldContainerType
&getType (void) const;
124 virtual UInt32
getContainerSize(void) const;
127 /*---------------------------------------------------------------------*/
128 /*! \name Field Get */
132 SFBool
*editSFVisitChildren (void);
133 const SFBool
*getSFVisitChildren (void) const;
136 bool &editVisitChildren (void);
137 bool getVisitChildren (void) const;
140 /*---------------------------------------------------------------------*/
141 /*! \name Field Set */
144 void setVisitChildren (const bool value
);
147 /*---------------------------------------------------------------------*/
148 /*! \name Ptr MField Set */
152 /*---------------------------------------------------------------------*/
153 /*! \name Binary Access */
156 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
157 virtual void copyToBin (BinaryDataHandler
&pMem
,
158 ConstFieldMaskArg whichField
);
159 virtual void copyFromBin(BinaryDataHandler
&pMem
,
160 ConstFieldMaskArg whichField
);
164 /*========================= PROTECTED ===============================*/
168 static TypeObject _type
;
170 static void classDescInserter(TypeObject
&oType
);
171 static const Char8
*getClassname (void );
173 /*---------------------------------------------------------------------*/
177 SFBool _sfVisitChildren
;
180 /*---------------------------------------------------------------------*/
181 /*! \name Constructors */
184 IntersectProxyAttachmentBase(void);
185 IntersectProxyAttachmentBase(const IntersectProxyAttachmentBase
&source
);
188 /*---------------------------------------------------------------------*/
189 /*! \name Destructors */
192 virtual ~IntersectProxyAttachmentBase(void);
195 /*---------------------------------------------------------------------*/
196 /*! \name onCreate */
201 /*---------------------------------------------------------------------*/
202 /*! \name Generic Field Access */
205 GetFieldHandlePtr
getHandleVisitChildren (void) const;
206 EditFieldHandlePtr
editHandleVisitChildren (void);
209 /*---------------------------------------------------------------------*/
213 #ifdef OSG_MT_CPTR_ASPECT
214 virtual void execSyncV( FieldContainer
&oFrom
,
215 ConstFieldMaskArg whichField
,
216 AspectOffsetStore
&oOffsets
,
217 ConstFieldMaskArg syncMode
,
218 const UInt32 uiSyncInfo
);
220 void execSync ( IntersectProxyAttachmentBase
*pFrom
,
221 ConstFieldMaskArg whichField
,
222 AspectOffsetStore
&oOffsets
,
223 ConstFieldMaskArg syncMode
,
224 const UInt32 uiSyncInfo
);
228 /*---------------------------------------------------------------------*/
233 /*---------------------------------------------------------------------*/
234 /*! \name Aspect Create */
238 /*---------------------------------------------------------------------*/
242 /*---------------------------------------------------------------------*/
246 virtual void resolveLinks(void);
249 /*========================== PRIVATE ================================*/
252 /*---------------------------------------------------------------------*/
254 // prohibit default functions (move to 'public' if you need one)
255 void operator =(const IntersectProxyAttachmentBase
&source
);
258 typedef IntersectProxyAttachmentBase
*IntersectProxyAttachmentBaseP
;
262 #endif /* _OSGINTERSECTPROXYATTACHMENTBASE_H_ */