fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Window / Base / OSGViewareaBase.inl
blob1e1ca92b2c52b226a571f4606921ba69620c6506
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 Viewarea!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &ViewareaBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 ViewareaBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 ViewareaBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the Viewarea::_sfLeft field.
79 inline
80 Real32 &ViewareaBase::editLeft(void)
82     editSField(LeftFieldMask);
84     return _sfLeft.getValue();
87 //! Get the value of the Viewarea::_sfLeft field.
88 inline
89       Real32  ViewareaBase::getLeft(void) const
91     return _sfLeft.getValue();
94 //! Set the value of the Viewarea::_sfLeft field.
95 inline
96 void ViewareaBase::setLeft(const Real32 value)
98     editSField(LeftFieldMask);
100     _sfLeft.setValue(value);
102 //! Get the value of the Viewarea::_sfRight field.
104 inline
105 Real32 &ViewareaBase::editRight(void)
107     editSField(RightFieldMask);
109     return _sfRight.getValue();
112 //! Get the value of the Viewarea::_sfRight field.
113 inline
114       Real32  ViewareaBase::getRight(void) const
116     return _sfRight.getValue();
119 //! Set the value of the Viewarea::_sfRight field.
120 inline
121 void ViewareaBase::setRight(const Real32 value)
123     editSField(RightFieldMask);
125     _sfRight.setValue(value);
127 //! Get the value of the Viewarea::_sfBottom field.
129 inline
130 Real32 &ViewareaBase::editBottom(void)
132     editSField(BottomFieldMask);
134     return _sfBottom.getValue();
137 //! Get the value of the Viewarea::_sfBottom field.
138 inline
139       Real32  ViewareaBase::getBottom(void) const
141     return _sfBottom.getValue();
144 //! Set the value of the Viewarea::_sfBottom field.
145 inline
146 void ViewareaBase::setBottom(const Real32 value)
148     editSField(BottomFieldMask);
150     _sfBottom.setValue(value);
152 //! Get the value of the Viewarea::_sfTop field.
154 inline
155 Real32 &ViewareaBase::editTop(void)
157     editSField(TopFieldMask);
159     return _sfTop.getValue();
162 //! Get the value of the Viewarea::_sfTop field.
163 inline
164       Real32  ViewareaBase::getTop(void) const
166     return _sfTop.getValue();
169 //! Set the value of the Viewarea::_sfTop field.
170 inline
171 void ViewareaBase::setTop(const Real32 value)
173     editSField(TopFieldMask);
175     _sfTop.setValue(value);
177 //! Get the value of the Viewarea::_sfTravMask field.
179 inline
180 UInt32 &ViewareaBase::editTravMask(void)
182     editSField(TravMaskFieldMask);
184     return _sfTravMask.getValue();
187 //! Get the value of the Viewarea::_sfTravMask field.
188 inline
189       UInt32  ViewareaBase::getTravMask(void) const
191     return _sfTravMask.getValue();
194 //! Set the value of the Viewarea::_sfTravMask field.
195 inline
196 void ViewareaBase::setTravMask(const UInt32 value)
198     editSField(TravMaskFieldMask);
200     _sfTravMask.setValue(value);
202 //! Get the value of the Viewarea::_sfEnabled field.
204 inline
205 bool &ViewareaBase::editEnabled(void)
207     editSField(EnabledFieldMask);
209     return _sfEnabled.getValue();
212 //! Get the value of the Viewarea::_sfEnabled field.
213 inline
214       bool  ViewareaBase::getEnabled(void) const
216     return _sfEnabled.getValue();
219 //! Set the value of the Viewarea::_sfEnabled field.
220 inline
221 void ViewareaBase::setEnabled(const bool value)
223     editSField(EnabledFieldMask);
225     _sfEnabled.setValue(value);
227 //! Get the value of the Viewarea::_sfDrawTime field.
229 inline
230 Real32 &ViewareaBase::editDrawTime(void)
232     editSField(DrawTimeFieldMask);
234     return _sfDrawTime.getValue();
237 //! Get the value of the Viewarea::_sfDrawTime field.
238 inline
239       Real32  ViewareaBase::getDrawTime(void) const
241     return _sfDrawTime.getValue();
244 //! Set the value of the Viewarea::_sfDrawTime field.
245 inline
246 void ViewareaBase::setDrawTime(const Real32 value)
248     editSField(DrawTimeFieldMask);
250     _sfDrawTime.setValue(value);
252 //! Get the value of the Viewarea::_sfDrawableId field.
254 inline
255 Int32 &ViewareaBase::editDrawableId(void)
257     editSField(DrawableIdFieldMask);
259     return _sfDrawableId.getValue();
262 //! Get the value of the Viewarea::_sfDrawableId field.
263 inline
264       Int32  ViewareaBase::getDrawableId(void) const
266     return _sfDrawableId.getValue();
269 //! Set the value of the Viewarea::_sfDrawableId field.
270 inline
271 void ViewareaBase::setDrawableId(const Int32 value)
273     editSField(DrawableIdFieldMask);
275     _sfDrawableId.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
280 inline
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);
316 #endif
319 inline
320 const Char8 *ViewareaBase::getClassname(void)
322     return "Viewarea";
324 OSG_GEN_CONTAINERPTR(Viewarea);
326 OSG_END_NAMESPACE