1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 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 \*---------------------------------------------------------------------------*/
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 HardwareContext
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGHARDWARECONTEXTBASE_H_
55 #define _OSGHARDWARECONTEXTBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGBaseDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGAttachmentContainer.h" // Parent
69 #include "OSGHardwareContextFields.h"
71 #include "OSGHardwareContextParent.h"
76 class HardwareContext
;
78 //! \brief HardwareContext Base Class.
80 class OSG_BASE_DLLMAPPING HardwareContextBase
: public HardwareContextParent
84 typedef HardwareContextParent Inherited
;
85 typedef AttachmentContainer ParentContainer
;
87 typedef Inherited::TypeObject TypeObject
;
88 typedef TypeObject::InitPhase InitPhase
;
90 OSG_GEN_INTERNALPTR(HardwareContext
);
92 /*========================== PUBLIC =================================*/
97 /*---------------------------------------------------------------------*/
98 /*! \name Class Get */
101 static FieldContainerType
&getClassType (void);
102 static UInt32
getClassTypeId (void);
103 static UInt16
getClassGroupId(void);
106 /*---------------------------------------------------------------------*/
107 /*! \name FieldContainer Get */
110 virtual FieldContainerType
&getType (void);
111 virtual const FieldContainerType
&getType (void) const;
113 virtual UInt32
getContainerSize(void) const;
116 /*---------------------------------------------------------------------*/
117 /*! \name Binary Access */
120 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
121 virtual void copyToBin (BinaryDataHandler
&pMem
,
122 ConstFieldMaskArg whichField
);
123 virtual void copyFromBin(BinaryDataHandler
&pMem
,
124 ConstFieldMaskArg whichField
);
128 /*========================= PROTECTED ===============================*/
132 static TypeObject _type
;
134 static void classDescInserter(TypeObject
&oType
);
135 static const Char8
*getClassname (void );
137 /*---------------------------------------------------------------------*/
138 /*! \name Constructors */
141 HardwareContextBase(void);
142 HardwareContextBase(const HardwareContextBase
&source
);
145 /*---------------------------------------------------------------------*/
146 /*! \name Destructors */
149 virtual ~HardwareContextBase(void);
152 /*---------------------------------------------------------------------*/
153 /*! \name onCreate */
158 /*---------------------------------------------------------------------*/
159 /*! \name Generic Field Access */
164 /*---------------------------------------------------------------------*/
168 #ifdef OSG_MT_CPTR_ASPECT
169 virtual void execSyncV( FieldContainer
&oFrom
,
170 ConstFieldMaskArg whichField
,
171 AspectOffsetStore
&oOffsets
,
172 ConstFieldMaskArg syncMode
,
173 const UInt32 uiSyncInfo
);
175 void execSync ( HardwareContextBase
*pFrom
,
176 ConstFieldMaskArg whichField
,
177 AspectOffsetStore
&oOffsets
,
178 ConstFieldMaskArg syncMode
,
179 const UInt32 uiSyncInfo
);
183 /*---------------------------------------------------------------------*/
188 /*---------------------------------------------------------------------*/
189 /*! \name Aspect Create */
193 /*---------------------------------------------------------------------*/
197 /*---------------------------------------------------------------------*/
201 virtual void resolveLinks(void);
204 /*========================== PRIVATE ================================*/
207 /*---------------------------------------------------------------------*/
209 // prohibit default functions (move to 'public' if you need one)
210 void operator =(const HardwareContextBase
&source
);
213 typedef HardwareContextBase
*HardwareContextBaseP
;
217 #endif /* _OSGHARDWARECONTEXTBASE_H_ */