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 &CSMWindowBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 CSMWindowBase::getClassTypeId(void)
70 OSG::UInt16 CSMWindowBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMWindow::_sfMouseData field.
80 MouseData &CSMWindowBase::editMouseData(void)
82 editSField(MouseDataFieldMask);
84 return _sfMouseData.getValue();
87 //! Get the value of the CSMWindow::_sfMouseData field.
89 const MouseData &CSMWindowBase::getMouseData(void) const
91 return _sfMouseData.getValue();
94 //! Set the value of the CSMWindow::_sfMouseData field.
96 void CSMWindowBase::setMouseData(const MouseData &value)
98 editSField(MouseDataFieldMask);
100 _sfMouseData.setValue(value);
102 //! Get the value of the CSMWindow::_sfMTouchData field.
105 MTouchData &CSMWindowBase::editMTouchData(void)
107 editSField(MTouchDataFieldMask);
109 return _sfMTouchData.getValue();
112 //! Get the value of the CSMWindow::_sfMTouchData field.
114 const MTouchData &CSMWindowBase::getMTouchData(void) const
116 return _sfMTouchData.getValue();
119 //! Set the value of the CSMWindow::_sfMTouchData field.
121 void CSMWindowBase::setMTouchData(const MTouchData &value)
123 editSField(MTouchDataFieldMask);
125 _sfMTouchData.setValue(value);
127 //! Get the value of the CSMWindow::_sfMTouchDataWC field.
130 MTouchData &CSMWindowBase::editMTouchDataWC(void)
132 editSField(MTouchDataWCFieldMask);
134 return _sfMTouchDataWC.getValue();
137 //! Get the value of the CSMWindow::_sfMTouchDataWC field.
139 const MTouchData &CSMWindowBase::getMTouchDataWC(void) const
141 return _sfMTouchDataWC.getValue();
144 //! Set the value of the CSMWindow::_sfMTouchDataWC field.
146 void CSMWindowBase::setMTouchDataWC(const MTouchData &value)
148 editSField(MTouchDataWCFieldMask);
150 _sfMTouchDataWC.setValue(value);
152 //! Get the value of the CSMWindow::_sfGestureData field.
155 GestureData &CSMWindowBase::editGestureData(void)
157 editSField(GestureDataFieldMask);
159 return _sfGestureData.getValue();
162 //! Get the value of the CSMWindow::_sfGestureData field.
164 const GestureData &CSMWindowBase::getGestureData(void) const
166 return _sfGestureData.getValue();
169 //! Set the value of the CSMWindow::_sfGestureData field.
171 void CSMWindowBase::setGestureData(const GestureData &value)
173 editSField(GestureDataFieldMask);
175 _sfGestureData.setValue(value);
177 //! Get the value of the CSMWindow::_sfMouseAsMTouch field.
180 bool &CSMWindowBase::editMouseAsMTouch(void)
182 editSField(MouseAsMTouchFieldMask);
184 return _sfMouseAsMTouch.getValue();
187 //! Get the value of the CSMWindow::_sfMouseAsMTouch field.
189 bool CSMWindowBase::getMouseAsMTouch(void) const
191 return _sfMouseAsMTouch.getValue();
194 //! Set the value of the CSMWindow::_sfMouseAsMTouch field.
196 void CSMWindowBase::setMouseAsMTouch(const bool value)
198 editSField(MouseAsMTouchFieldMask);
200 _sfMouseAsMTouch.setValue(value);
202 //! Get the value of the CSMWindow::_sfSize field.
205 Vec2f &CSMWindowBase::editSize(void)
207 editSField(SizeFieldMask);
209 return _sfSize.getValue();
212 //! Get the value of the CSMWindow::_sfSize field.
214 const Vec2f &CSMWindowBase::getSize(void) const
216 return _sfSize.getValue();
219 //! Set the value of the CSMWindow::_sfSize field.
221 void CSMWindowBase::setSize(const Vec2f &value)
223 editSField(SizeFieldMask);
225 _sfSize.setValue(value);
227 //! Get the value of the CSMWindow::_sfPosition field.
230 Vec2f &CSMWindowBase::editPosition(void)
232 editSField(PositionFieldMask);
234 return _sfPosition.getValue();
237 //! Get the value of the CSMWindow::_sfPosition field.
239 const Vec2f &CSMWindowBase::getPosition(void) const
241 return _sfPosition.getValue();
244 //! Set the value of the CSMWindow::_sfPosition field.
246 void CSMWindowBase::setPosition(const Vec2f &value)
248 editSField(PositionFieldMask);
250 _sfPosition.setValue(value);
252 //! Get the value of the CSMWindow::_sfDecorEnabled field.
255 bool &CSMWindowBase::editDecorEnabled(void)
257 editSField(DecorEnabledFieldMask);
259 return _sfDecorEnabled.getValue();
262 //! Get the value of the CSMWindow::_sfDecorEnabled field.
264 bool CSMWindowBase::getDecorEnabled(void) const
266 return _sfDecorEnabled.getValue();
269 //! Set the value of the CSMWindow::_sfDecorEnabled field.
271 void CSMWindowBase::setDecorEnabled(const bool value)
273 editSField(DecorEnabledFieldMask);
275 _sfDecorEnabled.setValue(value);
277 //! Get the value of the CSMWindow::_sfRequestMajor field.
280 Int32 &CSMWindowBase::editRequestMajor(void)
282 editSField(RequestMajorFieldMask);
284 return _sfRequestMajor.getValue();
287 //! Get the value of the CSMWindow::_sfRequestMajor field.
289 Int32 CSMWindowBase::getRequestMajor(void) const
291 return _sfRequestMajor.getValue();
294 //! Set the value of the CSMWindow::_sfRequestMajor field.
296 void CSMWindowBase::setRequestMajor(const Int32 value)
298 editSField(RequestMajorFieldMask);
300 _sfRequestMajor.setValue(value);
302 //! Get the value of the CSMWindow::_sfRequestMinor field.
305 Int32 &CSMWindowBase::editRequestMinor(void)
307 editSField(RequestMinorFieldMask);
309 return _sfRequestMinor.getValue();
312 //! Get the value of the CSMWindow::_sfRequestMinor field.
314 Int32 CSMWindowBase::getRequestMinor(void) const
316 return _sfRequestMinor.getValue();
319 //! Set the value of the CSMWindow::_sfRequestMinor field.
321 void CSMWindowBase::setRequestMinor(const Int32 value)
323 editSField(RequestMinorFieldMask);
325 _sfRequestMinor.setValue(value);
327 //! Get the value of the CSMWindow::_sfEnableForwardCompatContext field.
330 bool &CSMWindowBase::editEnableForwardCompatContext(void)
332 editSField(EnableForwardCompatContextFieldMask);
334 return _sfEnableForwardCompatContext.getValue();
337 //! Get the value of the CSMWindow::_sfEnableForwardCompatContext field.
339 bool CSMWindowBase::getEnableForwardCompatContext(void) const
341 return _sfEnableForwardCompatContext.getValue();
344 //! Set the value of the CSMWindow::_sfEnableForwardCompatContext field.
346 void CSMWindowBase::setEnableForwardCompatContext(const bool value)
348 editSField(EnableForwardCompatContextFieldMask);
350 _sfEnableForwardCompatContext.setValue(value);
352 //! Get the value of the CSMWindow::_sfEnableDebugContext field.
355 bool &CSMWindowBase::editEnableDebugContext(void)
357 editSField(EnableDebugContextFieldMask);
359 return _sfEnableDebugContext.getValue();
362 //! Get the value of the CSMWindow::_sfEnableDebugContext field.
364 bool CSMWindowBase::getEnableDebugContext(void) const
366 return _sfEnableDebugContext.getValue();
369 //! Set the value of the CSMWindow::_sfEnableDebugContext field.
371 void CSMWindowBase::setEnableDebugContext(const bool value)
373 editSField(EnableDebugContextFieldMask);
375 _sfEnableDebugContext.setValue(value);
377 //! Get the value of the CSMWindow::_sfIgnoreAllExtensions field.
380 bool &CSMWindowBase::editIgnoreAllExtensions(void)
382 editSField(IgnoreAllExtensionsFieldMask);
384 return _sfIgnoreAllExtensions.getValue();
387 //! Get the value of the CSMWindow::_sfIgnoreAllExtensions field.
389 bool CSMWindowBase::getIgnoreAllExtensions(void) const
391 return _sfIgnoreAllExtensions.getValue();
394 //! Set the value of the CSMWindow::_sfIgnoreAllExtensions field.
396 void CSMWindowBase::setIgnoreAllExtensions(const bool value)
398 editSField(IgnoreAllExtensionsFieldMask);
400 _sfIgnoreAllExtensions.setValue(value);
402 //! Get the value of the CSMWindow::_sfRequestSamples field.
405 UInt32 &CSMWindowBase::editRequestSamples(void)
407 editSField(RequestSamplesFieldMask);
409 return _sfRequestSamples.getValue();
412 //! Get the value of the CSMWindow::_sfRequestSamples field.
414 UInt32 CSMWindowBase::getRequestSamples(void) const
416 return _sfRequestSamples.getValue();
419 //! Set the value of the CSMWindow::_sfRequestSamples field.
421 void CSMWindowBase::setRequestSamples(const UInt32 value)
423 editSField(RequestSamplesFieldMask);
425 _sfRequestSamples.setValue(value);
427 //! Get the value of the CSMWindow::_sfEnableFSAA field.
430 bool &CSMWindowBase::editEnableFSAA(void)
432 editSField(EnableFSAAFieldMask);
434 return _sfEnableFSAA.getValue();
437 //! Get the value of the CSMWindow::_sfEnableFSAA field.
439 bool CSMWindowBase::getEnableFSAA(void) const
441 return _sfEnableFSAA.getValue();
444 //! Set the value of the CSMWindow::_sfEnableFSAA field.
446 void CSMWindowBase::setEnableFSAA(const bool value)
448 editSField(EnableFSAAFieldMask);
450 _sfEnableFSAA.setValue(value);
452 //! Get the value of the CSMWindow::_sfFsaaHint field.
455 UInt32 &CSMWindowBase::editFsaaHint(void)
457 editSField(FsaaHintFieldMask);
459 return _sfFsaaHint.getValue();
462 //! Get the value of the CSMWindow::_sfFsaaHint field.
464 UInt32 CSMWindowBase::getFsaaHint(void) const
466 return _sfFsaaHint.getValue();
469 //! Set the value of the CSMWindow::_sfFsaaHint field.
471 void CSMWindowBase::setFsaaHint(const UInt32 value)
473 editSField(FsaaHintFieldMask);
475 _sfFsaaHint.setValue(value);
477 //! Get the value of the CSMWindow::_sfPartitionDrawMode field.
480 UInt32 &CSMWindowBase::editPartitionDrawMode(void)
482 editSField(PartitionDrawModeFieldMask);
484 return _sfPartitionDrawMode.getValue();
487 //! Get the value of the CSMWindow::_sfPartitionDrawMode field.
489 UInt32 CSMWindowBase::getPartitionDrawMode(void) const
491 return _sfPartitionDrawMode.getValue();
494 //! Set the value of the CSMWindow::_sfPartitionDrawMode field.
496 void CSMWindowBase::setPartitionDrawMode(const UInt32 value)
498 editSField(PartitionDrawModeFieldMask);
500 _sfPartitionDrawMode.setValue(value);
502 //! Get the value of the CSMWindow::_sfRegisterMainLoop field.
505 bool &CSMWindowBase::editRegisterMainLoop(void)
507 editSField(RegisterMainLoopFieldMask);
509 return _sfRegisterMainLoop.getValue();
512 //! Get the value of the CSMWindow::_sfRegisterMainLoop field.
514 bool CSMWindowBase::getRegisterMainLoop(void) const
516 return _sfRegisterMainLoop.getValue();
519 //! Set the value of the CSMWindow::_sfRegisterMainLoop field.
521 void CSMWindowBase::setRegisterMainLoop(const bool value)
523 editSField(RegisterMainLoopFieldMask);
525 _sfRegisterMainLoop.setValue(value);
527 //! Get the value of the CSMWindow::_sfDumpContainer field.
530 bool &CSMWindowBase::editDumpContainer(void)
532 editSField(DumpContainerFieldMask);
534 return _sfDumpContainer.getValue();
537 //! Get the value of the CSMWindow::_sfDumpContainer field.
539 bool CSMWindowBase::getDumpContainer(void) const
541 return _sfDumpContainer.getValue();
544 //! Set the value of the CSMWindow::_sfDumpContainer field.
546 void CSMWindowBase::setDumpContainer(const bool value)
548 editSField(DumpContainerFieldMask);
550 _sfDumpContainer.setValue(value);
552 //! Get the value of the CSMWindow::_sfWindowState field.
555 Int32 &CSMWindowBase::editWindowState(void)
557 editSField(WindowStateFieldMask);
559 return _sfWindowState.getValue();
562 //! Get the value of the CSMWindow::_sfWindowState field.
564 Int32 CSMWindowBase::getWindowState(void) const
566 return _sfWindowState.getValue();
569 //! Set the value of the CSMWindow::_sfWindowState field.
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.
581 const std::string &CSMWindowBase::getIgnoreExtensions(const UInt32 index) const
583 return _mfIgnoreExtensions[index];
587 MFString ::reference CSMWindowBase::editIgnoreExtensions(const UInt32 index)
589 editMField(IgnoreExtensionsFieldMask, _mfIgnoreExtensions);
591 return _mfIgnoreExtensions[index];
595 #ifdef OSG_MT_CPTR_ASPECT
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,
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,
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);
687 const Char8 *CSMWindowBase::getClassname(void)
691 OSG_GEN_CONTAINERPTR(CSMWindow);