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 **
46 ** class TileCameraDecorator!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &TileCameraDecoratorBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 TileCameraDecoratorBase::getClassTypeId(void)
70 OSG::UInt16 TileCameraDecoratorBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TileCameraDecorator::_sfLeft field.
80 Real32 &TileCameraDecoratorBase::editLeft(void)
82 editSField(LeftFieldMask);
84 return _sfLeft.getValue();
87 //! Get the value of the TileCameraDecorator::_sfLeft field.
89 Real32 TileCameraDecoratorBase::getLeft(void) const
91 return _sfLeft.getValue();
94 //! Set the value of the TileCameraDecorator::_sfLeft field.
96 void TileCameraDecoratorBase::setLeft(const Real32 value)
98 editSField(LeftFieldMask);
100 _sfLeft.setValue(value);
102 //! Get the value of the TileCameraDecorator::_sfRight field.
105 Real32 &TileCameraDecoratorBase::editRight(void)
107 editSField(RightFieldMask);
109 return _sfRight.getValue();
112 //! Get the value of the TileCameraDecorator::_sfRight field.
114 Real32 TileCameraDecoratorBase::getRight(void) const
116 return _sfRight.getValue();
119 //! Set the value of the TileCameraDecorator::_sfRight field.
121 void TileCameraDecoratorBase::setRight(const Real32 value)
123 editSField(RightFieldMask);
125 _sfRight.setValue(value);
127 //! Get the value of the TileCameraDecorator::_sfBottom field.
130 Real32 &TileCameraDecoratorBase::editBottom(void)
132 editSField(BottomFieldMask);
134 return _sfBottom.getValue();
137 //! Get the value of the TileCameraDecorator::_sfBottom field.
139 Real32 TileCameraDecoratorBase::getBottom(void) const
141 return _sfBottom.getValue();
144 //! Set the value of the TileCameraDecorator::_sfBottom field.
146 void TileCameraDecoratorBase::setBottom(const Real32 value)
148 editSField(BottomFieldMask);
150 _sfBottom.setValue(value);
152 //! Get the value of the TileCameraDecorator::_sfTop field.
155 Real32 &TileCameraDecoratorBase::editTop(void)
157 editSField(TopFieldMask);
159 return _sfTop.getValue();
162 //! Get the value of the TileCameraDecorator::_sfTop field.
164 Real32 TileCameraDecoratorBase::getTop(void) const
166 return _sfTop.getValue();
169 //! Set the value of the TileCameraDecorator::_sfTop field.
171 void TileCameraDecoratorBase::setTop(const Real32 value)
173 editSField(TopFieldMask);
175 _sfTop.setValue(value);
177 //! Get the value of the TileCameraDecorator::_sfFullWidth field.
180 UInt32 &TileCameraDecoratorBase::editFullWidth(void)
182 editSField(FullWidthFieldMask);
184 return _sfFullWidth.getValue();
187 //! Get the value of the TileCameraDecorator::_sfFullWidth field.
189 UInt32 TileCameraDecoratorBase::getFullWidth(void) const
191 return _sfFullWidth.getValue();
194 //! Set the value of the TileCameraDecorator::_sfFullWidth field.
196 void TileCameraDecoratorBase::setFullWidth(const UInt32 value)
198 editSField(FullWidthFieldMask);
200 _sfFullWidth.setValue(value);
202 //! Get the value of the TileCameraDecorator::_sfFullHeight field.
205 UInt32 &TileCameraDecoratorBase::editFullHeight(void)
207 editSField(FullHeightFieldMask);
209 return _sfFullHeight.getValue();
212 //! Get the value of the TileCameraDecorator::_sfFullHeight field.
214 UInt32 TileCameraDecoratorBase::getFullHeight(void) const
216 return _sfFullHeight.getValue();
219 //! Set the value of the TileCameraDecorator::_sfFullHeight field.
221 void TileCameraDecoratorBase::setFullHeight(const UInt32 value)
223 editSField(FullHeightFieldMask);
225 _sfFullHeight.setValue(value);
229 #ifdef OSG_MT_CPTR_ASPECT
231 void TileCameraDecoratorBase::execSync ( TileCameraDecoratorBase *pFrom,
232 ConstFieldMaskArg whichField,
233 AspectOffsetStore &oOffsets,
234 ConstFieldMaskArg syncMode,
235 const UInt32 uiSyncInfo)
237 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
239 if(FieldBits::NoField != (LeftFieldMask & whichField))
240 _sfLeft.syncWith(pFrom->_sfLeft);
242 if(FieldBits::NoField != (RightFieldMask & whichField))
243 _sfRight.syncWith(pFrom->_sfRight);
245 if(FieldBits::NoField != (BottomFieldMask & whichField))
246 _sfBottom.syncWith(pFrom->_sfBottom);
248 if(FieldBits::NoField != (TopFieldMask & whichField))
249 _sfTop.syncWith(pFrom->_sfTop);
251 if(FieldBits::NoField != (FullWidthFieldMask & whichField))
252 _sfFullWidth.syncWith(pFrom->_sfFullWidth);
254 if(FieldBits::NoField != (FullHeightFieldMask & whichField))
255 _sfFullHeight.syncWith(pFrom->_sfFullHeight);
261 const Char8 *TileCameraDecoratorBase::getClassname(void)
263 return "TileCameraDecorator";
265 OSG_GEN_CONTAINERPTR(TileCameraDecorator);