fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Contrib / ComplexSceneManager / OSGCSMClusterWindowBase.inl
blobcc22d309723019907bdfac0972840918f8ef6a98
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 CSMClusterWindow!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &CSMClusterWindowBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 CSMClusterWindowBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 CSMClusterWindowBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the CSMClusterWindow::_sfRenderClient field.
79 inline
80 bool &CSMClusterWindowBase::editRenderClient(void)
82     editSField(RenderClientFieldMask);
84     return _sfRenderClient.getValue();
87 //! Get the value of the CSMClusterWindow::_sfRenderClient field.
88 inline
89       bool  CSMClusterWindowBase::getRenderClient(void) const
91     return _sfRenderClient.getValue();
94 //! Set the value of the CSMClusterWindow::_sfRenderClient field.
95 inline
96 void CSMClusterWindowBase::setRenderClient(const bool value)
98     editSField(RenderClientFieldMask);
100     _sfRenderClient.setValue(value);
102 //! Get the value of the CSMClusterWindow::_sfServerRows field.
104 inline
105 UInt32 &CSMClusterWindowBase::editServerRows(void)
107     editSField(ServerRowsFieldMask);
109     return _sfServerRows.getValue();
112 //! Get the value of the CSMClusterWindow::_sfServerRows field.
113 inline
114       UInt32  CSMClusterWindowBase::getServerRows(void) const
116     return _sfServerRows.getValue();
119 //! Set the value of the CSMClusterWindow::_sfServerRows field.
120 inline
121 void CSMClusterWindowBase::setServerRows(const UInt32 value)
123     editSField(ServerRowsFieldMask);
125     _sfServerRows.setValue(value);
127 //! Get the value of the CSMClusterWindow::_sfConnectionType field.
129 inline
130 std::string &CSMClusterWindowBase::editConnectionType(void)
132     editSField(ConnectionTypeFieldMask);
134     return _sfConnectionType.getValue();
137 //! Get the value of the CSMClusterWindow::_sfConnectionType field.
138 inline
139 const std::string &CSMClusterWindowBase::getConnectionType(void) const
141     return _sfConnectionType.getValue();
144 //! Set the value of the CSMClusterWindow::_sfConnectionType field.
145 inline
146 void CSMClusterWindowBase::setConnectionType(const std::string &value)
148     editSField(ConnectionTypeFieldMask);
150     _sfConnectionType.setValue(value);
152 //! Get the value of the CSMClusterWindow::_sfClusterMode field.
154 inline
155 std::string &CSMClusterWindowBase::editClusterMode(void)
157     editSField(ClusterModeFieldMask);
159     return _sfClusterMode.getValue();
162 //! Get the value of the CSMClusterWindow::_sfClusterMode field.
163 inline
164 const std::string &CSMClusterWindowBase::getClusterMode(void) const
166     return _sfClusterMode.getValue();
169 //! Set the value of the CSMClusterWindow::_sfClusterMode field.
170 inline
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.
179 inline
180 const std::string &CSMClusterWindowBase::getServers(const UInt32 index) const
182     return _mfServers[index];
185 inline
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.
194 inline
195       UInt32  CSMClusterWindowBase::getServerIds(const UInt32 index) const
197     return _mfServerIds[index];
200 inline
201 MFUInt32           ::reference CSMClusterWindowBase::editServerIds(const UInt32 index)
203     editMField(ServerIdsFieldMask, _mfServerIds);
205     return _mfServerIds[index];
209 #ifdef OSG_MT_CPTR_ASPECT
210 inline
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,
227                                 syncMode,
228                                 uiSyncInfo,
229                                 oOffsets);
231     if(FieldBits::NoField != (ServerIdsFieldMask & whichField))
232         _mfServerIds.syncWith(pFrom->_mfServerIds,
233                                 syncMode,
234                                 uiSyncInfo,
235                                 oOffsets);
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);
252 #endif
255 inline
256 const Char8 *CSMClusterWindowBase::getClassname(void)
258     return "CSMClusterWindow";
260 OSG_GEN_CONTAINERPTR(CSMClusterWindow);
262 OSG_END_NAMESPACE