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 ComplexSceneManager!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &ComplexSceneManagerBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 ComplexSceneManagerBase::getClassTypeId(void)
70 OSG::UInt16 ComplexSceneManagerBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the ComplexSceneManager::_sfStartTime field.
80 Time &ComplexSceneManagerBase::editStartTime(void)
82 editSField(StartTimeFieldMask);
84 return _sfStartTime.getValue();
87 //! Get the value of the ComplexSceneManager::_sfStartTime field.
89 const Time &ComplexSceneManagerBase::getStartTime(void) const
91 return _sfStartTime.getValue();
94 //! Set the value of the ComplexSceneManager::_sfStartTime field.
96 void ComplexSceneManagerBase::setStartTime(const Time &value)
98 editSField(StartTimeFieldMask);
100 _sfStartTime.setValue(value);
102 //! Get the value of the ComplexSceneManager::_sfTimeScale field.
105 Time &ComplexSceneManagerBase::editTimeScale(void)
107 editSField(TimeScaleFieldMask);
109 return _sfTimeScale.getValue();
112 //! Get the value of the ComplexSceneManager::_sfTimeScale field.
114 const Time &ComplexSceneManagerBase::getTimeScale(void) const
116 return _sfTimeScale.getValue();
119 //! Set the value of the ComplexSceneManager::_sfTimeScale field.
121 void ComplexSceneManagerBase::setTimeScale(const Time &value)
123 editSField(TimeScaleFieldMask);
125 _sfTimeScale.setValue(value);
127 //! Get the value of the ComplexSceneManager::_sfConstantTimeStep field.
130 Time &ComplexSceneManagerBase::editConstantTimeStep(void)
132 editSField(ConstantTimeStepFieldMask);
134 return _sfConstantTimeStep.getValue();
137 //! Get the value of the ComplexSceneManager::_sfConstantTimeStep field.
139 const Time &ComplexSceneManagerBase::getConstantTimeStep(void) const
141 return _sfConstantTimeStep.getValue();
144 //! Set the value of the ComplexSceneManager::_sfConstantTimeStep field.
146 void ComplexSceneManagerBase::setConstantTimeStep(const Time &value)
148 editSField(ConstantTimeStepFieldMask);
150 _sfConstantTimeStep.setValue(value);
152 //! Get the value of the ComplexSceneManager::_sfConstantTime field.
155 bool &ComplexSceneManagerBase::editConstantTime(void)
157 editSField(ConstantTimeFieldMask);
159 return _sfConstantTime.getValue();
162 //! Get the value of the ComplexSceneManager::_sfConstantTime field.
164 bool ComplexSceneManagerBase::getConstantTime(void) const
166 return _sfConstantTime.getValue();
169 //! Set the value of the ComplexSceneManager::_sfConstantTime field.
171 void ComplexSceneManagerBase::setConstantTime(const bool value)
173 editSField(ConstantTimeFieldMask);
175 _sfConstantTime.setValue(value);
177 //! Get the value of the ComplexSceneManager::_sfPaused field.
180 bool &ComplexSceneManagerBase::editPaused(void)
182 editSField(PausedFieldMask);
184 return _sfPaused.getValue();
187 //! Get the value of the ComplexSceneManager::_sfPaused field.
189 bool ComplexSceneManagerBase::getPaused(void) const
191 return _sfPaused.getValue();
194 //! Set the value of the ComplexSceneManager::_sfPaused field.
196 void ComplexSceneManagerBase::setPaused(const bool value)
198 editSField(PausedFieldMask);
200 _sfPaused.setValue(value);
202 //! Get the value of the ComplexSceneManager::_sfDumpFrameStart field.
205 bool &ComplexSceneManagerBase::editDumpFrameStart(void)
207 editSField(DumpFrameStartFieldMask);
209 return _sfDumpFrameStart.getValue();
212 //! Get the value of the ComplexSceneManager::_sfDumpFrameStart field.
214 bool ComplexSceneManagerBase::getDumpFrameStart(void) const
216 return _sfDumpFrameStart.getValue();
219 //! Set the value of the ComplexSceneManager::_sfDumpFrameStart field.
221 void ComplexSceneManagerBase::setDumpFrameStart(const bool value)
223 editSField(DumpFrameStartFieldMask);
225 _sfDumpFrameStart.setValue(value);
227 //! Get the value of the ComplexSceneManager::_sfEnableWebService field.
230 bool &ComplexSceneManagerBase::editEnableWebService(void)
232 editSField(EnableWebServiceFieldMask);
234 return _sfEnableWebService.getValue();
237 //! Get the value of the ComplexSceneManager::_sfEnableWebService field.
239 bool ComplexSceneManagerBase::getEnableWebService(void) const
241 return _sfEnableWebService.getValue();
244 //! Set the value of the ComplexSceneManager::_sfEnableWebService field.
246 void ComplexSceneManagerBase::setEnableWebService(const bool value)
248 editSField(EnableWebServiceFieldMask);
250 _sfEnableWebService.setValue(value);
252 //! Get the value of the ComplexSceneManager::_sfWebServicePort field.
255 UInt32 &ComplexSceneManagerBase::editWebServicePort(void)
257 editSField(WebServicePortFieldMask);
259 return _sfWebServicePort.getValue();
262 //! Get the value of the ComplexSceneManager::_sfWebServicePort field.
264 UInt32 ComplexSceneManagerBase::getWebServicePort(void) const
266 return _sfWebServicePort.getValue();
269 //! Set the value of the ComplexSceneManager::_sfWebServicePort field.
271 void ComplexSceneManagerBase::setWebServicePort(const UInt32 value)
273 editSField(WebServicePortFieldMask);
275 _sfWebServicePort.setValue(value);
277 //! Get the value of the ComplexSceneManager::_sfWebServiceRoot field.
280 std::string &ComplexSceneManagerBase::editWebServiceRoot(void)
282 editSField(WebServiceRootFieldMask);
284 return _sfWebServiceRoot.getValue();
287 //! Get the value of the ComplexSceneManager::_sfWebServiceRoot field.
289 const std::string &ComplexSceneManagerBase::getWebServiceRoot(void) const
291 return _sfWebServiceRoot.getValue();
294 //! Set the value of the ComplexSceneManager::_sfWebServiceRoot field.
296 void ComplexSceneManagerBase::setWebServiceRoot(const std::string &value)
298 editSField(WebServiceRootFieldMask);
300 _sfWebServiceRoot.setValue(value);
302 //! Get the value of the ComplexSceneManager::_sfWaitKeyAfterFrame field.
305 bool &ComplexSceneManagerBase::editWaitKeyAfterFrame(void)
307 editSField(WaitKeyAfterFrameFieldMask);
309 return _sfWaitKeyAfterFrame.getValue();
312 //! Get the value of the ComplexSceneManager::_sfWaitKeyAfterFrame field.
314 bool ComplexSceneManagerBase::getWaitKeyAfterFrame(void) const
316 return _sfWaitKeyAfterFrame.getValue();
319 //! Set the value of the ComplexSceneManager::_sfWaitKeyAfterFrame field.
321 void ComplexSceneManagerBase::setWaitKeyAfterFrame(const bool value)
323 editSField(WaitKeyAfterFrameFieldMask);
325 _sfWaitKeyAfterFrame.setValue(value);
330 #ifdef OSG_MT_CPTR_ASPECT
332 void ComplexSceneManagerBase::execSync ( ComplexSceneManagerBase *pFrom,
333 ConstFieldMaskArg whichField,
334 AspectOffsetStore &oOffsets,
335 ConstFieldMaskArg syncMode,
336 const UInt32 uiSyncInfo)
338 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
340 if(FieldBits::NoField != (GlobalsFieldMask & whichField))
341 _mfGlobals.syncWith(pFrom->_mfGlobals,
346 if(FieldBits::NoField != (DrawManagerFieldMask & whichField))
347 _sfDrawManager.syncWith(pFrom->_sfDrawManager);
349 if(FieldBits::NoField != (StartTimeFieldMask & whichField))
350 _sfStartTime.syncWith(pFrom->_sfStartTime);
352 if(FieldBits::NoField != (TimeScaleFieldMask & whichField))
353 _sfTimeScale.syncWith(pFrom->_sfTimeScale);
355 if(FieldBits::NoField != (ConstantTimeStepFieldMask & whichField))
356 _sfConstantTimeStep.syncWith(pFrom->_sfConstantTimeStep);
358 if(FieldBits::NoField != (ConstantTimeFieldMask & whichField))
359 _sfConstantTime.syncWith(pFrom->_sfConstantTime);
361 if(FieldBits::NoField != (PausedFieldMask & whichField))
362 _sfPaused.syncWith(pFrom->_sfPaused);
364 if(FieldBits::NoField != (DumpFrameStartFieldMask & whichField))
365 _sfDumpFrameStart.syncWith(pFrom->_sfDumpFrameStart);
367 if(FieldBits::NoField != (EnableWebServiceFieldMask & whichField))
368 _sfEnableWebService.syncWith(pFrom->_sfEnableWebService);
370 if(FieldBits::NoField != (WebServicePortFieldMask & whichField))
371 _sfWebServicePort.syncWith(pFrom->_sfWebServicePort);
373 if(FieldBits::NoField != (WebServiceRootFieldMask & whichField))
374 _sfWebServiceRoot.syncWith(pFrom->_sfWebServiceRoot);
376 if(FieldBits::NoField != (WaitKeyAfterFrameFieldMask & whichField))
377 _sfWaitKeyAfterFrame.syncWith(pFrom->_sfWaitKeyAfterFrame);
383 const Char8 *ComplexSceneManagerBase::getClassname(void)
385 return "ComplexSceneManager";
387 OSG_GEN_CONTAINERPTR(ComplexSceneManager);