1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38 *****************************************************************************
40 ** This file is automatically generated. **
42 ** Any changes made to this file WILL be lost when it is **
43 ** regenerated, which can become necessary at any time. **
45 ** Do not change this file, changes should be done in the derived **
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &WindowBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 WindowBase::getClassTypeId(void)
70 OSG::UInt16 WindowBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the Window::_sfWidth field.
80 UInt16 &WindowBase::editWidth(void)
82 editSField(WidthFieldMask);
84 return _sfWidth.getValue();
87 //! Get the value of the Window::_sfWidth field.
89 UInt16 WindowBase::getWidth(void) const
91 return _sfWidth.getValue();
94 //! Set the value of the Window::_sfWidth field.
96 void WindowBase::setWidth(const UInt16 value)
98 editSField(WidthFieldMask);
100 _sfWidth.setValue(value);
102 //! Get the value of the Window::_sfHeight field.
105 UInt16 &WindowBase::editHeight(void)
107 editSField(HeightFieldMask);
109 return _sfHeight.getValue();
112 //! Get the value of the Window::_sfHeight field.
114 UInt16 WindowBase::getHeight(void) const
116 return _sfHeight.getValue();
119 //! Set the value of the Window::_sfHeight field.
121 void WindowBase::setHeight(const UInt16 value)
123 editSField(HeightFieldMask);
125 _sfHeight.setValue(value);
127 //! Get the value of the Window::_sfGlObjectEventCounter field.
130 UInt32 &WindowBase::editGlObjectEventCounter(void)
132 editSField(GlObjectEventCounterFieldMask);
134 return _sfGlObjectEventCounter.getValue();
137 //! Get the value of the Window::_sfGlObjectEventCounter field.
139 UInt32 WindowBase::getGlObjectEventCounter(void) const
141 return _sfGlObjectEventCounter.getValue();
144 //! Set the value of the Window::_sfGlObjectEventCounter field.
146 void WindowBase::setGlObjectEventCounter(const UInt32 value)
148 editSField(GlObjectEventCounterFieldMask);
150 _sfGlObjectEventCounter.setValue(value);
152 //! Get the value of the Window::_sfDrawerId field.
155 Int32 &WindowBase::editDrawerId(void)
157 editSField(DrawerIdFieldMask);
159 return _sfDrawerId.getValue();
162 //! Get the value of the Window::_sfDrawerId field.
164 Int32 WindowBase::getDrawerId(void) const
166 return _sfDrawerId.getValue();
169 //! Set the value of the Window::_sfDrawerId field.
171 void WindowBase::setDrawerId(const Int32 value)
173 editSField(DrawerIdFieldMask);
175 _sfDrawerId.setValue(value);
177 //! Get the value of the Window::_sfRequestMajor field.
180 Int32 &WindowBase::editRequestMajor(void)
182 editSField(RequestMajorFieldMask);
184 return _sfRequestMajor.getValue();
187 //! Get the value of the Window::_sfRequestMajor field.
189 Int32 WindowBase::getRequestMajor(void) const
191 return _sfRequestMajor.getValue();
194 //! Set the value of the Window::_sfRequestMajor field.
196 void WindowBase::setRequestMajor(const Int32 value)
198 editSField(RequestMajorFieldMask);
200 _sfRequestMajor.setValue(value);
202 //! Get the value of the Window::_sfRequestMinor field.
205 Int32 &WindowBase::editRequestMinor(void)
207 editSField(RequestMinorFieldMask);
209 return _sfRequestMinor.getValue();
212 //! Get the value of the Window::_sfRequestMinor field.
214 Int32 WindowBase::getRequestMinor(void) const
216 return _sfRequestMinor.getValue();
219 //! Set the value of the Window::_sfRequestMinor field.
221 void WindowBase::setRequestMinor(const Int32 value)
223 editSField(RequestMinorFieldMask);
225 _sfRequestMinor.setValue(value);
227 //! Get the value of the Window::_sfContextFlags field.
230 Int32 &WindowBase::editContextFlags(void)
232 editSField(ContextFlagsFieldMask);
234 return _sfContextFlags.getValue();
237 //! Get the value of the Window::_sfContextFlags field.
239 Int32 WindowBase::getContextFlags(void) const
241 return _sfContextFlags.getValue();
244 //! Set the value of the Window::_sfContextFlags field.
246 void WindowBase::setContextFlags(const Int32 value)
248 editSField(ContextFlagsFieldMask);
250 _sfContextFlags.setValue(value);
252 //! Get the value of the Window::_sfIgnoreAllExtensions field.
255 bool &WindowBase::editIgnoreAllExtensions(void)
257 editSField(IgnoreAllExtensionsFieldMask);
259 return _sfIgnoreAllExtensions.getValue();
262 //! Get the value of the Window::_sfIgnoreAllExtensions field.
264 bool WindowBase::getIgnoreAllExtensions(void) const
266 return _sfIgnoreAllExtensions.getValue();
269 //! Set the value of the Window::_sfIgnoreAllExtensions field.
271 void WindowBase::setIgnoreAllExtensions(const bool value)
273 editSField(IgnoreAllExtensionsFieldMask);
275 _sfIgnoreAllExtensions.setValue(value);
277 //! Get the value of the Window::_sfDrawMode field.
280 UInt32 &WindowBase::editDrawMode(void)
282 editSField(DrawModeFieldMask);
284 return _sfDrawMode.getValue();
287 //! Get the value of the Window::_sfDrawMode field.
289 UInt32 WindowBase::getDrawMode(void) const
291 return _sfDrawMode.getValue();
294 //! Set the value of the Window::_sfDrawMode field.
296 void WindowBase::setDrawMode(const UInt32 value)
298 editSField(DrawModeFieldMask);
300 _sfDrawMode.setValue(value);
302 //! Get the value of the Window::_sfRendererInfo field.
305 std::string &WindowBase::editRendererInfo(void)
307 editSField(RendererInfoFieldMask);
309 return _sfRendererInfo.getValue();
312 //! Get the value of the Window::_sfRendererInfo field.
314 const std::string &WindowBase::getRendererInfo(void) const
316 return _sfRendererInfo.getValue();
319 //! Set the value of the Window::_sfRendererInfo field.
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.
331 UInt32 WindowBase::getGlObjectLastRefresh(const UInt32 index) const
333 return _mfGlObjectLastRefresh[index];
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.
346 UInt32 WindowBase::getGlObjectLastReinitialize(const UInt32 index) const
348 return _mfGlObjectLastReinitialize[index];
352 MFUInt32 ::reference WindowBase::editGlObjectLastReinitialize(const UInt32 index)
354 editMField(GlObjectLastReinitializeFieldMask, _mfGlObjectLastReinitialize);
356 return _mfGlObjectLastReinitialize[index];
361 #ifdef OSG_MT_CPTR_ASPECT
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,
383 if(FieldBits::NoField != (GlObjectEventCounterFieldMask & whichField))
384 _sfGlObjectEventCounter.syncWith(pFrom->_sfGlObjectEventCounter);
386 if(FieldBits::NoField != (GlObjectLastRefreshFieldMask & whichField))
387 _mfGlObjectLastRefresh.syncWith(pFrom->_mfGlObjectLastRefresh,
392 if(FieldBits::NoField != (GlObjectLastReinitializeFieldMask & whichField))
393 _mfGlObjectLastReinitialize.syncWith(pFrom->_mfGlObjectLastReinitialize,
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,
432 const Char8 *WindowBase::getClassname(void)
436 OSG_GEN_CONTAINERPTR(Window);