fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Cluster / Window / MultiDisplay / OSGMultiDisplayWindowBase.inl
blobe99eca62aef9152bc122dfdd41d82f80b1873119
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 MultiDisplayWindow!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &MultiDisplayWindowBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 MultiDisplayWindowBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 MultiDisplayWindowBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the MultiDisplayWindow::_sfHServers field.
79 inline
80 UInt32 &MultiDisplayWindowBase::editHServers(void)
82     editSField(HServersFieldMask);
84     return _sfHServers.getValue();
87 //! Get the value of the MultiDisplayWindow::_sfHServers field.
88 inline
89       UInt32  MultiDisplayWindowBase::getHServers(void) const
91     return _sfHServers.getValue();
94 //! Set the value of the MultiDisplayWindow::_sfHServers field.
95 inline
96 void MultiDisplayWindowBase::setHServers(const UInt32 value)
98     editSField(HServersFieldMask);
100     _sfHServers.setValue(value);
102 //! Get the value of the MultiDisplayWindow::_sfVServers field.
104 inline
105 UInt32 &MultiDisplayWindowBase::editVServers(void)
107     editSField(VServersFieldMask);
109     return _sfVServers.getValue();
112 //! Get the value of the MultiDisplayWindow::_sfVServers field.
113 inline
114       UInt32  MultiDisplayWindowBase::getVServers(void) const
116     return _sfVServers.getValue();
119 //! Set the value of the MultiDisplayWindow::_sfVServers field.
120 inline
121 void MultiDisplayWindowBase::setVServers(const UInt32 value)
123     editSField(VServersFieldMask);
125     _sfVServers.setValue(value);
127 //! Get the value of the MultiDisplayWindow::_sfManageClientViewports field.
129 inline
130 bool &MultiDisplayWindowBase::editManageClientViewports(void)
132     editSField(ManageClientViewportsFieldMask);
134     return _sfManageClientViewports.getValue();
137 //! Get the value of the MultiDisplayWindow::_sfManageClientViewports field.
138 inline
139       bool  MultiDisplayWindowBase::getManageClientViewports(void) const
141     return _sfManageClientViewports.getValue();
144 //! Set the value of the MultiDisplayWindow::_sfManageClientViewports field.
145 inline
146 void MultiDisplayWindowBase::setManageClientViewports(const bool value)
148     editSField(ManageClientViewportsFieldMask);
150     _sfManageClientViewports.setValue(value);
152 //! Get the value of the MultiDisplayWindow::_sfXOverlap field.
154 inline
155 Int32 &MultiDisplayWindowBase::editXOverlap(void)
157     editSField(XOverlapFieldMask);
159     return _sfXOverlap.getValue();
162 //! Get the value of the MultiDisplayWindow::_sfXOverlap field.
163 inline
164       Int32  MultiDisplayWindowBase::getXOverlap(void) const
166     return _sfXOverlap.getValue();
169 //! Set the value of the MultiDisplayWindow::_sfXOverlap field.
170 inline
171 void MultiDisplayWindowBase::setXOverlap(const Int32 value)
173     editSField(XOverlapFieldMask);
175     _sfXOverlap.setValue(value);
177 //! Get the value of the MultiDisplayWindow::_sfYOverlap field.
179 inline
180 Int32 &MultiDisplayWindowBase::editYOverlap(void)
182     editSField(YOverlapFieldMask);
184     return _sfYOverlap.getValue();
187 //! Get the value of the MultiDisplayWindow::_sfYOverlap field.
188 inline
189       Int32  MultiDisplayWindowBase::getYOverlap(void) const
191     return _sfYOverlap.getValue();
194 //! Set the value of the MultiDisplayWindow::_sfYOverlap field.
195 inline
196 void MultiDisplayWindowBase::setYOverlap(const Int32 value)
198     editSField(YOverlapFieldMask);
200     _sfYOverlap.setValue(value);
202 //! Get the value of the MultiDisplayWindow::_sfMaxDepth field.
204 inline
205 Int32 &MultiDisplayWindowBase::editMaxDepth(void)
207     editSField(MaxDepthFieldMask);
209     return _sfMaxDepth.getValue();
212 //! Get the value of the MultiDisplayWindow::_sfMaxDepth field.
213 inline
214       Int32  MultiDisplayWindowBase::getMaxDepth(void) const
216     return _sfMaxDepth.getValue();
219 //! Set the value of the MultiDisplayWindow::_sfMaxDepth field.
220 inline
221 void MultiDisplayWindowBase::setMaxDepth(const Int32 value)
223     editSField(MaxDepthFieldMask);
225     _sfMaxDepth.setValue(value);
229 #ifdef OSG_MT_CPTR_ASPECT
230 inline
231 void MultiDisplayWindowBase::execSync (      MultiDisplayWindowBase *pFrom,
232                                         ConstFieldMaskArg  whichField,
233                                         AspectOffsetStore &oOffsets,
234                                         ConstFieldMaskArg  syncMode,
235                                   const UInt32             uiSyncInfo)
237     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
239     if(FieldBits::NoField != (HServersFieldMask & whichField))
240         _sfHServers.syncWith(pFrom->_sfHServers);
242     if(FieldBits::NoField != (VServersFieldMask & whichField))
243         _sfVServers.syncWith(pFrom->_sfVServers);
245     if(FieldBits::NoField != (ManageClientViewportsFieldMask & whichField))
246         _sfManageClientViewports.syncWith(pFrom->_sfManageClientViewports);
248     if(FieldBits::NoField != (XOverlapFieldMask & whichField))
249         _sfXOverlap.syncWith(pFrom->_sfXOverlap);
251     if(FieldBits::NoField != (YOverlapFieldMask & whichField))
252         _sfYOverlap.syncWith(pFrom->_sfYOverlap);
254     if(FieldBits::NoField != (MaxDepthFieldMask & whichField))
255         _sfMaxDepth.syncWith(pFrom->_sfMaxDepth);
257 #endif
260 inline
261 const Char8 *MultiDisplayWindowBase::getClassname(void)
263     return "MultiDisplayWindow";
265 OSG_GEN_CONTAINERPTR(MultiDisplayWindow);
267 OSG_END_NAMESPACE