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 CubeMapGenerator!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &CubeMapGeneratorBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 CubeMapGeneratorBase::getClassTypeId(void)
70 OSG::UInt16 CubeMapGeneratorBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CubeMapGenerator::_sfTextureSize field.
80 Vec2s &CubeMapGeneratorBase::editTextureSize(void)
82 editSField(TextureSizeFieldMask);
84 return _sfTextureSize.getValue();
87 //! Get the value of the CubeMapGenerator::_sfTextureSize field.
89 const Vec2s &CubeMapGeneratorBase::getTextureSize(void) const
91 return _sfTextureSize.getValue();
94 //! Set the value of the CubeMapGenerator::_sfTextureSize field.
96 void CubeMapGeneratorBase::setTextureSize(const Vec2s &value)
98 editSField(TextureSizeFieldMask);
100 _sfTextureSize.setValue(value);
102 //! Get the value of the CubeMapGenerator::_sfTextureFormat field.
105 GLenum &CubeMapGeneratorBase::editTextureFormat(void)
107 editSField(TextureFormatFieldMask);
109 return _sfTextureFormat.getValue();
112 //! Get the value of the CubeMapGenerator::_sfTextureFormat field.
114 const GLenum &CubeMapGeneratorBase::getTextureFormat(void) const
116 return _sfTextureFormat.getValue();
119 //! Set the value of the CubeMapGenerator::_sfTextureFormat field.
121 void CubeMapGeneratorBase::setTextureFormat(const GLenum &value)
123 editSField(TextureFormatFieldMask);
125 _sfTextureFormat.setValue(value);
127 //! Get the value of the CubeMapGenerator::_sfOrigin field.
130 Pnt3f &CubeMapGeneratorBase::editOrigin(void)
132 editSField(OriginFieldMask);
134 return _sfOrigin.getValue();
137 //! Get the value of the CubeMapGenerator::_sfOrigin field.
139 const Pnt3f &CubeMapGeneratorBase::getOrigin(void) const
141 return _sfOrigin.getValue();
144 //! Set the value of the CubeMapGenerator::_sfOrigin field.
146 void CubeMapGeneratorBase::setOrigin(const Pnt3f &value)
148 editSField(OriginFieldMask);
150 _sfOrigin.setValue(value);
152 //! Get the value of the CubeMapGenerator::_sfOriginMode field.
155 UInt32 &CubeMapGeneratorBase::editOriginMode(void)
157 editSField(OriginModeFieldMask);
159 return _sfOriginMode.getValue();
162 //! Get the value of the CubeMapGenerator::_sfOriginMode field.
164 UInt32 CubeMapGeneratorBase::getOriginMode(void) const
166 return _sfOriginMode.getValue();
169 //! Set the value of the CubeMapGenerator::_sfOriginMode field.
171 void CubeMapGeneratorBase::setOriginMode(const UInt32 value)
173 editSField(OriginModeFieldMask);
175 _sfOriginMode.setValue(value);
177 //! Get the value of the CubeMapGenerator::_sfTexUnit field.
180 UInt32 &CubeMapGeneratorBase::editTexUnit(void)
182 editSField(TexUnitFieldMask);
184 return _sfTexUnit.getValue();
187 //! Get the value of the CubeMapGenerator::_sfTexUnit field.
189 UInt32 CubeMapGeneratorBase::getTexUnit(void) const
191 return _sfTexUnit.getValue();
194 //! Set the value of the CubeMapGenerator::_sfTexUnit field.
196 void CubeMapGeneratorBase::setTexUnit(const UInt32 value)
198 editSField(TexUnitFieldMask);
200 _sfTexUnit.setValue(value);
202 //! Get the value of the CubeMapGenerator::_sfSetupMode field.
205 UInt32 &CubeMapGeneratorBase::editSetupMode(void)
207 editSField(SetupModeFieldMask);
209 return _sfSetupMode.getValue();
212 //! Get the value of the CubeMapGenerator::_sfSetupMode field.
214 UInt32 CubeMapGeneratorBase::getSetupMode(void) const
216 return _sfSetupMode.getValue();
219 //! Set the value of the CubeMapGenerator::_sfSetupMode field.
221 void CubeMapGeneratorBase::setSetupMode(const UInt32 value)
223 editSField(SetupModeFieldMask);
225 _sfSetupMode.setValue(value);
230 #ifdef OSG_MT_CPTR_ASPECT
232 void CubeMapGeneratorBase::execSync ( CubeMapGeneratorBase *pFrom,
233 ConstFieldMaskArg whichField,
234 AspectOffsetStore &oOffsets,
235 ConstFieldMaskArg syncMode,
236 const UInt32 uiSyncInfo)
238 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
240 if(FieldBits::NoField != (RootFieldMask & whichField))
241 _sfRoot.syncWith(pFrom->_sfRoot);
243 if(FieldBits::NoField != (ExcludeFieldMask & whichField))
244 _mfExclude.syncWith(pFrom->_mfExclude,
249 if(FieldBits::NoField != (TextureFieldMask & whichField))
250 _sfTexture.syncWith(pFrom->_sfTexture);
252 if(FieldBits::NoField != (TextureSizeFieldMask & whichField))
253 _sfTextureSize.syncWith(pFrom->_sfTextureSize);
255 if(FieldBits::NoField != (TextureFormatFieldMask & whichField))
256 _sfTextureFormat.syncWith(pFrom->_sfTextureFormat);
258 if(FieldBits::NoField != (BeaconFieldMask & whichField))
259 _sfBeacon.syncWith(pFrom->_sfBeacon);
261 if(FieldBits::NoField != (OriginFieldMask & whichField))
262 _sfOrigin.syncWith(pFrom->_sfOrigin);
264 if(FieldBits::NoField != (OriginModeFieldMask & whichField))
265 _sfOriginMode.syncWith(pFrom->_sfOriginMode);
267 if(FieldBits::NoField != (TexUnitFieldMask & whichField))
268 _sfTexUnit.syncWith(pFrom->_sfTexUnit);
270 if(FieldBits::NoField != (SetupModeFieldMask & whichField))
271 _sfSetupMode.syncWith(pFrom->_sfSetupMode);
273 if(FieldBits::NoField != (BackgroundFieldMask & whichField))
274 _sfBackground.syncWith(pFrom->_sfBackground);
276 if(FieldBits::NoField != (CameraFieldMask & whichField))
277 _sfCamera.syncWith(pFrom->_sfCamera);
283 const Char8 *CubeMapGeneratorBase::getClassname(void)
285 return "CubeMapGenerator";
287 OSG_GEN_CONTAINERPTR(CubeMapGenerator);