changed: gcc8 base update
[opensg.git] / Source / System / Window / Background / OSGSkyBackgroundBase.inl
blob4fe6a9efee6c678bb79d9d302fabfc47cec4e14f
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 SkyBackground!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &SkyBackgroundBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 SkyBackgroundBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 SkyBackgroundBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the SkyBackground::_sfSphereRes field.
79 inline
80 UInt32 &SkyBackgroundBase::editSphereRes(void)
82     editSField(SphereResFieldMask);
84     return _sfSphereRes.getValue();
87 //! Get the value of the SkyBackground::_sfSphereRes field.
88 inline
89       UInt32  SkyBackgroundBase::getSphereRes(void) const
91     return _sfSphereRes.getValue();
94 //! Set the value of the SkyBackground::_sfSphereRes field.
95 inline
96 void SkyBackgroundBase::setSphereRes(const UInt32 value)
98     editSField(SphereResFieldMask);
100     _sfSphereRes.setValue(value);
102 //! Get the value of the SkyBackground::_sfBoxInside field.
104 inline
105 bool &SkyBackgroundBase::editBoxInside(void)
107     editSField(BoxInsideFieldMask);
109     return _sfBoxInside.getValue();
112 //! Get the value of the SkyBackground::_sfBoxInside field.
113 inline
114       bool  SkyBackgroundBase::getBoxInside(void) const
116     return _sfBoxInside.getValue();
119 //! Set the value of the SkyBackground::_sfBoxInside field.
120 inline
121 void SkyBackgroundBase::setBoxInside(const bool value)
123     editSField(BoxInsideFieldMask);
125     _sfBoxInside.setValue(value);
127 //! Get the value of the SkyBackground::_sfUseVRMLCubeTextureSemantics field.
129 inline
130 bool &SkyBackgroundBase::editUseVRMLCubeTextureSemantics(void)
132     editSField(UseVRMLCubeTextureSemanticsFieldMask);
134     return _sfUseVRMLCubeTextureSemantics.getValue();
137 //! Get the value of the SkyBackground::_sfUseVRMLCubeTextureSemantics field.
138 inline
139       bool  SkyBackgroundBase::getUseVRMLCubeTextureSemantics(void) const
141     return _sfUseVRMLCubeTextureSemantics.getValue();
144 //! Set the value of the SkyBackground::_sfUseVRMLCubeTextureSemantics field.
145 inline
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.
154 inline
155 const Color4f &SkyBackgroundBase::getSkyColor(const UInt32 index) const
157     return _mfSkyColor[index];
160 inline
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.
169 inline
170       Real32  SkyBackgroundBase::getSkyAngle(const UInt32 index) const
172     return _mfSkyAngle[index];
175 inline
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.
184 inline
185 const Color4f &SkyBackgroundBase::getGroundColor(const UInt32 index) const
187     return _mfGroundColor[index];
190 inline
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.
199 inline
200       Real32  SkyBackgroundBase::getGroundAngle(const UInt32 index) const
202     return _mfGroundAngle[index];
205 inline
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.
214 inline
215 const Vec3f &SkyBackgroundBase::getTopTexCoord(const UInt32 index) const
217     return _mfTopTexCoord[index];
220 inline
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.
229 inline
230 const Vec3f &SkyBackgroundBase::getBottomTexCoord(const UInt32 index) const
232     return _mfBottomTexCoord[index];
235 inline
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.
244 inline
245 const Vec3f &SkyBackgroundBase::getRightTexCoord(const UInt32 index) const
247     return _mfRightTexCoord[index];
250 inline
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.
259 inline
260 const Vec3f &SkyBackgroundBase::getLeftTexCoord(const UInt32 index) const
262     return _mfLeftTexCoord[index];
265 inline
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.
274 inline
275 const Vec3f &SkyBackgroundBase::getFrontTexCoord(const UInt32 index) const
277     return _mfFrontTexCoord[index];
280 inline
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.
289 inline
290 const Vec3f &SkyBackgroundBase::getBackTexCoord(const UInt32 index) const
292     return _mfBackTexCoord[index];
295 inline
296 MFVec3f            ::reference SkyBackgroundBase::editBackTexCoord(const UInt32 index)
298     editMField(BackTexCoordFieldMask, _mfBackTexCoord);
300     return _mfBackTexCoord[index];
304 #ifdef OSG_MT_CPTR_ASPECT
305 inline
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,
316                                 syncMode,
317                                 uiSyncInfo,
318                                 oOffsets);
320     if(FieldBits::NoField != (SkyAngleFieldMask & whichField))
321         _mfSkyAngle.syncWith(pFrom->_mfSkyAngle,
322                                 syncMode,
323                                 uiSyncInfo,
324                                 oOffsets);
326     if(FieldBits::NoField != (GroundColorFieldMask & whichField))
327         _mfGroundColor.syncWith(pFrom->_mfGroundColor,
328                                 syncMode,
329                                 uiSyncInfo,
330                                 oOffsets);
332     if(FieldBits::NoField != (GroundAngleFieldMask & whichField))
333         _mfGroundAngle.syncWith(pFrom->_mfGroundAngle,
334                                 syncMode,
335                                 uiSyncInfo,
336                                 oOffsets);
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,
364                                 syncMode,
365                                 uiSyncInfo,
366                                 oOffsets);
368     if(FieldBits::NoField != (BottomTexCoordFieldMask & whichField))
369         _mfBottomTexCoord.syncWith(pFrom->_mfBottomTexCoord,
370                                 syncMode,
371                                 uiSyncInfo,
372                                 oOffsets);
374     if(FieldBits::NoField != (RightTexCoordFieldMask & whichField))
375         _mfRightTexCoord.syncWith(pFrom->_mfRightTexCoord,
376                                 syncMode,
377                                 uiSyncInfo,
378                                 oOffsets);
380     if(FieldBits::NoField != (LeftTexCoordFieldMask & whichField))
381         _mfLeftTexCoord.syncWith(pFrom->_mfLeftTexCoord,
382                                 syncMode,
383                                 uiSyncInfo,
384                                 oOffsets);
386     if(FieldBits::NoField != (FrontTexCoordFieldMask & whichField))
387         _mfFrontTexCoord.syncWith(pFrom->_mfFrontTexCoord,
388                                 syncMode,
389                                 uiSyncInfo,
390                                 oOffsets);
392     if(FieldBits::NoField != (BackTexCoordFieldMask & whichField))
393         _mfBackTexCoord.syncWith(pFrom->_mfBackTexCoord,
394                                 syncMode,
395                                 uiSyncInfo,
396                                 oOffsets);
398     if(FieldBits::NoField != (BeaconFieldMask & whichField))
399         _sfBeacon.syncWith(pFrom->_sfBeacon);
401     if(FieldBits::NoField != (UseVRMLCubeTextureSemanticsFieldMask & whichField))
402         _sfUseVRMLCubeTextureSemantics.syncWith(pFrom->_sfUseVRMLCubeTextureSemantics);
404 #endif
407 inline
408 const Char8 *SkyBackgroundBase::getClassname(void)
410     return "SkyBackground";
412 OSG_GEN_CONTAINERPTR(SkyBackground);
414 OSG_END_NAMESPACE