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 StencilChunk!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &StencilChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 StencilChunkBase::getClassTypeId(void)
70 OSG::UInt16 StencilChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the StencilChunk::_sfStencilFunc field.
80 GLenum &StencilChunkBase::editStencilFunc(void)
82 editSField(StencilFuncFieldMask);
84 return _sfStencilFunc.getValue();
87 //! Get the value of the StencilChunk::_sfStencilFunc field.
89 const GLenum &StencilChunkBase::getStencilFunc(void) const
91 return _sfStencilFunc.getValue();
94 //! Set the value of the StencilChunk::_sfStencilFunc field.
96 void StencilChunkBase::setStencilFunc(const GLenum &value)
98 editSField(StencilFuncFieldMask);
100 _sfStencilFunc.setValue(value);
102 //! Get the value of the StencilChunk::_sfStencilValue field.
105 Int32 &StencilChunkBase::editStencilValue(void)
107 editSField(StencilValueFieldMask);
109 return _sfStencilValue.getValue();
112 //! Get the value of the StencilChunk::_sfStencilValue field.
114 Int32 StencilChunkBase::getStencilValue(void) const
116 return _sfStencilValue.getValue();
119 //! Set the value of the StencilChunk::_sfStencilValue field.
121 void StencilChunkBase::setStencilValue(const Int32 value)
123 editSField(StencilValueFieldMask);
125 _sfStencilValue.setValue(value);
127 //! Get the value of the StencilChunk::_sfStencilMask field.
130 UInt32 &StencilChunkBase::editStencilMask(void)
132 editSField(StencilMaskFieldMask);
134 return _sfStencilMask.getValue();
137 //! Get the value of the StencilChunk::_sfStencilMask field.
139 UInt32 StencilChunkBase::getStencilMask(void) const
141 return _sfStencilMask.getValue();
144 //! Set the value of the StencilChunk::_sfStencilMask field.
146 void StencilChunkBase::setStencilMask(const UInt32 value)
148 editSField(StencilMaskFieldMask);
150 _sfStencilMask.setValue(value);
152 //! Get the value of the StencilChunk::_sfStencilOpFail field.
155 GLenum &StencilChunkBase::editStencilOpFail(void)
157 editSField(StencilOpFailFieldMask);
159 return _sfStencilOpFail.getValue();
162 //! Get the value of the StencilChunk::_sfStencilOpFail field.
164 const GLenum &StencilChunkBase::getStencilOpFail(void) const
166 return _sfStencilOpFail.getValue();
169 //! Set the value of the StencilChunk::_sfStencilOpFail field.
171 void StencilChunkBase::setStencilOpFail(const GLenum &value)
173 editSField(StencilOpFailFieldMask);
175 _sfStencilOpFail.setValue(value);
177 //! Get the value of the StencilChunk::_sfStencilOpZFail field.
180 GLenum &StencilChunkBase::editStencilOpZFail(void)
182 editSField(StencilOpZFailFieldMask);
184 return _sfStencilOpZFail.getValue();
187 //! Get the value of the StencilChunk::_sfStencilOpZFail field.
189 const GLenum &StencilChunkBase::getStencilOpZFail(void) const
191 return _sfStencilOpZFail.getValue();
194 //! Set the value of the StencilChunk::_sfStencilOpZFail field.
196 void StencilChunkBase::setStencilOpZFail(const GLenum &value)
198 editSField(StencilOpZFailFieldMask);
200 _sfStencilOpZFail.setValue(value);
202 //! Get the value of the StencilChunk::_sfStencilOpZPass field.
205 GLenum &StencilChunkBase::editStencilOpZPass(void)
207 editSField(StencilOpZPassFieldMask);
209 return _sfStencilOpZPass.getValue();
212 //! Get the value of the StencilChunk::_sfStencilOpZPass field.
214 const GLenum &StencilChunkBase::getStencilOpZPass(void) const
216 return _sfStencilOpZPass.getValue();
219 //! Set the value of the StencilChunk::_sfStencilOpZPass field.
221 void StencilChunkBase::setStencilOpZPass(const GLenum &value)
223 editSField(StencilOpZPassFieldMask);
225 _sfStencilOpZPass.setValue(value);
227 //! Get the value of the StencilChunk::_sfClearBuffer field.
230 Int32 &StencilChunkBase::editClearBuffer(void)
232 editSField(ClearBufferFieldMask);
234 return _sfClearBuffer.getValue();
237 //! Get the value of the StencilChunk::_sfClearBuffer field.
239 Int32 StencilChunkBase::getClearBuffer(void) const
241 return _sfClearBuffer.getValue();
244 //! Set the value of the StencilChunk::_sfClearBuffer field.
246 void StencilChunkBase::setClearBuffer(const Int32 value)
248 editSField(ClearBufferFieldMask);
250 _sfClearBuffer.setValue(value);
252 //! Get the value of the StencilChunk::_sfBitMask field.
255 UInt32 &StencilChunkBase::editBitMask(void)
257 editSField(BitMaskFieldMask);
259 return _sfBitMask.getValue();
262 //! Get the value of the StencilChunk::_sfBitMask field.
264 UInt32 StencilChunkBase::getBitMask(void) const
266 return _sfBitMask.getValue();
269 //! Set the value of the StencilChunk::_sfBitMask field.
271 void StencilChunkBase::setBitMask(const UInt32 value)
273 editSField(BitMaskFieldMask);
275 _sfBitMask.setValue(value);
279 #ifdef OSG_MT_CPTR_ASPECT
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);
317 const Char8 *StencilChunkBase::getClassname(void)
319 return "StencilChunk";
321 OSG_GEN_CONTAINERPTR(StencilChunk);