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 SkyBackground!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &SkyBackgroundBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 SkyBackgroundBase::getClassTypeId(void)
70 OSG::UInt16 SkyBackgroundBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the SkyBackground::_sfSphereRes field.
80 UInt32 &SkyBackgroundBase::editSphereRes(void)
82 editSField(SphereResFieldMask);
84 return _sfSphereRes.getValue();
87 //! Get the value of the SkyBackground::_sfSphereRes field.
89 UInt32 SkyBackgroundBase::getSphereRes(void) const
91 return _sfSphereRes.getValue();
94 //! Set the value of the SkyBackground::_sfSphereRes field.
96 void SkyBackgroundBase::setSphereRes(const UInt32 value)
98 editSField(SphereResFieldMask);
100 _sfSphereRes.setValue(value);
102 //! Get the value of the SkyBackground::_sfBoxInside field.
105 bool &SkyBackgroundBase::editBoxInside(void)
107 editSField(BoxInsideFieldMask);
109 return _sfBoxInside.getValue();
112 //! Get the value of the SkyBackground::_sfBoxInside field.
114 bool SkyBackgroundBase::getBoxInside(void) const
116 return _sfBoxInside.getValue();
119 //! Set the value of the SkyBackground::_sfBoxInside field.
121 void SkyBackgroundBase::setBoxInside(const bool value)
123 editSField(BoxInsideFieldMask);
125 _sfBoxInside.setValue(value);
127 //! Get the value of the SkyBackground::_sfUseVRMLCubeTextureSemantics field.
130 bool &SkyBackgroundBase::editUseVRMLCubeTextureSemantics(void)
132 editSField(UseVRMLCubeTextureSemanticsFieldMask);
134 return _sfUseVRMLCubeTextureSemantics.getValue();
137 //! Get the value of the SkyBackground::_sfUseVRMLCubeTextureSemantics field.
139 bool SkyBackgroundBase::getUseVRMLCubeTextureSemantics(void) const
141 return _sfUseVRMLCubeTextureSemantics.getValue();
144 //! Set the value of the SkyBackground::_sfUseVRMLCubeTextureSemantics field.
146 void SkyBackgroundBase::setUseVRMLCubeTextureSemantics(const bool value)
148 editSField(UseVRMLCubeTextureSemanticsFieldMask);
150 _sfUseVRMLCubeTextureSemantics.setValue(value);
153 //! Get the value of the \a index element the SkyBackground::_mfSkyColor field.
155 const Color4f &SkyBackgroundBase::getSkyColor(const UInt32 index) const
157 return _mfSkyColor[index];
161 MFColor4f ::reference SkyBackgroundBase::editSkyColor(const UInt32 index)
163 editMField(SkyColorFieldMask, _mfSkyColor);
165 return _mfSkyColor[index];
168 //! Get the value of the \a index element the SkyBackground::_mfSkyAngle field.
170 Real32 SkyBackgroundBase::getSkyAngle(const UInt32 index) const
172 return _mfSkyAngle[index];
176 MFReal32 ::reference SkyBackgroundBase::editSkyAngle(const UInt32 index)
178 editMField(SkyAngleFieldMask, _mfSkyAngle);
180 return _mfSkyAngle[index];
183 //! Get the value of the \a index element the SkyBackground::_mfGroundColor field.
185 const Color4f &SkyBackgroundBase::getGroundColor(const UInt32 index) const
187 return _mfGroundColor[index];
191 MFColor4f ::reference SkyBackgroundBase::editGroundColor(const UInt32 index)
193 editMField(GroundColorFieldMask, _mfGroundColor);
195 return _mfGroundColor[index];
198 //! Get the value of the \a index element the SkyBackground::_mfGroundAngle field.
200 Real32 SkyBackgroundBase::getGroundAngle(const UInt32 index) const
202 return _mfGroundAngle[index];
206 MFReal32 ::reference SkyBackgroundBase::editGroundAngle(const UInt32 index)
208 editMField(GroundAngleFieldMask, _mfGroundAngle);
210 return _mfGroundAngle[index];
213 //! Get the value of the \a index element the SkyBackground::_mfTopTexCoord field.
215 const Vec3f &SkyBackgroundBase::getTopTexCoord(const UInt32 index) const
217 return _mfTopTexCoord[index];
221 MFVec3f ::reference SkyBackgroundBase::editTopTexCoord(const UInt32 index)
223 editMField(TopTexCoordFieldMask, _mfTopTexCoord);
225 return _mfTopTexCoord[index];
228 //! Get the value of the \a index element the SkyBackground::_mfBottomTexCoord field.
230 const Vec3f &SkyBackgroundBase::getBottomTexCoord(const UInt32 index) const
232 return _mfBottomTexCoord[index];
236 MFVec3f ::reference SkyBackgroundBase::editBottomTexCoord(const UInt32 index)
238 editMField(BottomTexCoordFieldMask, _mfBottomTexCoord);
240 return _mfBottomTexCoord[index];
243 //! Get the value of the \a index element the SkyBackground::_mfRightTexCoord field.
245 const Vec3f &SkyBackgroundBase::getRightTexCoord(const UInt32 index) const
247 return _mfRightTexCoord[index];
251 MFVec3f ::reference SkyBackgroundBase::editRightTexCoord(const UInt32 index)
253 editMField(RightTexCoordFieldMask, _mfRightTexCoord);
255 return _mfRightTexCoord[index];
258 //! Get the value of the \a index element the SkyBackground::_mfLeftTexCoord field.
260 const Vec3f &SkyBackgroundBase::getLeftTexCoord(const UInt32 index) const
262 return _mfLeftTexCoord[index];
266 MFVec3f ::reference SkyBackgroundBase::editLeftTexCoord(const UInt32 index)
268 editMField(LeftTexCoordFieldMask, _mfLeftTexCoord);
270 return _mfLeftTexCoord[index];
273 //! Get the value of the \a index element the SkyBackground::_mfFrontTexCoord field.
275 const Vec3f &SkyBackgroundBase::getFrontTexCoord(const UInt32 index) const
277 return _mfFrontTexCoord[index];
281 MFVec3f ::reference SkyBackgroundBase::editFrontTexCoord(const UInt32 index)
283 editMField(FrontTexCoordFieldMask, _mfFrontTexCoord);
285 return _mfFrontTexCoord[index];
288 //! Get the value of the \a index element the SkyBackground::_mfBackTexCoord field.
290 const Vec3f &SkyBackgroundBase::getBackTexCoord(const UInt32 index) const
292 return _mfBackTexCoord[index];
296 MFVec3f ::reference SkyBackgroundBase::editBackTexCoord(const UInt32 index)
298 editMField(BackTexCoordFieldMask, _mfBackTexCoord);
300 return _mfBackTexCoord[index];
304 #ifdef OSG_MT_CPTR_ASPECT
306 void SkyBackgroundBase::execSync ( SkyBackgroundBase *pFrom,
307 ConstFieldMaskArg whichField,
308 AspectOffsetStore &oOffsets,
309 ConstFieldMaskArg syncMode,
310 const UInt32 uiSyncInfo)
312 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
314 if(FieldBits::NoField != (SkyColorFieldMask & whichField))
315 _mfSkyColor.syncWith(pFrom->_mfSkyColor,
320 if(FieldBits::NoField != (SkyAngleFieldMask & whichField))
321 _mfSkyAngle.syncWith(pFrom->_mfSkyAngle,
326 if(FieldBits::NoField != (GroundColorFieldMask & whichField))
327 _mfGroundColor.syncWith(pFrom->_mfGroundColor,
332 if(FieldBits::NoField != (GroundAngleFieldMask & whichField))
333 _mfGroundAngle.syncWith(pFrom->_mfGroundAngle,
338 if(FieldBits::NoField != (SphereResFieldMask & whichField))
339 _sfSphereRes.syncWith(pFrom->_sfSphereRes);
341 if(FieldBits::NoField != (BackTextureFieldMask & whichField))
342 _sfBackTexture.syncWith(pFrom->_sfBackTexture);
344 if(FieldBits::NoField != (BottomTextureFieldMask & whichField))
345 _sfBottomTexture.syncWith(pFrom->_sfBottomTexture);
347 if(FieldBits::NoField != (FrontTextureFieldMask & whichField))
348 _sfFrontTexture.syncWith(pFrom->_sfFrontTexture);
350 if(FieldBits::NoField != (LeftTextureFieldMask & whichField))
351 _sfLeftTexture.syncWith(pFrom->_sfLeftTexture);
353 if(FieldBits::NoField != (RightTextureFieldMask & whichField))
354 _sfRightTexture.syncWith(pFrom->_sfRightTexture);
356 if(FieldBits::NoField != (TopTextureFieldMask & whichField))
357 _sfTopTexture.syncWith(pFrom->_sfTopTexture);
359 if(FieldBits::NoField != (BoxInsideFieldMask & whichField))
360 _sfBoxInside.syncWith(pFrom->_sfBoxInside);
362 if(FieldBits::NoField != (TopTexCoordFieldMask & whichField))
363 _mfTopTexCoord.syncWith(pFrom->_mfTopTexCoord,
368 if(FieldBits::NoField != (BottomTexCoordFieldMask & whichField))
369 _mfBottomTexCoord.syncWith(pFrom->_mfBottomTexCoord,
374 if(FieldBits::NoField != (RightTexCoordFieldMask & whichField))
375 _mfRightTexCoord.syncWith(pFrom->_mfRightTexCoord,
380 if(FieldBits::NoField != (LeftTexCoordFieldMask & whichField))
381 _mfLeftTexCoord.syncWith(pFrom->_mfLeftTexCoord,
386 if(FieldBits::NoField != (FrontTexCoordFieldMask & whichField))
387 _mfFrontTexCoord.syncWith(pFrom->_mfFrontTexCoord,
392 if(FieldBits::NoField != (BackTexCoordFieldMask & whichField))
393 _mfBackTexCoord.syncWith(pFrom->_mfBackTexCoord,
398 if(FieldBits::NoField != (BeaconFieldMask & whichField))
399 _sfBeacon.syncWith(pFrom->_sfBeacon);
401 if(FieldBits::NoField != (UseVRMLCubeTextureSemanticsFieldMask & whichField))
402 _sfUseVRMLCubeTextureSemantics.syncWith(pFrom->_sfUseVRMLCubeTextureSemantics);
408 const Char8 *SkyBackgroundBase::getClassname(void)
410 return "SkyBackground";
412 OSG_GEN_CONTAINERPTR(SkyBackground);