fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Window / Base / OSGWindowBase.inl
blob1614d7ff5cf919b8bf98309693f845c53a332b7a
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *               Copyright (C) 2000-2013 by the OpenSG Forum                 *
6  *                                                                           *
7  * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net  *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
13  * This library is free software; you can redistribute it and/or modify it   *
14  * under the terms of the GNU Library General Public License as published    *
15  * by the Free Software Foundation, version 2.                               *
16  *                                                                           *
17  * This library is distributed in the hope that it will be useful, but       *
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
20  * Library General Public License for more details.                          *
21  *                                                                           *
22  * You should have received a copy of the GNU Library General Public         *
23  * License along with this library; if not, write to the Free Software       *
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38  *****************************************************************************
39  **                                                                         **
40  **                  This file is automatically generated.                  **
41  **                                                                         **
42  **          Any changes made to this file WILL be lost when it is          **
43  **           regenerated, which can become necessary at any time.          **
44  **                                                                         **
45  **     Do not change this file, changes should be done in the derived      **
46  **     class Window!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &WindowBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 WindowBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 WindowBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the Window::_sfWidth field.
79 inline
80 UInt16 &WindowBase::editWidth(void)
82     editSField(WidthFieldMask);
84     return _sfWidth.getValue();
87 //! Get the value of the Window::_sfWidth field.
88 inline
89       UInt16  WindowBase::getWidth(void) const
91     return _sfWidth.getValue();
94 //! Set the value of the Window::_sfWidth field.
95 inline
96 void WindowBase::setWidth(const UInt16 value)
98     editSField(WidthFieldMask);
100     _sfWidth.setValue(value);
102 //! Get the value of the Window::_sfHeight field.
104 inline
105 UInt16 &WindowBase::editHeight(void)
107     editSField(HeightFieldMask);
109     return _sfHeight.getValue();
112 //! Get the value of the Window::_sfHeight field.
113 inline
114       UInt16  WindowBase::getHeight(void) const
116     return _sfHeight.getValue();
119 //! Set the value of the Window::_sfHeight field.
120 inline
121 void WindowBase::setHeight(const UInt16 value)
123     editSField(HeightFieldMask);
125     _sfHeight.setValue(value);
127 //! Get the value of the Window::_sfGlObjectEventCounter field.
129 inline
130 UInt32 &WindowBase::editGlObjectEventCounter(void)
132     editSField(GlObjectEventCounterFieldMask);
134     return _sfGlObjectEventCounter.getValue();
137 //! Get the value of the Window::_sfGlObjectEventCounter field.
138 inline
139       UInt32  WindowBase::getGlObjectEventCounter(void) const
141     return _sfGlObjectEventCounter.getValue();
144 //! Set the value of the Window::_sfGlObjectEventCounter field.
145 inline
146 void WindowBase::setGlObjectEventCounter(const UInt32 value)
148     editSField(GlObjectEventCounterFieldMask);
150     _sfGlObjectEventCounter.setValue(value);
152 //! Get the value of the Window::_sfDrawerId field.
154 inline
155 Int32 &WindowBase::editDrawerId(void)
157     editSField(DrawerIdFieldMask);
159     return _sfDrawerId.getValue();
162 //! Get the value of the Window::_sfDrawerId field.
163 inline
164       Int32  WindowBase::getDrawerId(void) const
166     return _sfDrawerId.getValue();
169 //! Set the value of the Window::_sfDrawerId field.
170 inline
171 void WindowBase::setDrawerId(const Int32 value)
173     editSField(DrawerIdFieldMask);
175     _sfDrawerId.setValue(value);
177 //! Get the value of the Window::_sfRequestMajor field.
179 inline
180 Int32 &WindowBase::editRequestMajor(void)
182     editSField(RequestMajorFieldMask);
184     return _sfRequestMajor.getValue();
187 //! Get the value of the Window::_sfRequestMajor field.
188 inline
189       Int32  WindowBase::getRequestMajor(void) const
191     return _sfRequestMajor.getValue();
194 //! Set the value of the Window::_sfRequestMajor field.
195 inline
196 void WindowBase::setRequestMajor(const Int32 value)
198     editSField(RequestMajorFieldMask);
200     _sfRequestMajor.setValue(value);
202 //! Get the value of the Window::_sfRequestMinor field.
204 inline
205 Int32 &WindowBase::editRequestMinor(void)
207     editSField(RequestMinorFieldMask);
209     return _sfRequestMinor.getValue();
212 //! Get the value of the Window::_sfRequestMinor field.
213 inline
214       Int32  WindowBase::getRequestMinor(void) const
216     return _sfRequestMinor.getValue();
219 //! Set the value of the Window::_sfRequestMinor field.
220 inline
221 void WindowBase::setRequestMinor(const Int32 value)
223     editSField(RequestMinorFieldMask);
225     _sfRequestMinor.setValue(value);
227 //! Get the value of the Window::_sfContextFlags field.
229 inline
230 Int32 &WindowBase::editContextFlags(void)
232     editSField(ContextFlagsFieldMask);
234     return _sfContextFlags.getValue();
237 //! Get the value of the Window::_sfContextFlags field.
238 inline
239       Int32  WindowBase::getContextFlags(void) const
241     return _sfContextFlags.getValue();
244 //! Set the value of the Window::_sfContextFlags field.
245 inline
246 void WindowBase::setContextFlags(const Int32 value)
248     editSField(ContextFlagsFieldMask);
250     _sfContextFlags.setValue(value);
252 //! Get the value of the Window::_sfIgnoreAllExtensions field.
254 inline
255 bool &WindowBase::editIgnoreAllExtensions(void)
257     editSField(IgnoreAllExtensionsFieldMask);
259     return _sfIgnoreAllExtensions.getValue();
262 //! Get the value of the Window::_sfIgnoreAllExtensions field.
263 inline
264       bool  WindowBase::getIgnoreAllExtensions(void) const
266     return _sfIgnoreAllExtensions.getValue();
269 //! Set the value of the Window::_sfIgnoreAllExtensions field.
270 inline
271 void WindowBase::setIgnoreAllExtensions(const bool value)
273     editSField(IgnoreAllExtensionsFieldMask);
275     _sfIgnoreAllExtensions.setValue(value);
277 //! Get the value of the Window::_sfDrawMode field.
279 inline
280 UInt32 &WindowBase::editDrawMode(void)
282     editSField(DrawModeFieldMask);
284     return _sfDrawMode.getValue();
287 //! Get the value of the Window::_sfDrawMode field.
288 inline
289       UInt32  WindowBase::getDrawMode(void) const
291     return _sfDrawMode.getValue();
294 //! Set the value of the Window::_sfDrawMode field.
295 inline
296 void WindowBase::setDrawMode(const UInt32 value)
298     editSField(DrawModeFieldMask);
300     _sfDrawMode.setValue(value);
302 //! Get the value of the Window::_sfRendererInfo field.
304 inline
305 std::string &WindowBase::editRendererInfo(void)
307     editSField(RendererInfoFieldMask);
309     return _sfRendererInfo.getValue();
312 //! Get the value of the Window::_sfRendererInfo field.
313 inline
314 const std::string &WindowBase::getRendererInfo(void) const
316     return _sfRendererInfo.getValue();
319 //! Set the value of the Window::_sfRendererInfo field.
320 inline
321 void WindowBase::setRendererInfo(const std::string &value)
323     editSField(RendererInfoFieldMask);
325     _sfRendererInfo.setValue(value);
329 //! Get the value of the \a index element the Window::_mfGlObjectLastRefresh field.
330 inline
331       UInt32  WindowBase::getGlObjectLastRefresh(const UInt32 index) const
333     return _mfGlObjectLastRefresh[index];
336 inline
337 MFUInt32           ::reference WindowBase::editGlObjectLastRefresh(const UInt32 index)
339     editMField(GlObjectLastRefreshFieldMask, _mfGlObjectLastRefresh);
341     return _mfGlObjectLastRefresh[index];
344 //! Get the value of the \a index element the Window::_mfGlObjectLastReinitialize field.
345 inline
346       UInt32  WindowBase::getGlObjectLastReinitialize(const UInt32 index) const
348     return _mfGlObjectLastReinitialize[index];
351 inline
352 MFUInt32           ::reference WindowBase::editGlObjectLastReinitialize(const UInt32 index)
354     editMField(GlObjectLastReinitializeFieldMask, _mfGlObjectLastReinitialize);
356     return _mfGlObjectLastReinitialize[index];
361 #ifdef OSG_MT_CPTR_ASPECT
362 inline
363 void WindowBase::execSync (      WindowBase *pFrom,
364                                         ConstFieldMaskArg  whichField,
365                                         AspectOffsetStore &oOffsets,
366                                         ConstFieldMaskArg  syncMode,
367                                   const UInt32             uiSyncInfo)
369     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
371     if(FieldBits::NoField != (WidthFieldMask & whichField))
372         _sfWidth.syncWith(pFrom->_sfWidth);
374     if(FieldBits::NoField != (HeightFieldMask & whichField))
375         _sfHeight.syncWith(pFrom->_sfHeight);
377     if(FieldBits::NoField != (PortFieldMask & whichField))
378         _mfPort.syncWith(pFrom->_mfPort,
379                                 syncMode,
380                                 uiSyncInfo,
381                                 oOffsets);
383     if(FieldBits::NoField != (GlObjectEventCounterFieldMask & whichField))
384         _sfGlObjectEventCounter.syncWith(pFrom->_sfGlObjectEventCounter);
386     if(FieldBits::NoField != (GlObjectLastRefreshFieldMask & whichField))
387         _mfGlObjectLastRefresh.syncWith(pFrom->_mfGlObjectLastRefresh,
388                                 syncMode,
389                                 uiSyncInfo,
390                                 oOffsets);
392     if(FieldBits::NoField != (GlObjectLastReinitializeFieldMask & whichField))
393         _mfGlObjectLastReinitialize.syncWith(pFrom->_mfGlObjectLastReinitialize,
394                                 syncMode,
395                                 uiSyncInfo,
396                                 oOffsets);
398     if(FieldBits::NoField != (DrawerIdFieldMask & whichField))
399         _sfDrawerId.syncWith(pFrom->_sfDrawerId);
401     if(FieldBits::NoField != (RequestMajorFieldMask & whichField))
402         _sfRequestMajor.syncWith(pFrom->_sfRequestMajor);
404     if(FieldBits::NoField != (RequestMinorFieldMask & whichField))
405         _sfRequestMinor.syncWith(pFrom->_sfRequestMinor);
407     if(FieldBits::NoField != (ContextFlagsFieldMask & whichField))
408         _sfContextFlags.syncWith(pFrom->_sfContextFlags);
410     if(FieldBits::NoField != (RenderOptionsFieldMask & whichField))
411         _sfRenderOptions.syncWith(pFrom->_sfRenderOptions);
413     if(FieldBits::NoField != (IgnoreAllExtensionsFieldMask & whichField))
414         _sfIgnoreAllExtensions.syncWith(pFrom->_sfIgnoreAllExtensions);
416     if(FieldBits::NoField != (DrawModeFieldMask & whichField))
417         _sfDrawMode.syncWith(pFrom->_sfDrawMode);
419     if(FieldBits::NoField != (RendererInfoFieldMask & whichField))
420         _sfRendererInfo.syncWith(pFrom->_sfRendererInfo);
422     if(FieldBits::NoField != (DrawTasksFieldMask & whichField))
423         _mfDrawTasks.syncWith(pFrom->_mfDrawTasks,
424                                 syncMode,
425                                 uiSyncInfo,
426                                 oOffsets);
428 #endif
431 inline
432 const Char8 *WindowBase::getClassname(void)
434     return "Window";
436 OSG_GEN_CONTAINERPTR(Window);
438 OSG_END_NAMESPACE