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 BalancedMultiWindow!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &BalancedMultiWindowBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 BalancedMultiWindowBase::getClassTypeId(void)
70 OSG::UInt16 BalancedMultiWindowBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the BalancedMultiWindow::_sfBalance field.
80 bool &BalancedMultiWindowBase::editBalance(void)
82 editSField(BalanceFieldMask);
84 return _sfBalance.getValue();
87 //! Get the value of the BalancedMultiWindow::_sfBalance field.
89 bool BalancedMultiWindowBase::getBalance(void) const
91 return _sfBalance.getValue();
94 //! Set the value of the BalancedMultiWindow::_sfBalance field.
96 void BalancedMultiWindowBase::setBalance(const bool value)
98 editSField(BalanceFieldMask);
100 _sfBalance.setValue(value);
102 //! Get the value of the BalancedMultiWindow::_sfBestCut field.
105 bool &BalancedMultiWindowBase::editBestCut(void)
107 editSField(BestCutFieldMask);
109 return _sfBestCut.getValue();
112 //! Get the value of the BalancedMultiWindow::_sfBestCut field.
114 bool BalancedMultiWindowBase::getBestCut(void) const
116 return _sfBestCut.getValue();
119 //! Set the value of the BalancedMultiWindow::_sfBestCut field.
121 void BalancedMultiWindowBase::setBestCut(const bool value)
123 editSField(BestCutFieldMask);
125 _sfBestCut.setValue(value);
127 //! Get the value of the BalancedMultiWindow::_sfShowBalancing field.
130 bool &BalancedMultiWindowBase::editShowBalancing(void)
132 editSField(ShowBalancingFieldMask);
134 return _sfShowBalancing.getValue();
137 //! Get the value of the BalancedMultiWindow::_sfShowBalancing field.
139 bool BalancedMultiWindowBase::getShowBalancing(void) const
141 return _sfShowBalancing.getValue();
144 //! Set the value of the BalancedMultiWindow::_sfShowBalancing field.
146 void BalancedMultiWindowBase::setShowBalancing(const bool value)
148 editSField(ShowBalancingFieldMask);
150 _sfShowBalancing.setValue(value);
152 //! Get the value of the BalancedMultiWindow::_sfTileSize field.
155 UInt32 &BalancedMultiWindowBase::editTileSize(void)
157 editSField(TileSizeFieldMask);
159 return _sfTileSize.getValue();
162 //! Get the value of the BalancedMultiWindow::_sfTileSize field.
164 UInt32 BalancedMultiWindowBase::getTileSize(void) const
166 return _sfTileSize.getValue();
169 //! Set the value of the BalancedMultiWindow::_sfTileSize field.
171 void BalancedMultiWindowBase::setTileSize(const UInt32 value)
173 editSField(TileSizeFieldMask);
175 _sfTileSize.setValue(value);
177 //! Get the value of the BalancedMultiWindow::_sfShort field.
180 bool &BalancedMultiWindowBase::editShort(void)
182 editSField(ShortFieldMask);
184 return _sfShort.getValue();
187 //! Get the value of the BalancedMultiWindow::_sfShort field.
189 bool BalancedMultiWindowBase::getShort(void) const
191 return _sfShort.getValue();
194 //! Set the value of the BalancedMultiWindow::_sfShort field.
196 void BalancedMultiWindowBase::setShort(const bool value)
198 editSField(ShortFieldMask);
200 _sfShort.setValue(value);
204 #ifdef OSG_MT_CPTR_ASPECT
206 void BalancedMultiWindowBase::execSync ( BalancedMultiWindowBase *pFrom,
207 ConstFieldMaskArg whichField,
208 AspectOffsetStore &oOffsets,
209 ConstFieldMaskArg syncMode,
210 const UInt32 uiSyncInfo)
212 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
214 if(FieldBits::NoField != (BalanceFieldMask & whichField))
215 _sfBalance.syncWith(pFrom->_sfBalance);
217 if(FieldBits::NoField != (BestCutFieldMask & whichField))
218 _sfBestCut.syncWith(pFrom->_sfBestCut);
220 if(FieldBits::NoField != (ShowBalancingFieldMask & whichField))
221 _sfShowBalancing.syncWith(pFrom->_sfShowBalancing);
223 if(FieldBits::NoField != (TileSizeFieldMask & whichField))
224 _sfTileSize.syncWith(pFrom->_sfTileSize);
226 if(FieldBits::NoField != (ShortFieldMask & whichField))
227 _sfShort.syncWith(pFrom->_sfShort);
233 const Char8 *BalancedMultiWindowBase::getClassname(void)
235 return "BalancedMultiWindow";
237 OSG_GEN_CONTAINERPTR(BalancedMultiWindow);