fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Groups / DynamicStateGenerators / OSGCubeMapGeneratorBase.inl
blob0d70859d4e8132fe260594ed0a5243c471154edf
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 CubeMapGenerator!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &CubeMapGeneratorBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 CubeMapGeneratorBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 CubeMapGeneratorBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CubeMapGenerator::_sfTextureSize field.
79 inline
80 Vec2s &CubeMapGeneratorBase::editTextureSize(void)
82     editSField(TextureSizeFieldMask);
84     return _sfTextureSize.getValue();
87 //! Get the value of the CubeMapGenerator::_sfTextureSize field.
88 inline
89 const Vec2s &CubeMapGeneratorBase::getTextureSize(void) const
91     return _sfTextureSize.getValue();
94 //! Set the value of the CubeMapGenerator::_sfTextureSize field.
95 inline
96 void CubeMapGeneratorBase::setTextureSize(const Vec2s &value)
98     editSField(TextureSizeFieldMask);
100     _sfTextureSize.setValue(value);
102 //! Get the value of the CubeMapGenerator::_sfTextureFormat field.
104 inline
105 GLenum &CubeMapGeneratorBase::editTextureFormat(void)
107     editSField(TextureFormatFieldMask);
109     return _sfTextureFormat.getValue();
112 //! Get the value of the CubeMapGenerator::_sfTextureFormat field.
113 inline
114 const GLenum &CubeMapGeneratorBase::getTextureFormat(void) const
116     return _sfTextureFormat.getValue();
119 //! Set the value of the CubeMapGenerator::_sfTextureFormat field.
120 inline
121 void CubeMapGeneratorBase::setTextureFormat(const GLenum &value)
123     editSField(TextureFormatFieldMask);
125     _sfTextureFormat.setValue(value);
127 //! Get the value of the CubeMapGenerator::_sfOrigin field.
129 inline
130 Pnt3f &CubeMapGeneratorBase::editOrigin(void)
132     editSField(OriginFieldMask);
134     return _sfOrigin.getValue();
137 //! Get the value of the CubeMapGenerator::_sfOrigin field.
138 inline
139 const Pnt3f &CubeMapGeneratorBase::getOrigin(void) const
141     return _sfOrigin.getValue();
144 //! Set the value of the CubeMapGenerator::_sfOrigin field.
145 inline
146 void CubeMapGeneratorBase::setOrigin(const Pnt3f &value)
148     editSField(OriginFieldMask);
150     _sfOrigin.setValue(value);
152 //! Get the value of the CubeMapGenerator::_sfOriginMode field.
154 inline
155 UInt32 &CubeMapGeneratorBase::editOriginMode(void)
157     editSField(OriginModeFieldMask);
159     return _sfOriginMode.getValue();
162 //! Get the value of the CubeMapGenerator::_sfOriginMode field.
163 inline
164       UInt32  CubeMapGeneratorBase::getOriginMode(void) const
166     return _sfOriginMode.getValue();
169 //! Set the value of the CubeMapGenerator::_sfOriginMode field.
170 inline
171 void CubeMapGeneratorBase::setOriginMode(const UInt32 value)
173     editSField(OriginModeFieldMask);
175     _sfOriginMode.setValue(value);
177 //! Get the value of the CubeMapGenerator::_sfTexUnit field.
179 inline
180 UInt32 &CubeMapGeneratorBase::editTexUnit(void)
182     editSField(TexUnitFieldMask);
184     return _sfTexUnit.getValue();
187 //! Get the value of the CubeMapGenerator::_sfTexUnit field.
188 inline
189       UInt32  CubeMapGeneratorBase::getTexUnit(void) const
191     return _sfTexUnit.getValue();
194 //! Set the value of the CubeMapGenerator::_sfTexUnit field.
195 inline
196 void CubeMapGeneratorBase::setTexUnit(const UInt32 value)
198     editSField(TexUnitFieldMask);
200     _sfTexUnit.setValue(value);
202 //! Get the value of the CubeMapGenerator::_sfSetupMode field.
204 inline
205 UInt32 &CubeMapGeneratorBase::editSetupMode(void)
207     editSField(SetupModeFieldMask);
209     return _sfSetupMode.getValue();
212 //! Get the value of the CubeMapGenerator::_sfSetupMode field.
213 inline
214       UInt32  CubeMapGeneratorBase::getSetupMode(void) const
216     return _sfSetupMode.getValue();
219 //! Set the value of the CubeMapGenerator::_sfSetupMode field.
220 inline
221 void CubeMapGeneratorBase::setSetupMode(const UInt32 value)
223     editSField(SetupModeFieldMask);
225     _sfSetupMode.setValue(value);
230 #ifdef OSG_MT_CPTR_ASPECT
231 inline
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,
245                                 syncMode,
246                                 uiSyncInfo,
247                                 oOffsets);
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);
279 #endif
282 inline
283 const Char8 *CubeMapGeneratorBase::getClassname(void)
285     return "CubeMapGenerator";
287 OSG_GEN_CONTAINERPTR(CubeMapGenerator);
289 OSG_END_NAMESPACE