fixed: gcc8 compile issues
[opensg.git] / Source / Contrib / ComplexSceneManager / OSGCSMSceneParameterBase.inl
blob054cb6e2600b1f981df92dcd1b4a4cb9577a76f2
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 CSMSceneParameter!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &CSMSceneParameterBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 CSMSceneParameterBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 CSMSceneParameterBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMSceneParameter::_sfDistScale field.
79 inline
80 Real32 &CSMSceneParameterBase::editDistScale(void)
82     editSField(DistScaleFieldMask);
84     return _sfDistScale.getValue();
87 //! Get the value of the CSMSceneParameter::_sfDistScale field.
88 inline
89       Real32  CSMSceneParameterBase::getDistScale(void) const
91     return _sfDistScale.getValue();
94 //! Set the value of the CSMSceneParameter::_sfDistScale field.
95 inline
96 void CSMSceneParameterBase::setDistScale(const Real32 value)
98     editSField(DistScaleFieldMask);
100     _sfDistScale.setValue(value);
102 //! Get the value of the CSMSceneParameter::_sfSceneDiag field.
104 inline
105 Vec3f &CSMSceneParameterBase::editSceneDiag(void)
107     editSField(SceneDiagFieldMask);
109     return _sfSceneDiag.getValue();
112 //! Get the value of the CSMSceneParameter::_sfSceneDiag field.
113 inline
114 const Vec3f &CSMSceneParameterBase::getSceneDiag(void) const
116     return _sfSceneDiag.getValue();
119 //! Set the value of the CSMSceneParameter::_sfSceneDiag field.
120 inline
121 void CSMSceneParameterBase::setSceneDiag(const Vec3f &value)
123     editSField(SceneDiagFieldMask);
125     _sfSceneDiag.setValue(value);
127 //! Get the value of the CSMSceneParameter::_sfInitViewPos field.
129 inline
130 Pnt3f &CSMSceneParameterBase::editInitViewPos(void)
132     editSField(InitViewPosFieldMask);
134     return _sfInitViewPos.getValue();
137 //! Get the value of the CSMSceneParameter::_sfInitViewPos field.
138 inline
139 const Pnt3f &CSMSceneParameterBase::getInitViewPos(void) const
141     return _sfInitViewPos.getValue();
144 //! Set the value of the CSMSceneParameter::_sfInitViewPos field.
145 inline
146 void CSMSceneParameterBase::setInitViewPos(const Pnt3f &value)
148     editSField(InitViewPosFieldMask);
150     _sfInitViewPos.setValue(value);
152 //! Get the value of the CSMSceneParameter::_sfSceneCenter field.
154 inline
155 Pnt3f &CSMSceneParameterBase::editSceneCenter(void)
157     editSField(SceneCenterFieldMask);
159     return _sfSceneCenter.getValue();
162 //! Get the value of the CSMSceneParameter::_sfSceneCenter field.
163 inline
164 const Pnt3f &CSMSceneParameterBase::getSceneCenter(void) const
166     return _sfSceneCenter.getValue();
169 //! Set the value of the CSMSceneParameter::_sfSceneCenter field.
170 inline
171 void CSMSceneParameterBase::setSceneCenter(const Pnt3f &value)
173     editSField(SceneCenterFieldMask);
175     _sfSceneCenter.setValue(value);
177 //! Get the value of the CSMSceneParameter::_sfSceneNear field.
179 inline
180 Real32 &CSMSceneParameterBase::editSceneNear(void)
182     editSField(SceneNearFieldMask);
184     return _sfSceneNear.getValue();
187 //! Get the value of the CSMSceneParameter::_sfSceneNear field.
188 inline
189       Real32  CSMSceneParameterBase::getSceneNear(void) const
191     return _sfSceneNear.getValue();
194 //! Set the value of the CSMSceneParameter::_sfSceneNear field.
195 inline
196 void CSMSceneParameterBase::setSceneNear(const Real32 value)
198     editSField(SceneNearFieldMask);
200     _sfSceneNear.setValue(value);
202 //! Get the value of the CSMSceneParameter::_sfSceneFar field.
204 inline
205 Real32 &CSMSceneParameterBase::editSceneFar(void)
207     editSField(SceneFarFieldMask);
209     return _sfSceneFar.getValue();
212 //! Get the value of the CSMSceneParameter::_sfSceneFar field.
213 inline
214       Real32  CSMSceneParameterBase::getSceneFar(void) const
216     return _sfSceneFar.getValue();
219 //! Set the value of the CSMSceneParameter::_sfSceneFar field.
220 inline
221 void CSMSceneParameterBase::setSceneFar(const Real32 value)
223     editSField(SceneFarFieldMask);
225     _sfSceneFar.setValue(value);
227 //! Get the value of the CSMSceneParameter::_sfReset field.
229 inline
230 OSGAny &CSMSceneParameterBase::editReset(void)
232     editSField(ResetFieldMask);
234     return _sfReset.getValue();
237 //! Get the value of the CSMSceneParameter::_sfReset field.
238 inline
239 const OSGAny &CSMSceneParameterBase::getReset(void) const
241     return _sfReset.getValue();
244 //! Set the value of the CSMSceneParameter::_sfReset field.
245 inline
246 void CSMSceneParameterBase::setReset(const OSGAny &value)
248     editSField(ResetFieldMask);
250     _sfReset.setValue(value);
254 #ifdef OSG_MT_CPTR_ASPECT
255 inline
256 void CSMSceneParameterBase::execSync (      CSMSceneParameterBase *pFrom,
257                                         ConstFieldMaskArg  whichField,
258                                         AspectOffsetStore &oOffsets,
259                                         ConstFieldMaskArg  syncMode,
260                                   const UInt32             uiSyncInfo)
262     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
264     if(FieldBits::NoField != (SceneRefFieldMask & whichField))
265         _sfSceneRef.syncWith(pFrom->_sfSceneRef);
267     if(FieldBits::NoField != (DistScaleFieldMask & whichField))
268         _sfDistScale.syncWith(pFrom->_sfDistScale);
270     if(FieldBits::NoField != (SceneDiagFieldMask & whichField))
271         _sfSceneDiag.syncWith(pFrom->_sfSceneDiag);
273     if(FieldBits::NoField != (InitViewPosFieldMask & whichField))
274         _sfInitViewPos.syncWith(pFrom->_sfInitViewPos);
276     if(FieldBits::NoField != (SceneCenterFieldMask & whichField))
277         _sfSceneCenter.syncWith(pFrom->_sfSceneCenter);
279     if(FieldBits::NoField != (SceneNearFieldMask & whichField))
280         _sfSceneNear.syncWith(pFrom->_sfSceneNear);
282     if(FieldBits::NoField != (SceneFarFieldMask & whichField))
283         _sfSceneFar.syncWith(pFrom->_sfSceneFar);
285     if(FieldBits::NoField != (ResetFieldMask & whichField))
286         _sfReset.syncWith(pFrom->_sfReset);
288 #endif
291 inline
292 const Char8 *CSMSceneParameterBase::getClassname(void)
294     return "CSMSceneParameter";
296 OSG_GEN_CONTAINERPTR(CSMSceneParameter);
298 OSG_END_NAMESPACE