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 CSMClusterWindow!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &CSMClusterWindowBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 CSMClusterWindowBase::getClassTypeId(void)
70 OSG::UInt16 CSMClusterWindowBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMClusterWindow::_sfRenderClient field.
80 bool &CSMClusterWindowBase::editRenderClient(void)
82 editSField(RenderClientFieldMask);
84 return _sfRenderClient.getValue();
87 //! Get the value of the CSMClusterWindow::_sfRenderClient field.
89 bool CSMClusterWindowBase::getRenderClient(void) const
91 return _sfRenderClient.getValue();
94 //! Set the value of the CSMClusterWindow::_sfRenderClient field.
96 void CSMClusterWindowBase::setRenderClient(const bool value)
98 editSField(RenderClientFieldMask);
100 _sfRenderClient.setValue(value);
102 //! Get the value of the CSMClusterWindow::_sfServerRows field.
105 UInt32 &CSMClusterWindowBase::editServerRows(void)
107 editSField(ServerRowsFieldMask);
109 return _sfServerRows.getValue();
112 //! Get the value of the CSMClusterWindow::_sfServerRows field.
114 UInt32 CSMClusterWindowBase::getServerRows(void) const
116 return _sfServerRows.getValue();
119 //! Set the value of the CSMClusterWindow::_sfServerRows field.
121 void CSMClusterWindowBase::setServerRows(const UInt32 value)
123 editSField(ServerRowsFieldMask);
125 _sfServerRows.setValue(value);
127 //! Get the value of the CSMClusterWindow::_sfConnectionType field.
130 std::string &CSMClusterWindowBase::editConnectionType(void)
132 editSField(ConnectionTypeFieldMask);
134 return _sfConnectionType.getValue();
137 //! Get the value of the CSMClusterWindow::_sfConnectionType field.
139 const std::string &CSMClusterWindowBase::getConnectionType(void) const
141 return _sfConnectionType.getValue();
144 //! Set the value of the CSMClusterWindow::_sfConnectionType field.
146 void CSMClusterWindowBase::setConnectionType(const std::string &value)
148 editSField(ConnectionTypeFieldMask);
150 _sfConnectionType.setValue(value);
152 //! Get the value of the CSMClusterWindow::_sfClusterMode field.
155 std::string &CSMClusterWindowBase::editClusterMode(void)
157 editSField(ClusterModeFieldMask);
159 return _sfClusterMode.getValue();
162 //! Get the value of the CSMClusterWindow::_sfClusterMode field.
164 const std::string &CSMClusterWindowBase::getClusterMode(void) const
166 return _sfClusterMode.getValue();
169 //! Set the value of the CSMClusterWindow::_sfClusterMode field.
171 void CSMClusterWindowBase::setClusterMode(const std::string &value)
173 editSField(ClusterModeFieldMask);
175 _sfClusterMode.setValue(value);
178 //! Get the value of the \a index element the CSMClusterWindow::_mfServers field.
180 const std::string &CSMClusterWindowBase::getServers(const UInt32 index) const
182 return _mfServers[index];
186 MFString ::reference CSMClusterWindowBase::editServers(const UInt32 index)
188 editMField(ServersFieldMask, _mfServers);
190 return _mfServers[index];
193 //! Get the value of the \a index element the CSMClusterWindow::_mfServerIds field.
195 UInt32 CSMClusterWindowBase::getServerIds(const UInt32 index) const
197 return _mfServerIds[index];
201 MFUInt32 ::reference CSMClusterWindowBase::editServerIds(const UInt32 index)
203 editMField(ServerIdsFieldMask, _mfServerIds);
205 return _mfServerIds[index];
209 #ifdef OSG_MT_CPTR_ASPECT
211 void CSMClusterWindowBase::execSync ( CSMClusterWindowBase *pFrom,
212 ConstFieldMaskArg whichField,
213 AspectOffsetStore &oOffsets,
214 ConstFieldMaskArg syncMode,
215 const UInt32 uiSyncInfo)
217 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
219 if(FieldBits::NoField != (ClientWindowFieldMask & whichField))
220 _sfClientWindow.syncWith(pFrom->_sfClientWindow);
222 if(FieldBits::NoField != (RenderClientFieldMask & whichField))
223 _sfRenderClient.syncWith(pFrom->_sfRenderClient);
225 if(FieldBits::NoField != (ServersFieldMask & whichField))
226 _mfServers.syncWith(pFrom->_mfServers,
231 if(FieldBits::NoField != (ServerIdsFieldMask & whichField))
232 _mfServerIds.syncWith(pFrom->_mfServerIds,
237 if(FieldBits::NoField != (ServerRowsFieldMask & whichField))
238 _sfServerRows.syncWith(pFrom->_sfServerRows);
240 if(FieldBits::NoField != (ConnectionTypeFieldMask & whichField))
241 _sfConnectionType.syncWith(pFrom->_sfConnectionType);
243 if(FieldBits::NoField != (ClusterModeFieldMask & whichField))
244 _sfClusterMode.syncWith(pFrom->_sfClusterMode);
246 if(FieldBits::NoField != (ComposerFieldMask & whichField))
247 _sfComposer.syncWith(pFrom->_sfComposer);
249 if(FieldBits::NoField != (OptionsFieldMask & whichField))
250 _sfOptions.syncWith(pFrom->_sfOptions);
256 const Char8 *CSMClusterWindowBase::getClassname(void)
258 return "CSMClusterWindow";
260 OSG_GEN_CONTAINERPTR(CSMClusterWindow);