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 &ViewareaBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 ViewareaBase::getClassTypeId(void)
70 OSG::UInt16 ViewareaBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the Viewarea::_sfLeft field.
80 Real32 &ViewareaBase::editLeft(void)
82 editSField(LeftFieldMask);
84 return _sfLeft.getValue();
87 //! Get the value of the Viewarea::_sfLeft field.
89 Real32 ViewareaBase::getLeft(void) const
91 return _sfLeft.getValue();
94 //! Set the value of the Viewarea::_sfLeft field.
96 void ViewareaBase::setLeft(const Real32 value)
98 editSField(LeftFieldMask);
100 _sfLeft.setValue(value);
102 //! Get the value of the Viewarea::_sfRight field.
105 Real32 &ViewareaBase::editRight(void)
107 editSField(RightFieldMask);
109 return _sfRight.getValue();
112 //! Get the value of the Viewarea::_sfRight field.
114 Real32 ViewareaBase::getRight(void) const
116 return _sfRight.getValue();
119 //! Set the value of the Viewarea::_sfRight field.
121 void ViewareaBase::setRight(const Real32 value)
123 editSField(RightFieldMask);
125 _sfRight.setValue(value);
127 //! Get the value of the Viewarea::_sfBottom field.
130 Real32 &ViewareaBase::editBottom(void)
132 editSField(BottomFieldMask);
134 return _sfBottom.getValue();
137 //! Get the value of the Viewarea::_sfBottom field.
139 Real32 ViewareaBase::getBottom(void) const
141 return _sfBottom.getValue();
144 //! Set the value of the Viewarea::_sfBottom field.
146 void ViewareaBase::setBottom(const Real32 value)
148 editSField(BottomFieldMask);
150 _sfBottom.setValue(value);
152 //! Get the value of the Viewarea::_sfTop field.
155 Real32 &ViewareaBase::editTop(void)
157 editSField(TopFieldMask);
159 return _sfTop.getValue();
162 //! Get the value of the Viewarea::_sfTop field.
164 Real32 ViewareaBase::getTop(void) const
166 return _sfTop.getValue();
169 //! Set the value of the Viewarea::_sfTop field.
171 void ViewareaBase::setTop(const Real32 value)
173 editSField(TopFieldMask);
175 _sfTop.setValue(value);
177 //! Get the value of the Viewarea::_sfTravMask field.
180 UInt32 &ViewareaBase::editTravMask(void)
182 editSField(TravMaskFieldMask);
184 return _sfTravMask.getValue();
187 //! Get the value of the Viewarea::_sfTravMask field.
189 UInt32 ViewareaBase::getTravMask(void) const
191 return _sfTravMask.getValue();
194 //! Set the value of the Viewarea::_sfTravMask field.
196 void ViewareaBase::setTravMask(const UInt32 value)
198 editSField(TravMaskFieldMask);
200 _sfTravMask.setValue(value);
202 //! Get the value of the Viewarea::_sfEnabled field.
205 bool &ViewareaBase::editEnabled(void)
207 editSField(EnabledFieldMask);
209 return _sfEnabled.getValue();
212 //! Get the value of the Viewarea::_sfEnabled field.
214 bool ViewareaBase::getEnabled(void) const
216 return _sfEnabled.getValue();
219 //! Set the value of the Viewarea::_sfEnabled field.
221 void ViewareaBase::setEnabled(const bool value)
223 editSField(EnabledFieldMask);
225 _sfEnabled.setValue(value);
227 //! Get the value of the Viewarea::_sfDrawTime field.
230 Real32 &ViewareaBase::editDrawTime(void)
232 editSField(DrawTimeFieldMask);
234 return _sfDrawTime.getValue();
237 //! Get the value of the Viewarea::_sfDrawTime field.
239 Real32 ViewareaBase::getDrawTime(void) const
241 return _sfDrawTime.getValue();
244 //! Set the value of the Viewarea::_sfDrawTime field.
246 void ViewareaBase::setDrawTime(const Real32 value)
248 editSField(DrawTimeFieldMask);
250 _sfDrawTime.setValue(value);
252 //! Get the value of the Viewarea::_sfDrawableId field.
255 Int32 &ViewareaBase::editDrawableId(void)
257 editSField(DrawableIdFieldMask);
259 return _sfDrawableId.getValue();
262 //! Get the value of the Viewarea::_sfDrawableId field.
264 Int32 ViewareaBase::getDrawableId(void) const
266 return _sfDrawableId.getValue();
269 //! Set the value of the Viewarea::_sfDrawableId field.
271 void ViewareaBase::setDrawableId(const Int32 value)
273 editSField(DrawableIdFieldMask);
275 _sfDrawableId.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
281 void ViewareaBase::execSync ( ViewareaBase *pFrom,
282 ConstFieldMaskArg whichField,
283 AspectOffsetStore &oOffsets,
284 ConstFieldMaskArg syncMode,
285 const UInt32 uiSyncInfo)
287 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
289 if(FieldBits::NoField != (LeftFieldMask & whichField))
290 _sfLeft.syncWith(pFrom->_sfLeft);
292 if(FieldBits::NoField != (RightFieldMask & whichField))
293 _sfRight.syncWith(pFrom->_sfRight);
295 if(FieldBits::NoField != (BottomFieldMask & whichField))
296 _sfBottom.syncWith(pFrom->_sfBottom);
298 if(FieldBits::NoField != (TopFieldMask & whichField))
299 _sfTop.syncWith(pFrom->_sfTop);
301 if(FieldBits::NoField != (TravMaskFieldMask & whichField))
302 _sfTravMask.syncWith(pFrom->_sfTravMask);
304 if(FieldBits::NoField != (EnabledFieldMask & whichField))
305 _sfEnabled.syncWith(pFrom->_sfEnabled);
307 if(FieldBits::NoField != (DrawTimeFieldMask & whichField))
308 _sfDrawTime.syncWith(pFrom->_sfDrawTime);
310 if(FieldBits::NoField != (DrawableIdFieldMask & whichField))
311 _sfDrawableId.syncWith(pFrom->_sfDrawableId);
313 if(FieldBits::NoField != (RenderOptionsFieldMask & whichField))
314 _sfRenderOptions.syncWith(pFrom->_sfRenderOptions);
320 const Char8 *ViewareaBase::getClassname(void)
324 OSG_GEN_CONTAINERPTR(Viewarea);