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 CSMSceneParameter!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &CSMSceneParameterBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 CSMSceneParameterBase::getClassTypeId(void)
70 OSG::UInt16 CSMSceneParameterBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMSceneParameter::_sfDistScale field.
80 Real32 &CSMSceneParameterBase::editDistScale(void)
82 editSField(DistScaleFieldMask);
84 return _sfDistScale.getValue();
87 //! Get the value of the CSMSceneParameter::_sfDistScale field.
89 Real32 CSMSceneParameterBase::getDistScale(void) const
91 return _sfDistScale.getValue();
94 //! Set the value of the CSMSceneParameter::_sfDistScale field.
96 void CSMSceneParameterBase::setDistScale(const Real32 value)
98 editSField(DistScaleFieldMask);
100 _sfDistScale.setValue(value);
102 //! Get the value of the CSMSceneParameter::_sfSceneDiag field.
105 Vec3f &CSMSceneParameterBase::editSceneDiag(void)
107 editSField(SceneDiagFieldMask);
109 return _sfSceneDiag.getValue();
112 //! Get the value of the CSMSceneParameter::_sfSceneDiag field.
114 const Vec3f &CSMSceneParameterBase::getSceneDiag(void) const
116 return _sfSceneDiag.getValue();
119 //! Set the value of the CSMSceneParameter::_sfSceneDiag field.
121 void CSMSceneParameterBase::setSceneDiag(const Vec3f &value)
123 editSField(SceneDiagFieldMask);
125 _sfSceneDiag.setValue(value);
127 //! Get the value of the CSMSceneParameter::_sfInitViewPos field.
130 Pnt3f &CSMSceneParameterBase::editInitViewPos(void)
132 editSField(InitViewPosFieldMask);
134 return _sfInitViewPos.getValue();
137 //! Get the value of the CSMSceneParameter::_sfInitViewPos field.
139 const Pnt3f &CSMSceneParameterBase::getInitViewPos(void) const
141 return _sfInitViewPos.getValue();
144 //! Set the value of the CSMSceneParameter::_sfInitViewPos field.
146 void CSMSceneParameterBase::setInitViewPos(const Pnt3f &value)
148 editSField(InitViewPosFieldMask);
150 _sfInitViewPos.setValue(value);
152 //! Get the value of the CSMSceneParameter::_sfSceneCenter field.
155 Pnt3f &CSMSceneParameterBase::editSceneCenter(void)
157 editSField(SceneCenterFieldMask);
159 return _sfSceneCenter.getValue();
162 //! Get the value of the CSMSceneParameter::_sfSceneCenter field.
164 const Pnt3f &CSMSceneParameterBase::getSceneCenter(void) const
166 return _sfSceneCenter.getValue();
169 //! Set the value of the CSMSceneParameter::_sfSceneCenter field.
171 void CSMSceneParameterBase::setSceneCenter(const Pnt3f &value)
173 editSField(SceneCenterFieldMask);
175 _sfSceneCenter.setValue(value);
177 //! Get the value of the CSMSceneParameter::_sfSceneNear field.
180 Real32 &CSMSceneParameterBase::editSceneNear(void)
182 editSField(SceneNearFieldMask);
184 return _sfSceneNear.getValue();
187 //! Get the value of the CSMSceneParameter::_sfSceneNear field.
189 Real32 CSMSceneParameterBase::getSceneNear(void) const
191 return _sfSceneNear.getValue();
194 //! Set the value of the CSMSceneParameter::_sfSceneNear field.
196 void CSMSceneParameterBase::setSceneNear(const Real32 value)
198 editSField(SceneNearFieldMask);
200 _sfSceneNear.setValue(value);
202 //! Get the value of the CSMSceneParameter::_sfSceneFar field.
205 Real32 &CSMSceneParameterBase::editSceneFar(void)
207 editSField(SceneFarFieldMask);
209 return _sfSceneFar.getValue();
212 //! Get the value of the CSMSceneParameter::_sfSceneFar field.
214 Real32 CSMSceneParameterBase::getSceneFar(void) const
216 return _sfSceneFar.getValue();
219 //! Set the value of the CSMSceneParameter::_sfSceneFar field.
221 void CSMSceneParameterBase::setSceneFar(const Real32 value)
223 editSField(SceneFarFieldMask);
225 _sfSceneFar.setValue(value);
227 //! Get the value of the CSMSceneParameter::_sfReset field.
230 OSGAny &CSMSceneParameterBase::editReset(void)
232 editSField(ResetFieldMask);
234 return _sfReset.getValue();
237 //! Get the value of the CSMSceneParameter::_sfReset field.
239 const OSGAny &CSMSceneParameterBase::getReset(void) const
241 return _sfReset.getValue();
244 //! Set the value of the CSMSceneParameter::_sfReset field.
246 void CSMSceneParameterBase::setReset(const OSGAny &value)
248 editSField(ResetFieldMask);
250 _sfReset.setValue(value);
254 #ifdef OSG_MT_CPTR_ASPECT
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);
292 const Char8 *CSMSceneParameterBase::getClassname(void)
294 return "CSMSceneParameter";
296 OSG_GEN_CONTAINERPTR(CSMSceneParameter);