fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Contrib / ComplexSceneManager / OSGComplexSceneManagerBase.inl
blob1871e28f0486376d3c7980200708ffede6c010ea
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 ComplexSceneManager!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &ComplexSceneManagerBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 ComplexSceneManagerBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 ComplexSceneManagerBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the ComplexSceneManager::_sfStartTime field.
79 inline
80 Time &ComplexSceneManagerBase::editStartTime(void)
82     editSField(StartTimeFieldMask);
84     return _sfStartTime.getValue();
87 //! Get the value of the ComplexSceneManager::_sfStartTime field.
88 inline
89 const Time &ComplexSceneManagerBase::getStartTime(void) const
91     return _sfStartTime.getValue();
94 //! Set the value of the ComplexSceneManager::_sfStartTime field.
95 inline
96 void ComplexSceneManagerBase::setStartTime(const Time &value)
98     editSField(StartTimeFieldMask);
100     _sfStartTime.setValue(value);
102 //! Get the value of the ComplexSceneManager::_sfTimeScale field.
104 inline
105 Time &ComplexSceneManagerBase::editTimeScale(void)
107     editSField(TimeScaleFieldMask);
109     return _sfTimeScale.getValue();
112 //! Get the value of the ComplexSceneManager::_sfTimeScale field.
113 inline
114 const Time &ComplexSceneManagerBase::getTimeScale(void) const
116     return _sfTimeScale.getValue();
119 //! Set the value of the ComplexSceneManager::_sfTimeScale field.
120 inline
121 void ComplexSceneManagerBase::setTimeScale(const Time &value)
123     editSField(TimeScaleFieldMask);
125     _sfTimeScale.setValue(value);
127 //! Get the value of the ComplexSceneManager::_sfConstantTimeStep field.
129 inline
130 Time &ComplexSceneManagerBase::editConstantTimeStep(void)
132     editSField(ConstantTimeStepFieldMask);
134     return _sfConstantTimeStep.getValue();
137 //! Get the value of the ComplexSceneManager::_sfConstantTimeStep field.
138 inline
139 const Time &ComplexSceneManagerBase::getConstantTimeStep(void) const
141     return _sfConstantTimeStep.getValue();
144 //! Set the value of the ComplexSceneManager::_sfConstantTimeStep field.
145 inline
146 void ComplexSceneManagerBase::setConstantTimeStep(const Time &value)
148     editSField(ConstantTimeStepFieldMask);
150     _sfConstantTimeStep.setValue(value);
152 //! Get the value of the ComplexSceneManager::_sfConstantTime field.
154 inline
155 bool &ComplexSceneManagerBase::editConstantTime(void)
157     editSField(ConstantTimeFieldMask);
159     return _sfConstantTime.getValue();
162 //! Get the value of the ComplexSceneManager::_sfConstantTime field.
163 inline
164       bool  ComplexSceneManagerBase::getConstantTime(void) const
166     return _sfConstantTime.getValue();
169 //! Set the value of the ComplexSceneManager::_sfConstantTime field.
170 inline
171 void ComplexSceneManagerBase::setConstantTime(const bool value)
173     editSField(ConstantTimeFieldMask);
175     _sfConstantTime.setValue(value);
177 //! Get the value of the ComplexSceneManager::_sfPaused field.
179 inline
180 bool &ComplexSceneManagerBase::editPaused(void)
182     editSField(PausedFieldMask);
184     return _sfPaused.getValue();
187 //! Get the value of the ComplexSceneManager::_sfPaused field.
188 inline
189       bool  ComplexSceneManagerBase::getPaused(void) const
191     return _sfPaused.getValue();
194 //! Set the value of the ComplexSceneManager::_sfPaused field.
195 inline
196 void ComplexSceneManagerBase::setPaused(const bool value)
198     editSField(PausedFieldMask);
200     _sfPaused.setValue(value);
202 //! Get the value of the ComplexSceneManager::_sfDumpFrameStart field.
204 inline
205 bool &ComplexSceneManagerBase::editDumpFrameStart(void)
207     editSField(DumpFrameStartFieldMask);
209     return _sfDumpFrameStart.getValue();
212 //! Get the value of the ComplexSceneManager::_sfDumpFrameStart field.
213 inline
214       bool  ComplexSceneManagerBase::getDumpFrameStart(void) const
216     return _sfDumpFrameStart.getValue();
219 //! Set the value of the ComplexSceneManager::_sfDumpFrameStart field.
220 inline
221 void ComplexSceneManagerBase::setDumpFrameStart(const bool value)
223     editSField(DumpFrameStartFieldMask);
225     _sfDumpFrameStart.setValue(value);
227 //! Get the value of the ComplexSceneManager::_sfEnableWebService field.
229 inline
230 bool &ComplexSceneManagerBase::editEnableWebService(void)
232     editSField(EnableWebServiceFieldMask);
234     return _sfEnableWebService.getValue();
237 //! Get the value of the ComplexSceneManager::_sfEnableWebService field.
238 inline
239       bool  ComplexSceneManagerBase::getEnableWebService(void) const
241     return _sfEnableWebService.getValue();
244 //! Set the value of the ComplexSceneManager::_sfEnableWebService field.
245 inline
246 void ComplexSceneManagerBase::setEnableWebService(const bool value)
248     editSField(EnableWebServiceFieldMask);
250     _sfEnableWebService.setValue(value);
252 //! Get the value of the ComplexSceneManager::_sfWebServicePort field.
254 inline
255 UInt32 &ComplexSceneManagerBase::editWebServicePort(void)
257     editSField(WebServicePortFieldMask);
259     return _sfWebServicePort.getValue();
262 //! Get the value of the ComplexSceneManager::_sfWebServicePort field.
263 inline
264       UInt32  ComplexSceneManagerBase::getWebServicePort(void) const
266     return _sfWebServicePort.getValue();
269 //! Set the value of the ComplexSceneManager::_sfWebServicePort field.
270 inline
271 void ComplexSceneManagerBase::setWebServicePort(const UInt32 value)
273     editSField(WebServicePortFieldMask);
275     _sfWebServicePort.setValue(value);
277 //! Get the value of the ComplexSceneManager::_sfWebServiceRoot field.
279 inline
280 std::string &ComplexSceneManagerBase::editWebServiceRoot(void)
282     editSField(WebServiceRootFieldMask);
284     return _sfWebServiceRoot.getValue();
287 //! Get the value of the ComplexSceneManager::_sfWebServiceRoot field.
288 inline
289 const std::string &ComplexSceneManagerBase::getWebServiceRoot(void) const
291     return _sfWebServiceRoot.getValue();
294 //! Set the value of the ComplexSceneManager::_sfWebServiceRoot field.
295 inline
296 void ComplexSceneManagerBase::setWebServiceRoot(const std::string &value)
298     editSField(WebServiceRootFieldMask);
300     _sfWebServiceRoot.setValue(value);
302 //! Get the value of the ComplexSceneManager::_sfWaitKeyAfterFrame field.
304 inline
305 bool &ComplexSceneManagerBase::editWaitKeyAfterFrame(void)
307     editSField(WaitKeyAfterFrameFieldMask);
309     return _sfWaitKeyAfterFrame.getValue();
312 //! Get the value of the ComplexSceneManager::_sfWaitKeyAfterFrame field.
313 inline
314       bool  ComplexSceneManagerBase::getWaitKeyAfterFrame(void) const
316     return _sfWaitKeyAfterFrame.getValue();
319 //! Set the value of the ComplexSceneManager::_sfWaitKeyAfterFrame field.
320 inline
321 void ComplexSceneManagerBase::setWaitKeyAfterFrame(const bool value)
323     editSField(WaitKeyAfterFrameFieldMask);
325     _sfWaitKeyAfterFrame.setValue(value);
330 #ifdef OSG_MT_CPTR_ASPECT
331 inline
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,
342                                 syncMode,
343                                 uiSyncInfo,
344                                 oOffsets);
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);
379 #endif
382 inline
383 const Char8 *ComplexSceneManagerBase::getClassname(void)
385     return "ComplexSceneManager";
387 OSG_GEN_CONTAINERPTR(ComplexSceneManager);
389 OSG_END_NAMESPACE