changed: gcc8 base update
[opensg.git] / Source / Contrib / ComplexSceneManager / OSGCSMWindowBase.inl
blob456eb5ca13f1d9a8b2422029a0e159f0e4c72b3e
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 CSMWindow!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &CSMWindowBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 CSMWindowBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 CSMWindowBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMWindow::_sfMouseData field.
79 inline
80 MouseData &CSMWindowBase::editMouseData(void)
82     editSField(MouseDataFieldMask);
84     return _sfMouseData.getValue();
87 //! Get the value of the CSMWindow::_sfMouseData field.
88 inline
89 const MouseData &CSMWindowBase::getMouseData(void) const
91     return _sfMouseData.getValue();
94 //! Set the value of the CSMWindow::_sfMouseData field.
95 inline
96 void CSMWindowBase::setMouseData(const MouseData &value)
98     editSField(MouseDataFieldMask);
100     _sfMouseData.setValue(value);
102 //! Get the value of the CSMWindow::_sfMTouchData field.
104 inline
105 MTouchData &CSMWindowBase::editMTouchData(void)
107     editSField(MTouchDataFieldMask);
109     return _sfMTouchData.getValue();
112 //! Get the value of the CSMWindow::_sfMTouchData field.
113 inline
114 const MTouchData &CSMWindowBase::getMTouchData(void) const
116     return _sfMTouchData.getValue();
119 //! Set the value of the CSMWindow::_sfMTouchData field.
120 inline
121 void CSMWindowBase::setMTouchData(const MTouchData &value)
123     editSField(MTouchDataFieldMask);
125     _sfMTouchData.setValue(value);
127 //! Get the value of the CSMWindow::_sfMTouchDataWC field.
129 inline
130 MTouchData &CSMWindowBase::editMTouchDataWC(void)
132     editSField(MTouchDataWCFieldMask);
134     return _sfMTouchDataWC.getValue();
137 //! Get the value of the CSMWindow::_sfMTouchDataWC field.
138 inline
139 const MTouchData &CSMWindowBase::getMTouchDataWC(void) const
141     return _sfMTouchDataWC.getValue();
144 //! Set the value of the CSMWindow::_sfMTouchDataWC field.
145 inline
146 void CSMWindowBase::setMTouchDataWC(const MTouchData &value)
148     editSField(MTouchDataWCFieldMask);
150     _sfMTouchDataWC.setValue(value);
152 //! Get the value of the CSMWindow::_sfGestureData field.
154 inline
155 GestureData &CSMWindowBase::editGestureData(void)
157     editSField(GestureDataFieldMask);
159     return _sfGestureData.getValue();
162 //! Get the value of the CSMWindow::_sfGestureData field.
163 inline
164 const GestureData &CSMWindowBase::getGestureData(void) const
166     return _sfGestureData.getValue();
169 //! Set the value of the CSMWindow::_sfGestureData field.
170 inline
171 void CSMWindowBase::setGestureData(const GestureData &value)
173     editSField(GestureDataFieldMask);
175     _sfGestureData.setValue(value);
177 //! Get the value of the CSMWindow::_sfMouseAsMTouch field.
179 inline
180 bool &CSMWindowBase::editMouseAsMTouch(void)
182     editSField(MouseAsMTouchFieldMask);
184     return _sfMouseAsMTouch.getValue();
187 //! Get the value of the CSMWindow::_sfMouseAsMTouch field.
188 inline
189       bool  CSMWindowBase::getMouseAsMTouch(void) const
191     return _sfMouseAsMTouch.getValue();
194 //! Set the value of the CSMWindow::_sfMouseAsMTouch field.
195 inline
196 void CSMWindowBase::setMouseAsMTouch(const bool value)
198     editSField(MouseAsMTouchFieldMask);
200     _sfMouseAsMTouch.setValue(value);
202 //! Get the value of the CSMWindow::_sfSize field.
204 inline
205 Vec2f &CSMWindowBase::editSize(void)
207     editSField(SizeFieldMask);
209     return _sfSize.getValue();
212 //! Get the value of the CSMWindow::_sfSize field.
213 inline
214 const Vec2f &CSMWindowBase::getSize(void) const
216     return _sfSize.getValue();
219 //! Set the value of the CSMWindow::_sfSize field.
220 inline
221 void CSMWindowBase::setSize(const Vec2f &value)
223     editSField(SizeFieldMask);
225     _sfSize.setValue(value);
227 //! Get the value of the CSMWindow::_sfPosition field.
229 inline
230 Vec2f &CSMWindowBase::editPosition(void)
232     editSField(PositionFieldMask);
234     return _sfPosition.getValue();
237 //! Get the value of the CSMWindow::_sfPosition field.
238 inline
239 const Vec2f &CSMWindowBase::getPosition(void) const
241     return _sfPosition.getValue();
244 //! Set the value of the CSMWindow::_sfPosition field.
245 inline
246 void CSMWindowBase::setPosition(const Vec2f &value)
248     editSField(PositionFieldMask);
250     _sfPosition.setValue(value);
252 //! Get the value of the CSMWindow::_sfDecorEnabled field.
254 inline
255 bool &CSMWindowBase::editDecorEnabled(void)
257     editSField(DecorEnabledFieldMask);
259     return _sfDecorEnabled.getValue();
262 //! Get the value of the CSMWindow::_sfDecorEnabled field.
263 inline
264       bool  CSMWindowBase::getDecorEnabled(void) const
266     return _sfDecorEnabled.getValue();
269 //! Set the value of the CSMWindow::_sfDecorEnabled field.
270 inline
271 void CSMWindowBase::setDecorEnabled(const bool value)
273     editSField(DecorEnabledFieldMask);
275     _sfDecorEnabled.setValue(value);
277 //! Get the value of the CSMWindow::_sfRequestMajor field.
279 inline
280 Int32 &CSMWindowBase::editRequestMajor(void)
282     editSField(RequestMajorFieldMask);
284     return _sfRequestMajor.getValue();
287 //! Get the value of the CSMWindow::_sfRequestMajor field.
288 inline
289       Int32  CSMWindowBase::getRequestMajor(void) const
291     return _sfRequestMajor.getValue();
294 //! Set the value of the CSMWindow::_sfRequestMajor field.
295 inline
296 void CSMWindowBase::setRequestMajor(const Int32 value)
298     editSField(RequestMajorFieldMask);
300     _sfRequestMajor.setValue(value);
302 //! Get the value of the CSMWindow::_sfRequestMinor field.
304 inline
305 Int32 &CSMWindowBase::editRequestMinor(void)
307     editSField(RequestMinorFieldMask);
309     return _sfRequestMinor.getValue();
312 //! Get the value of the CSMWindow::_sfRequestMinor field.
313 inline
314       Int32  CSMWindowBase::getRequestMinor(void) const
316     return _sfRequestMinor.getValue();
319 //! Set the value of the CSMWindow::_sfRequestMinor field.
320 inline
321 void CSMWindowBase::setRequestMinor(const Int32 value)
323     editSField(RequestMinorFieldMask);
325     _sfRequestMinor.setValue(value);
327 //! Get the value of the CSMWindow::_sfEnableForwardCompatContext field.
329 inline
330 bool &CSMWindowBase::editEnableForwardCompatContext(void)
332     editSField(EnableForwardCompatContextFieldMask);
334     return _sfEnableForwardCompatContext.getValue();
337 //! Get the value of the CSMWindow::_sfEnableForwardCompatContext field.
338 inline
339       bool  CSMWindowBase::getEnableForwardCompatContext(void) const
341     return _sfEnableForwardCompatContext.getValue();
344 //! Set the value of the CSMWindow::_sfEnableForwardCompatContext field.
345 inline
346 void CSMWindowBase::setEnableForwardCompatContext(const bool value)
348     editSField(EnableForwardCompatContextFieldMask);
350     _sfEnableForwardCompatContext.setValue(value);
352 //! Get the value of the CSMWindow::_sfEnableDebugContext field.
354 inline
355 bool &CSMWindowBase::editEnableDebugContext(void)
357     editSField(EnableDebugContextFieldMask);
359     return _sfEnableDebugContext.getValue();
362 //! Get the value of the CSMWindow::_sfEnableDebugContext field.
363 inline
364       bool  CSMWindowBase::getEnableDebugContext(void) const
366     return _sfEnableDebugContext.getValue();
369 //! Set the value of the CSMWindow::_sfEnableDebugContext field.
370 inline
371 void CSMWindowBase::setEnableDebugContext(const bool value)
373     editSField(EnableDebugContextFieldMask);
375     _sfEnableDebugContext.setValue(value);
377 //! Get the value of the CSMWindow::_sfIgnoreAllExtensions field.
379 inline
380 bool &CSMWindowBase::editIgnoreAllExtensions(void)
382     editSField(IgnoreAllExtensionsFieldMask);
384     return _sfIgnoreAllExtensions.getValue();
387 //! Get the value of the CSMWindow::_sfIgnoreAllExtensions field.
388 inline
389       bool  CSMWindowBase::getIgnoreAllExtensions(void) const
391     return _sfIgnoreAllExtensions.getValue();
394 //! Set the value of the CSMWindow::_sfIgnoreAllExtensions field.
395 inline
396 void CSMWindowBase::setIgnoreAllExtensions(const bool value)
398     editSField(IgnoreAllExtensionsFieldMask);
400     _sfIgnoreAllExtensions.setValue(value);
402 //! Get the value of the CSMWindow::_sfRequestSamples field.
404 inline
405 UInt32 &CSMWindowBase::editRequestSamples(void)
407     editSField(RequestSamplesFieldMask);
409     return _sfRequestSamples.getValue();
412 //! Get the value of the CSMWindow::_sfRequestSamples field.
413 inline
414       UInt32  CSMWindowBase::getRequestSamples(void) const
416     return _sfRequestSamples.getValue();
419 //! Set the value of the CSMWindow::_sfRequestSamples field.
420 inline
421 void CSMWindowBase::setRequestSamples(const UInt32 value)
423     editSField(RequestSamplesFieldMask);
425     _sfRequestSamples.setValue(value);
427 //! Get the value of the CSMWindow::_sfEnableFSAA field.
429 inline
430 bool &CSMWindowBase::editEnableFSAA(void)
432     editSField(EnableFSAAFieldMask);
434     return _sfEnableFSAA.getValue();
437 //! Get the value of the CSMWindow::_sfEnableFSAA field.
438 inline
439       bool  CSMWindowBase::getEnableFSAA(void) const
441     return _sfEnableFSAA.getValue();
444 //! Set the value of the CSMWindow::_sfEnableFSAA field.
445 inline
446 void CSMWindowBase::setEnableFSAA(const bool value)
448     editSField(EnableFSAAFieldMask);
450     _sfEnableFSAA.setValue(value);
452 //! Get the value of the CSMWindow::_sfFsaaHint field.
454 inline
455 UInt32 &CSMWindowBase::editFsaaHint(void)
457     editSField(FsaaHintFieldMask);
459     return _sfFsaaHint.getValue();
462 //! Get the value of the CSMWindow::_sfFsaaHint field.
463 inline
464       UInt32  CSMWindowBase::getFsaaHint(void) const
466     return _sfFsaaHint.getValue();
469 //! Set the value of the CSMWindow::_sfFsaaHint field.
470 inline
471 void CSMWindowBase::setFsaaHint(const UInt32 value)
473     editSField(FsaaHintFieldMask);
475     _sfFsaaHint.setValue(value);
477 //! Get the value of the CSMWindow::_sfPartitionDrawMode field.
479 inline
480 UInt32 &CSMWindowBase::editPartitionDrawMode(void)
482     editSField(PartitionDrawModeFieldMask);
484     return _sfPartitionDrawMode.getValue();
487 //! Get the value of the CSMWindow::_sfPartitionDrawMode field.
488 inline
489       UInt32  CSMWindowBase::getPartitionDrawMode(void) const
491     return _sfPartitionDrawMode.getValue();
494 //! Set the value of the CSMWindow::_sfPartitionDrawMode field.
495 inline
496 void CSMWindowBase::setPartitionDrawMode(const UInt32 value)
498     editSField(PartitionDrawModeFieldMask);
500     _sfPartitionDrawMode.setValue(value);
502 //! Get the value of the CSMWindow::_sfRegisterMainLoop field.
504 inline
505 bool &CSMWindowBase::editRegisterMainLoop(void)
507     editSField(RegisterMainLoopFieldMask);
509     return _sfRegisterMainLoop.getValue();
512 //! Get the value of the CSMWindow::_sfRegisterMainLoop field.
513 inline
514       bool  CSMWindowBase::getRegisterMainLoop(void) const
516     return _sfRegisterMainLoop.getValue();
519 //! Set the value of the CSMWindow::_sfRegisterMainLoop field.
520 inline
521 void CSMWindowBase::setRegisterMainLoop(const bool value)
523     editSField(RegisterMainLoopFieldMask);
525     _sfRegisterMainLoop.setValue(value);
527 //! Get the value of the CSMWindow::_sfDumpContainer field.
529 inline
530 bool &CSMWindowBase::editDumpContainer(void)
532     editSField(DumpContainerFieldMask);
534     return _sfDumpContainer.getValue();
537 //! Get the value of the CSMWindow::_sfDumpContainer field.
538 inline
539       bool  CSMWindowBase::getDumpContainer(void) const
541     return _sfDumpContainer.getValue();
544 //! Set the value of the CSMWindow::_sfDumpContainer field.
545 inline
546 void CSMWindowBase::setDumpContainer(const bool value)
548     editSField(DumpContainerFieldMask);
550     _sfDumpContainer.setValue(value);
552 //! Get the value of the CSMWindow::_sfWindowState field.
554 inline
555 Int32 &CSMWindowBase::editWindowState(void)
557     editSField(WindowStateFieldMask);
559     return _sfWindowState.getValue();
562 //! Get the value of the CSMWindow::_sfWindowState field.
563 inline
564       Int32  CSMWindowBase::getWindowState(void) const
566     return _sfWindowState.getValue();
569 //! Set the value of the CSMWindow::_sfWindowState field.
570 inline
571 void CSMWindowBase::setWindowState(const Int32 value)
573     editSField(WindowStateFieldMask);
575     _sfWindowState.setValue(value);
579 //! Get the value of the \a index element the CSMWindow::_mfIgnoreExtensions field.
580 inline
581 const std::string &CSMWindowBase::getIgnoreExtensions(const UInt32 index) const
583     return _mfIgnoreExtensions[index];
586 inline
587 MFString           ::reference CSMWindowBase::editIgnoreExtensions(const UInt32 index)
589     editMField(IgnoreExtensionsFieldMask, _mfIgnoreExtensions);
591     return _mfIgnoreExtensions[index];
595 #ifdef OSG_MT_CPTR_ASPECT
596 inline
597 void CSMWindowBase::execSync (      CSMWindowBase *pFrom,
598                                         ConstFieldMaskArg  whichField,
599                                         AspectOffsetStore &oOffsets,
600                                         ConstFieldMaskArg  syncMode,
601                                   const UInt32             uiSyncInfo)
603     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
605     if(FieldBits::NoField != (ParentFieldMask & whichField))
606         _sfParent.syncWith(pFrom->_sfParent);
608     if(FieldBits::NoField != (ViewportsFieldMask & whichField))
609         _mfViewports.syncWith(pFrom->_mfViewports,
610                                 syncMode,
611                                 uiSyncInfo,
612                                 oOffsets);
614     if(FieldBits::NoField != (MouseDataFieldMask & whichField))
615         _sfMouseData.syncWith(pFrom->_sfMouseData);
617     if(FieldBits::NoField != (MTouchDataFieldMask & whichField))
618         _sfMTouchData.syncWith(pFrom->_sfMTouchData);
620     if(FieldBits::NoField != (MTouchDataWCFieldMask & whichField))
621         _sfMTouchDataWC.syncWith(pFrom->_sfMTouchDataWC);
623     if(FieldBits::NoField != (GestureDataFieldMask & whichField))
624         _sfGestureData.syncWith(pFrom->_sfGestureData);
626     if(FieldBits::NoField != (MouseAsMTouchFieldMask & whichField))
627         _sfMouseAsMTouch.syncWith(pFrom->_sfMouseAsMTouch);
629     if(FieldBits::NoField != (SizeFieldMask & whichField))
630         _sfSize.syncWith(pFrom->_sfSize);
632     if(FieldBits::NoField != (PositionFieldMask & whichField))
633         _sfPosition.syncWith(pFrom->_sfPosition);
635     if(FieldBits::NoField != (DecorEnabledFieldMask & whichField))
636         _sfDecorEnabled.syncWith(pFrom->_sfDecorEnabled);
638     if(FieldBits::NoField != (RequestMajorFieldMask & whichField))
639         _sfRequestMajor.syncWith(pFrom->_sfRequestMajor);
641     if(FieldBits::NoField != (RequestMinorFieldMask & whichField))
642         _sfRequestMinor.syncWith(pFrom->_sfRequestMinor);
644     if(FieldBits::NoField != (EnableForwardCompatContextFieldMask & whichField))
645         _sfEnableForwardCompatContext.syncWith(pFrom->_sfEnableForwardCompatContext);
647     if(FieldBits::NoField != (EnableDebugContextFieldMask & whichField))
648         _sfEnableDebugContext.syncWith(pFrom->_sfEnableDebugContext);
650     if(FieldBits::NoField != (IgnoreExtensionsFieldMask & whichField))
651         _mfIgnoreExtensions.syncWith(pFrom->_mfIgnoreExtensions,
652                                 syncMode,
653                                 uiSyncInfo,
654                                 oOffsets);
656     if(FieldBits::NoField != (IgnoreAllExtensionsFieldMask & whichField))
657         _sfIgnoreAllExtensions.syncWith(pFrom->_sfIgnoreAllExtensions);
659     if(FieldBits::NoField != (RequestSamplesFieldMask & whichField))
660         _sfRequestSamples.syncWith(pFrom->_sfRequestSamples);
662     if(FieldBits::NoField != (EnableFSAAFieldMask & whichField))
663         _sfEnableFSAA.syncWith(pFrom->_sfEnableFSAA);
665     if(FieldBits::NoField != (FsaaHintFieldMask & whichField))
666         _sfFsaaHint.syncWith(pFrom->_sfFsaaHint);
668     if(FieldBits::NoField != (RenderOptionsFieldMask & whichField))
669         _sfRenderOptions.syncWith(pFrom->_sfRenderOptions);
671     if(FieldBits::NoField != (PartitionDrawModeFieldMask & whichField))
672         _sfPartitionDrawMode.syncWith(pFrom->_sfPartitionDrawMode);
674     if(FieldBits::NoField != (RegisterMainLoopFieldMask & whichField))
675         _sfRegisterMainLoop.syncWith(pFrom->_sfRegisterMainLoop);
677     if(FieldBits::NoField != (DumpContainerFieldMask & whichField))
678         _sfDumpContainer.syncWith(pFrom->_sfDumpContainer);
680     if(FieldBits::NoField != (WindowStateFieldMask & whichField))
681         _sfWindowState.syncWith(pFrom->_sfWindowState);
683 #endif
686 inline
687 const Char8 *CSMWindowBase::getClassname(void)
689     return "CSMWindow";
691 OSG_GEN_CONTAINERPTR(CSMWindow);
693 OSG_END_NAMESPACE