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 MultiDisplayWindow!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &MultiDisplayWindowBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 MultiDisplayWindowBase::getClassTypeId(void)
70 OSG::UInt16 MultiDisplayWindowBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the MultiDisplayWindow::_sfHServers field.
80 UInt32 &MultiDisplayWindowBase::editHServers(void)
82 editSField(HServersFieldMask);
84 return _sfHServers.getValue();
87 //! Get the value of the MultiDisplayWindow::_sfHServers field.
89 UInt32 MultiDisplayWindowBase::getHServers(void) const
91 return _sfHServers.getValue();
94 //! Set the value of the MultiDisplayWindow::_sfHServers field.
96 void MultiDisplayWindowBase::setHServers(const UInt32 value)
98 editSField(HServersFieldMask);
100 _sfHServers.setValue(value);
102 //! Get the value of the MultiDisplayWindow::_sfVServers field.
105 UInt32 &MultiDisplayWindowBase::editVServers(void)
107 editSField(VServersFieldMask);
109 return _sfVServers.getValue();
112 //! Get the value of the MultiDisplayWindow::_sfVServers field.
114 UInt32 MultiDisplayWindowBase::getVServers(void) const
116 return _sfVServers.getValue();
119 //! Set the value of the MultiDisplayWindow::_sfVServers field.
121 void MultiDisplayWindowBase::setVServers(const UInt32 value)
123 editSField(VServersFieldMask);
125 _sfVServers.setValue(value);
127 //! Get the value of the MultiDisplayWindow::_sfManageClientViewports field.
130 bool &MultiDisplayWindowBase::editManageClientViewports(void)
132 editSField(ManageClientViewportsFieldMask);
134 return _sfManageClientViewports.getValue();
137 //! Get the value of the MultiDisplayWindow::_sfManageClientViewports field.
139 bool MultiDisplayWindowBase::getManageClientViewports(void) const
141 return _sfManageClientViewports.getValue();
144 //! Set the value of the MultiDisplayWindow::_sfManageClientViewports field.
146 void MultiDisplayWindowBase::setManageClientViewports(const bool value)
148 editSField(ManageClientViewportsFieldMask);
150 _sfManageClientViewports.setValue(value);
152 //! Get the value of the MultiDisplayWindow::_sfXOverlap field.
155 Int32 &MultiDisplayWindowBase::editXOverlap(void)
157 editSField(XOverlapFieldMask);
159 return _sfXOverlap.getValue();
162 //! Get the value of the MultiDisplayWindow::_sfXOverlap field.
164 Int32 MultiDisplayWindowBase::getXOverlap(void) const
166 return _sfXOverlap.getValue();
169 //! Set the value of the MultiDisplayWindow::_sfXOverlap field.
171 void MultiDisplayWindowBase::setXOverlap(const Int32 value)
173 editSField(XOverlapFieldMask);
175 _sfXOverlap.setValue(value);
177 //! Get the value of the MultiDisplayWindow::_sfYOverlap field.
180 Int32 &MultiDisplayWindowBase::editYOverlap(void)
182 editSField(YOverlapFieldMask);
184 return _sfYOverlap.getValue();
187 //! Get the value of the MultiDisplayWindow::_sfYOverlap field.
189 Int32 MultiDisplayWindowBase::getYOverlap(void) const
191 return _sfYOverlap.getValue();
194 //! Set the value of the MultiDisplayWindow::_sfYOverlap field.
196 void MultiDisplayWindowBase::setYOverlap(const Int32 value)
198 editSField(YOverlapFieldMask);
200 _sfYOverlap.setValue(value);
202 //! Get the value of the MultiDisplayWindow::_sfMaxDepth field.
205 Int32 &MultiDisplayWindowBase::editMaxDepth(void)
207 editSField(MaxDepthFieldMask);
209 return _sfMaxDepth.getValue();
212 //! Get the value of the MultiDisplayWindow::_sfMaxDepth field.
214 Int32 MultiDisplayWindowBase::getMaxDepth(void) const
216 return _sfMaxDepth.getValue();
219 //! Set the value of the MultiDisplayWindow::_sfMaxDepth field.
221 void MultiDisplayWindowBase::setMaxDepth(const Int32 value)
223 editSField(MaxDepthFieldMask);
225 _sfMaxDepth.setValue(value);
229 #ifdef OSG_MT_CPTR_ASPECT
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);
261 const Char8 *MultiDisplayWindowBase::getClassname(void)
263 return "MultiDisplayWindow";
265 OSG_GEN_CONTAINERPTR(MultiDisplayWindow);