changed: gcc8 base update
[opensg.git] / Source / Contrib / ComplexSceneManager / OSGCSMViewportBase.inl
blob62fb43297bbe033b73618482eac357a3f9b71072
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 CSMViewport!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &CSMViewportBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 CSMViewportBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 CSMViewportBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMViewport::_sfLeftBottom field.
79 inline
80 Vec2f &CSMViewportBase::editLeftBottom(void)
82     editSField(LeftBottomFieldMask);
84     return _sfLeftBottom.getValue();
87 //! Get the value of the CSMViewport::_sfLeftBottom field.
88 inline
89 const Vec2f &CSMViewportBase::getLeftBottom(void) const
91     return _sfLeftBottom.getValue();
94 //! Set the value of the CSMViewport::_sfLeftBottom field.
95 inline
96 void CSMViewportBase::setLeftBottom(const Vec2f &value)
98     editSField(LeftBottomFieldMask);
100     _sfLeftBottom.setValue(value);
102 //! Get the value of the CSMViewport::_sfRightTop field.
104 inline
105 Vec2f &CSMViewportBase::editRightTop(void)
107     editSField(RightTopFieldMask);
109     return _sfRightTop.getValue();
112 //! Get the value of the CSMViewport::_sfRightTop field.
113 inline
114 const Vec2f &CSMViewportBase::getRightTop(void) const
116     return _sfRightTop.getValue();
119 //! Set the value of the CSMViewport::_sfRightTop field.
120 inline
121 void CSMViewportBase::setRightTop(const Vec2f &value)
123     editSField(RightTopFieldMask);
125     _sfRightTop.setValue(value);
127 //! Get the value of the CSMViewport::_sfTravMask field.
129 inline
130 UInt32 &CSMViewportBase::editTravMask(void)
132     editSField(TravMaskFieldMask);
134     return _sfTravMask.getValue();
137 //! Get the value of the CSMViewport::_sfTravMask field.
138 inline
139       UInt32  CSMViewportBase::getTravMask(void) const
141     return _sfTravMask.getValue();
144 //! Set the value of the CSMViewport::_sfTravMask field.
145 inline
146 void CSMViewportBase::setTravMask(const UInt32 value)
148     editSField(TravMaskFieldMask);
150     _sfTravMask.setValue(value);
152 //! Get the value of the CSMViewport::_sfStereoMode field.
154 inline
155 std::string &CSMViewportBase::editStereoMode(void)
157     editSField(StereoModeFieldMask);
159     return _sfStereoMode.getValue();
162 //! Get the value of the CSMViewport::_sfStereoMode field.
163 inline
164 const std::string &CSMViewportBase::getStereoMode(void) const
166     return _sfStereoMode.getValue();
169 //! Set the value of the CSMViewport::_sfStereoMode field.
170 inline
171 void CSMViewportBase::setStereoMode(const std::string &value)
173     editSField(StereoModeFieldMask);
175     _sfStereoMode.setValue(value);
177 //! Get the value of the CSMViewport::_sfPassive field.
179 inline
180 bool &CSMViewportBase::editPassive(void)
182     editSField(PassiveFieldMask);
184     return _sfPassive.getValue();
187 //! Get the value of the CSMViewport::_sfPassive field.
188 inline
189       bool  CSMViewportBase::getPassive(void) const
191     return _sfPassive.getValue();
194 //! Set the value of the CSMViewport::_sfPassive field.
195 inline
196 void CSMViewportBase::setPassive(const bool value)
198     editSField(PassiveFieldMask);
200     _sfPassive.setValue(value);
202 //! Get the value of the CSMViewport::_sfServerId field.
204 inline
205 Int32 &CSMViewportBase::editServerId(void)
207     editSField(ServerIdFieldMask);
209     return _sfServerId.getValue();
212 //! Get the value of the CSMViewport::_sfServerId field.
213 inline
214       Int32  CSMViewportBase::getServerId(void) const
216     return _sfServerId.getValue();
219 //! Set the value of the CSMViewport::_sfServerId field.
220 inline
221 void CSMViewportBase::setServerId(const Int32 value)
223     editSField(ServerIdFieldMask);
225     _sfServerId.setValue(value);
227 //! Get the value of the CSMViewport::_sfMouseDataVC field.
229 inline
230 MouseData &CSMViewportBase::editMouseDataVC(void)
232     editSField(MouseDataVCFieldMask);
234     return _sfMouseDataVC.getValue();
237 //! Get the value of the CSMViewport::_sfMouseDataVC field.
238 inline
239 const MouseData &CSMViewportBase::getMouseDataVC(void) const
241     return _sfMouseDataVC.getValue();
244 //! Set the value of the CSMViewport::_sfMouseDataVC field.
245 inline
246 void CSMViewportBase::setMouseDataVC(const MouseData &value)
248     editSField(MouseDataVCFieldMask);
250     _sfMouseDataVC.setValue(value);
252 //! Get the value of the CSMViewport::_sfMTouchDataVC field.
254 inline
255 MTouchData &CSMViewportBase::editMTouchDataVC(void)
257     editSField(MTouchDataVCFieldMask);
259     return _sfMTouchDataVC.getValue();
262 //! Get the value of the CSMViewport::_sfMTouchDataVC field.
263 inline
264 const MTouchData &CSMViewportBase::getMTouchDataVC(void) const
266     return _sfMTouchDataVC.getValue();
269 //! Set the value of the CSMViewport::_sfMTouchDataVC field.
270 inline
271 void CSMViewportBase::setMTouchDataVC(const MTouchData &value)
273     editSField(MTouchDataVCFieldMask);
275     _sfMTouchDataVC.setValue(value);
280 #ifdef OSG_MT_CPTR_ASPECT
281 inline
282 void CSMViewportBase::execSync (      CSMViewportBase *pFrom,
283                                         ConstFieldMaskArg  whichField,
284                                         AspectOffsetStore &oOffsets,
285                                         ConstFieldMaskArg  syncMode,
286                                   const UInt32             uiSyncInfo)
288     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
290     if(FieldBits::NoField != (RootFieldMask & whichField))
291         _sfRoot.syncWith(pFrom->_sfRoot);
293     if(FieldBits::NoField != (CameraFieldMask & whichField))
294         _sfCamera.syncWith(pFrom->_sfCamera);
296     if(FieldBits::NoField != (BackgroundFieldMask & whichField))
297         _sfBackground.syncWith(pFrom->_sfBackground);
299     if(FieldBits::NoField != (ForegroundsFieldMask & whichField))
300         _mfForegrounds.syncWith(pFrom->_mfForegrounds,
301                                 syncMode,
302                                 uiSyncInfo,
303                                 oOffsets);
305     if(FieldBits::NoField != (LeftBottomFieldMask & whichField))
306         _sfLeftBottom.syncWith(pFrom->_sfLeftBottom);
308     if(FieldBits::NoField != (RightTopFieldMask & whichField))
309         _sfRightTop.syncWith(pFrom->_sfRightTop);
311     if(FieldBits::NoField != (TravMaskFieldMask & whichField))
312         _sfTravMask.syncWith(pFrom->_sfTravMask);
314     if(FieldBits::NoField != (RenderOptionsFieldMask & whichField))
315         _sfRenderOptions.syncWith(pFrom->_sfRenderOptions);
317     if(FieldBits::NoField != (StereoModeFieldMask & whichField))
318         _sfStereoMode.syncWith(pFrom->_sfStereoMode);
320     if(FieldBits::NoField != (PassiveFieldMask & whichField))
321         _sfPassive.syncWith(pFrom->_sfPassive);
323     if(FieldBits::NoField != (ServerIdFieldMask & whichField))
324         _sfServerId.syncWith(pFrom->_sfServerId);
326     if(FieldBits::NoField != (MouseDataVCFieldMask & whichField))
327         _sfMouseDataVC.syncWith(pFrom->_sfMouseDataVC);
329     if(FieldBits::NoField != (MTouchDataVCFieldMask & whichField))
330         _sfMTouchDataVC.syncWith(pFrom->_sfMTouchDataVC);
332 #endif
335 inline
336 const Char8 *CSMViewportBase::getClassname(void)
338     return "CSMViewport";
340 OSG_GEN_CONTAINERPTR(CSMViewport);
342 OSG_END_NAMESPACE