changed: gcc8 base update
[opensg.git] / Source / Contrib / ComputeBase / Base / OSGComputeElementHandlerMixin.h
blobefb23035f2ad1571d4098b62a43577d6f6e460b0
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2003 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 #ifndef _OSGCOMPUTEELEMENTHANDLERMIXIN_H_
40 #define _OSGCOMPUTEELEMENTHANDLERMIXIN_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGTraversalDataHandlerMixin.h"
47 //#include "OSGMemoryObject.h"
48 #include "OSGHardwareContext.h"
50 OSG_BEGIN_NAMESPACE
52 /*! \ingroup GrpBaseFieldContainerMixins
53 \ingroup GrpLibOSGBase
55 template <class ParentT>
56 class ComputeElementHandlerMixin :
57 public TraversalDataHandlerMixin<ParentT>
59 /*========================== PRIVATE ================================*/
61 protected:
63 typedef TraversalDataHandlerMixin<ParentT> Inherited;
65 /*========================== PUBLIC =================================*/
67 public:
69 typedef ComputeElementHandlerMixin<ParentT> Self;
71 typedef typename ParentT::Desc Desc;
72 typedef typename Desc::TypeObject TypeObject;
74 typedef typename Desc::ContextDataSlotHandler ContextDataSlotHandler;
76 #if 0
77 typedef StageValidator::ValidationStatus ValidationStatus;
78 #endif
81 /*---------------------------------------------------------------------*/
82 /*! \name dcast */
83 /*! \{ */
85 /*! \} */
86 /*---------------------------------------------------------------------*/
87 /*! \name General Fieldcontainer Declaration */
88 /*! \{ */
90 /*! \} */
91 /*---------------------------------------------------------------------*/
92 /*! \name Constructors */
93 /*! \{ */
95 /*! \} */
96 /*---------------------------------------------------------------------*/
97 /*! \name Destructor */
98 /*! \{ */
100 bool requestRun(void);
102 /*! \} */
103 /*---------------------------------------------------------------------*/
104 /*! \name Helper */
105 /*! \{ */
107 void changed(ConstFieldMaskArg whichField,
108 UInt32 origin,
109 BitVector details);
111 /*! \} */
112 /*---------------------------------------------------------------------*/
113 /*! \name Get */
114 /*! \{ */
116 #if 0
117 ValidationStatus validateOnEnter(RenderActionBase *pAction);
118 ValidationStatus validateOnLeave(RenderActionBase *pAction);
119 #endif
121 /*! \} */
122 /*---------------------------------------------------------------------*/
123 /*! \name Set */
124 /*! \{ */
126 /*! \} */
127 /*---------------------------------------------------------------------*/
128 /*! \name your_category */
129 /*! \{ */
131 /*! \} */
132 /*---------------------------------------------------------------------*/
133 /*! \name Container Access */
134 /*! \{ */
136 /*! \} */
137 /*---------------------------------------------------------------------*/
138 /*! \name Binary Access */
139 /*! \{ */
141 /*! \} */
142 /*---------------------------------------------------------------------*/
143 /*! \name your_operators */
144 /*! \{ */
146 #ifndef WIN32
147 using Inherited::setData;
148 #else
149 void setData(TraversalData *pData,
150 Int32 iDataSlotId,
151 RenderActionBase *pAction );
152 #endif
154 void setData(HardwareContextData *pData,
155 Int32 iDataSlotId,
156 HardwareContext *pContext );
158 /*! \} */
159 /*---------------------------------------------------------------------*/
160 /*! \name Assignment */
161 /*! \{ */
163 /*! \} */
164 /*---------------------------------------------------------------------*/
165 /*! \name Comparison */
166 /*! \{ */
168 /*! \} */
169 /*---------------------------------------------------------------------*/
170 /*! \name Dump */
171 /*! \{ */
173 virtual void dump( UInt32 uiIndent = 0,
174 const BitVector bvFlags = 0) const;
176 /*! \} */
177 /*========================= PROTECTED ===============================*/
179 protected:
181 #if 0
182 StageValidator::ValidationStatus _tmpStatus;
183 #endif
185 /*---------------------------------------------------------------------*/
186 /*! \name Type information */
187 /*! \{ */
189 #if 0
190 ValidationStatus validate(RenderActionBase *pAction);
191 #endif
193 /*! \} */
194 /*---------------------------------------------------------------------*/
195 /*! \name Fields */
196 /*! \{ */
198 /*! \} */
199 /*---------------------------------------------------------------------*/
200 /*! \name Member */
201 /*! \{ */
203 ComputeElementHandlerMixin(void);
204 ComputeElementHandlerMixin(const ComputeElementHandlerMixin &source);
206 virtual ~ComputeElementHandlerMixin(void);
208 /*! \} */
209 /*---------------------------------------------------------------------*/
210 /*! \name Changed */
211 /*! \{ */
213 /*! \} */
214 /*---------------------------------------------------------------------*/
215 /*! \name MT Destruction */
216 /*! \{ */
218 /*! \} */
219 /*---------------------------------------------------------------------*/
220 /*! \name Edit */
221 /*! \{ */
223 /*! \} */
224 /*---------------------------------------------------------------------*/
225 /*! \name Edit */
226 /*! \{ */
228 /*! \} */
229 /*---------------------------------------------------------------------*/
230 /*! \name Sync */
231 /*! \{ */
233 /*! \} */
234 /*========================== PRIVATE ================================*/
236 private:
238 /*!\brief prohibit default function (move to 'public' if needed) */
239 void operator =(const ComputeElementHandlerMixin &source);
242 OSG_END_NAMESPACE
244 #include "OSGComputeElementHandlerMixin.inl"
246 #endif /* _OSGCOMPUTEELEMENTHANDLERMIXIN_H_ */