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 &CSMViewportBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 CSMViewportBase::getClassTypeId(void)
70 OSG::UInt16 CSMViewportBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMViewport::_sfLeftBottom field.
80 Vec2f &CSMViewportBase::editLeftBottom(void)
82 editSField(LeftBottomFieldMask);
84 return _sfLeftBottom.getValue();
87 //! Get the value of the CSMViewport::_sfLeftBottom field.
89 const Vec2f &CSMViewportBase::getLeftBottom(void) const
91 return _sfLeftBottom.getValue();
94 //! Set the value of the CSMViewport::_sfLeftBottom field.
96 void CSMViewportBase::setLeftBottom(const Vec2f &value)
98 editSField(LeftBottomFieldMask);
100 _sfLeftBottom.setValue(value);
102 //! Get the value of the CSMViewport::_sfRightTop field.
105 Vec2f &CSMViewportBase::editRightTop(void)
107 editSField(RightTopFieldMask);
109 return _sfRightTop.getValue();
112 //! Get the value of the CSMViewport::_sfRightTop field.
114 const Vec2f &CSMViewportBase::getRightTop(void) const
116 return _sfRightTop.getValue();
119 //! Set the value of the CSMViewport::_sfRightTop field.
121 void CSMViewportBase::setRightTop(const Vec2f &value)
123 editSField(RightTopFieldMask);
125 _sfRightTop.setValue(value);
127 //! Get the value of the CSMViewport::_sfTravMask field.
130 UInt32 &CSMViewportBase::editTravMask(void)
132 editSField(TravMaskFieldMask);
134 return _sfTravMask.getValue();
137 //! Get the value of the CSMViewport::_sfTravMask field.
139 UInt32 CSMViewportBase::getTravMask(void) const
141 return _sfTravMask.getValue();
144 //! Set the value of the CSMViewport::_sfTravMask field.
146 void CSMViewportBase::setTravMask(const UInt32 value)
148 editSField(TravMaskFieldMask);
150 _sfTravMask.setValue(value);
152 //! Get the value of the CSMViewport::_sfStereoMode field.
155 std::string &CSMViewportBase::editStereoMode(void)
157 editSField(StereoModeFieldMask);
159 return _sfStereoMode.getValue();
162 //! Get the value of the CSMViewport::_sfStereoMode field.
164 const std::string &CSMViewportBase::getStereoMode(void) const
166 return _sfStereoMode.getValue();
169 //! Set the value of the CSMViewport::_sfStereoMode field.
171 void CSMViewportBase::setStereoMode(const std::string &value)
173 editSField(StereoModeFieldMask);
175 _sfStereoMode.setValue(value);
177 //! Get the value of the CSMViewport::_sfPassive field.
180 bool &CSMViewportBase::editPassive(void)
182 editSField(PassiveFieldMask);
184 return _sfPassive.getValue();
187 //! Get the value of the CSMViewport::_sfPassive field.
189 bool CSMViewportBase::getPassive(void) const
191 return _sfPassive.getValue();
194 //! Set the value of the CSMViewport::_sfPassive field.
196 void CSMViewportBase::setPassive(const bool value)
198 editSField(PassiveFieldMask);
200 _sfPassive.setValue(value);
202 //! Get the value of the CSMViewport::_sfServerId field.
205 Int32 &CSMViewportBase::editServerId(void)
207 editSField(ServerIdFieldMask);
209 return _sfServerId.getValue();
212 //! Get the value of the CSMViewport::_sfServerId field.
214 Int32 CSMViewportBase::getServerId(void) const
216 return _sfServerId.getValue();
219 //! Set the value of the CSMViewport::_sfServerId field.
221 void CSMViewportBase::setServerId(const Int32 value)
223 editSField(ServerIdFieldMask);
225 _sfServerId.setValue(value);
227 //! Get the value of the CSMViewport::_sfMouseDataVC field.
230 MouseData &CSMViewportBase::editMouseDataVC(void)
232 editSField(MouseDataVCFieldMask);
234 return _sfMouseDataVC.getValue();
237 //! Get the value of the CSMViewport::_sfMouseDataVC field.
239 const MouseData &CSMViewportBase::getMouseDataVC(void) const
241 return _sfMouseDataVC.getValue();
244 //! Set the value of the CSMViewport::_sfMouseDataVC field.
246 void CSMViewportBase::setMouseDataVC(const MouseData &value)
248 editSField(MouseDataVCFieldMask);
250 _sfMouseDataVC.setValue(value);
252 //! Get the value of the CSMViewport::_sfMTouchDataVC field.
255 MTouchData &CSMViewportBase::editMTouchDataVC(void)
257 editSField(MTouchDataVCFieldMask);
259 return _sfMTouchDataVC.getValue();
262 //! Get the value of the CSMViewport::_sfMTouchDataVC field.
264 const MTouchData &CSMViewportBase::getMTouchDataVC(void) const
266 return _sfMTouchDataVC.getValue();
269 //! Set the value of the CSMViewport::_sfMTouchDataVC field.
271 void CSMViewportBase::setMTouchDataVC(const MTouchData &value)
273 editSField(MTouchDataVCFieldMask);
275 _sfMTouchDataVC.setValue(value);
280 #ifdef OSG_MT_CPTR_ASPECT
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,
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);
336 const Char8 *CSMViewportBase::getClassname(void)
338 return "CSMViewport";
340 OSG_GEN_CONTAINERPTR(CSMViewport);