changed: gcc8 base update
[opensg.git] / Source / System / State / OpenGL / OSGStencilChunkBase.inl
blob89f57d75caf41c57bb647a0149738532a7799887
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 StencilChunk!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &StencilChunkBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 StencilChunkBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 StencilChunkBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the StencilChunk::_sfStencilFunc field.
79 inline
80 GLenum &StencilChunkBase::editStencilFunc(void)
82     editSField(StencilFuncFieldMask);
84     return _sfStencilFunc.getValue();
87 //! Get the value of the StencilChunk::_sfStencilFunc field.
88 inline
89 const GLenum &StencilChunkBase::getStencilFunc(void) const
91     return _sfStencilFunc.getValue();
94 //! Set the value of the StencilChunk::_sfStencilFunc field.
95 inline
96 void StencilChunkBase::setStencilFunc(const GLenum &value)
98     editSField(StencilFuncFieldMask);
100     _sfStencilFunc.setValue(value);
102 //! Get the value of the StencilChunk::_sfStencilValue field.
104 inline
105 Int32 &StencilChunkBase::editStencilValue(void)
107     editSField(StencilValueFieldMask);
109     return _sfStencilValue.getValue();
112 //! Get the value of the StencilChunk::_sfStencilValue field.
113 inline
114       Int32  StencilChunkBase::getStencilValue(void) const
116     return _sfStencilValue.getValue();
119 //! Set the value of the StencilChunk::_sfStencilValue field.
120 inline
121 void StencilChunkBase::setStencilValue(const Int32 value)
123     editSField(StencilValueFieldMask);
125     _sfStencilValue.setValue(value);
127 //! Get the value of the StencilChunk::_sfStencilMask field.
129 inline
130 UInt32 &StencilChunkBase::editStencilMask(void)
132     editSField(StencilMaskFieldMask);
134     return _sfStencilMask.getValue();
137 //! Get the value of the StencilChunk::_sfStencilMask field.
138 inline
139       UInt32  StencilChunkBase::getStencilMask(void) const
141     return _sfStencilMask.getValue();
144 //! Set the value of the StencilChunk::_sfStencilMask field.
145 inline
146 void StencilChunkBase::setStencilMask(const UInt32 value)
148     editSField(StencilMaskFieldMask);
150     _sfStencilMask.setValue(value);
152 //! Get the value of the StencilChunk::_sfStencilOpFail field.
154 inline
155 GLenum &StencilChunkBase::editStencilOpFail(void)
157     editSField(StencilOpFailFieldMask);
159     return _sfStencilOpFail.getValue();
162 //! Get the value of the StencilChunk::_sfStencilOpFail field.
163 inline
164 const GLenum &StencilChunkBase::getStencilOpFail(void) const
166     return _sfStencilOpFail.getValue();
169 //! Set the value of the StencilChunk::_sfStencilOpFail field.
170 inline
171 void StencilChunkBase::setStencilOpFail(const GLenum &value)
173     editSField(StencilOpFailFieldMask);
175     _sfStencilOpFail.setValue(value);
177 //! Get the value of the StencilChunk::_sfStencilOpZFail field.
179 inline
180 GLenum &StencilChunkBase::editStencilOpZFail(void)
182     editSField(StencilOpZFailFieldMask);
184     return _sfStencilOpZFail.getValue();
187 //! Get the value of the StencilChunk::_sfStencilOpZFail field.
188 inline
189 const GLenum &StencilChunkBase::getStencilOpZFail(void) const
191     return _sfStencilOpZFail.getValue();
194 //! Set the value of the StencilChunk::_sfStencilOpZFail field.
195 inline
196 void StencilChunkBase::setStencilOpZFail(const GLenum &value)
198     editSField(StencilOpZFailFieldMask);
200     _sfStencilOpZFail.setValue(value);
202 //! Get the value of the StencilChunk::_sfStencilOpZPass field.
204 inline
205 GLenum &StencilChunkBase::editStencilOpZPass(void)
207     editSField(StencilOpZPassFieldMask);
209     return _sfStencilOpZPass.getValue();
212 //! Get the value of the StencilChunk::_sfStencilOpZPass field.
213 inline
214 const GLenum &StencilChunkBase::getStencilOpZPass(void) const
216     return _sfStencilOpZPass.getValue();
219 //! Set the value of the StencilChunk::_sfStencilOpZPass field.
220 inline
221 void StencilChunkBase::setStencilOpZPass(const GLenum &value)
223     editSField(StencilOpZPassFieldMask);
225     _sfStencilOpZPass.setValue(value);
227 //! Get the value of the StencilChunk::_sfClearBuffer field.
229 inline
230 Int32 &StencilChunkBase::editClearBuffer(void)
232     editSField(ClearBufferFieldMask);
234     return _sfClearBuffer.getValue();
237 //! Get the value of the StencilChunk::_sfClearBuffer field.
238 inline
239       Int32  StencilChunkBase::getClearBuffer(void) const
241     return _sfClearBuffer.getValue();
244 //! Set the value of the StencilChunk::_sfClearBuffer field.
245 inline
246 void StencilChunkBase::setClearBuffer(const Int32 value)
248     editSField(ClearBufferFieldMask);
250     _sfClearBuffer.setValue(value);
252 //! Get the value of the StencilChunk::_sfBitMask field.
254 inline
255 UInt32 &StencilChunkBase::editBitMask(void)
257     editSField(BitMaskFieldMask);
259     return _sfBitMask.getValue();
262 //! Get the value of the StencilChunk::_sfBitMask field.
263 inline
264       UInt32  StencilChunkBase::getBitMask(void) const
266     return _sfBitMask.getValue();
269 //! Set the value of the StencilChunk::_sfBitMask field.
270 inline
271 void StencilChunkBase::setBitMask(const UInt32 value)
273     editSField(BitMaskFieldMask);
275     _sfBitMask.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
280 inline
281 void StencilChunkBase::execSync (      StencilChunkBase *pFrom,
282                                         ConstFieldMaskArg  whichField,
283                                         AspectOffsetStore &oOffsets,
284                                         ConstFieldMaskArg  syncMode,
285                                   const UInt32             uiSyncInfo)
287     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
289     if(FieldBits::NoField != (StencilFuncFieldMask & whichField))
290         _sfStencilFunc.syncWith(pFrom->_sfStencilFunc);
292     if(FieldBits::NoField != (StencilValueFieldMask & whichField))
293         _sfStencilValue.syncWith(pFrom->_sfStencilValue);
295     if(FieldBits::NoField != (StencilMaskFieldMask & whichField))
296         _sfStencilMask.syncWith(pFrom->_sfStencilMask);
298     if(FieldBits::NoField != (StencilOpFailFieldMask & whichField))
299         _sfStencilOpFail.syncWith(pFrom->_sfStencilOpFail);
301     if(FieldBits::NoField != (StencilOpZFailFieldMask & whichField))
302         _sfStencilOpZFail.syncWith(pFrom->_sfStencilOpZFail);
304     if(FieldBits::NoField != (StencilOpZPassFieldMask & whichField))
305         _sfStencilOpZPass.syncWith(pFrom->_sfStencilOpZPass);
307     if(FieldBits::NoField != (ClearBufferFieldMask & whichField))
308         _sfClearBuffer.syncWith(pFrom->_sfClearBuffer);
310     if(FieldBits::NoField != (BitMaskFieldMask & whichField))
311         _sfBitMask.syncWith(pFrom->_sfBitMask);
313 #endif
316 inline
317 const Char8 *StencilChunkBase::getClassname(void)
319     return "StencilChunk";
321 OSG_GEN_CONTAINERPTR(StencilChunk);
323 OSG_END_NAMESPACE