changed: auto add updateData callback to stages so that stagedata can be updated...
[opensg.git] / Source / Base / FieldContainer / Threading / OSGHardwareContextBase.h
blobf59816e4616a17b34e722d0bfe89d5ddd9d1c277
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
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 HardwareContext
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGHARDWARECONTEXTBASE_H_
55 #define _OSGHARDWARECONTEXTBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
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"
73 OSG_BEGIN_NAMESPACE
76 class HardwareContext;
78 //! \brief HardwareContext Base Class.
80 class OSG_BASE_DLLMAPPING HardwareContextBase : public HardwareContextParent
82 public:
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 =================================*/
94 public:
97 /*---------------------------------------------------------------------*/
98 /*! \name Class Get */
99 /*! \{ */
101 static FieldContainerType &getClassType (void);
102 static UInt32 getClassTypeId (void);
103 static UInt16 getClassGroupId(void);
105 /*! \} */
106 /*---------------------------------------------------------------------*/
107 /*! \name FieldContainer Get */
108 /*! \{ */
110 virtual FieldContainerType &getType (void);
111 virtual const FieldContainerType &getType (void) const;
113 virtual UInt32 getContainerSize(void) const;
115 /*! \} */
116 /*---------------------------------------------------------------------*/
117 /*! \name Binary Access */
118 /*! \{ */
120 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
121 virtual void copyToBin (BinaryDataHandler &pMem,
122 ConstFieldMaskArg whichField);
123 virtual void copyFromBin(BinaryDataHandler &pMem,
124 ConstFieldMaskArg whichField);
127 /*! \} */
128 /*========================= PROTECTED ===============================*/
130 protected:
132 static TypeObject _type;
134 static void classDescInserter(TypeObject &oType);
135 static const Char8 *getClassname (void );
137 /*---------------------------------------------------------------------*/
138 /*! \name Constructors */
139 /*! \{ */
141 HardwareContextBase(void);
142 HardwareContextBase(const HardwareContextBase &source);
144 /*! \} */
145 /*---------------------------------------------------------------------*/
146 /*! \name Destructors */
147 /*! \{ */
149 virtual ~HardwareContextBase(void);
151 /*! \} */
152 /*---------------------------------------------------------------------*/
153 /*! \name onCreate */
154 /*! \{ */
157 /*! \} */
158 /*---------------------------------------------------------------------*/
159 /*! \name Generic Field Access */
160 /*! \{ */
163 /*! \} */
164 /*---------------------------------------------------------------------*/
165 /*! \name Sync */
166 /*! \{ */
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);
180 #endif
182 /*! \} */
183 /*---------------------------------------------------------------------*/
184 /*! \name Edit */
185 /*! \{ */
187 /*! \} */
188 /*---------------------------------------------------------------------*/
189 /*! \name Aspect Create */
190 /*! \{ */
192 /*! \} */
193 /*---------------------------------------------------------------------*/
194 /*! \name Edit */
195 /*! \{ */
196 /*! \} */
197 /*---------------------------------------------------------------------*/
198 /*! \name Sync */
199 /*! \{ */
201 virtual void resolveLinks(void);
203 /*! \} */
204 /*========================== PRIVATE ================================*/
206 private:
207 /*---------------------------------------------------------------------*/
209 // prohibit default functions (move to 'public' if you need one)
210 void operator =(const HardwareContextBase &source);
213 typedef HardwareContextBase *HardwareContextBaseP;
215 OSG_END_NAMESPACE
217 #endif /* _OSGHARDWARECONTEXTBASE_H_ */