fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Dynamics / Base / OSGFrameHandlerBase.inl
blobf74258d9645b103359ffd9a07ae90d15360354fe
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 FrameHandler!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &FrameHandlerBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 FrameHandlerBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 FrameHandlerBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the FrameHandler::_sfFrameCount field.
79 inline
80 UInt64 &FrameHandlerBase::editFrameCount(void)
82     editSField(FrameCountFieldMask);
84     return _sfFrameCount.getValue();
87 //! Get the value of the FrameHandler::_sfFrameCount field.
88 inline
89       UInt64  FrameHandlerBase::getFrameCount(void) const
91     return _sfFrameCount.getValue();
94 //! Set the value of the FrameHandler::_sfFrameCount field.
95 inline
96 void FrameHandlerBase::setFrameCount(const UInt64 value)
98     editSField(FrameCountFieldMask);
100     _sfFrameCount.setValue(value);
102 //! Get the value of the FrameHandler::_sfStartTime field.
104 inline
105 Time &FrameHandlerBase::editStartTime(void)
107     editSField(StartTimeFieldMask);
109     return _sfStartTime.getValue();
112 //! Get the value of the FrameHandler::_sfStartTime field.
113 inline
114 const Time &FrameHandlerBase::getStartTime(void) const
116     return _sfStartTime.getValue();
119 //! Set the value of the FrameHandler::_sfStartTime field.
120 inline
121 void FrameHandlerBase::setStartTime(const Time &value)
123     editSField(StartTimeFieldMask);
125     _sfStartTime.setValue(value);
127 //! Get the value of the FrameHandler::_sfLastTime field.
129 inline
130 Time &FrameHandlerBase::editLastTime(void)
132     editSField(LastTimeFieldMask);
134     return _sfLastTime.getValue();
137 //! Get the value of the FrameHandler::_sfLastTime field.
138 inline
139 const Time &FrameHandlerBase::getLastTime(void) const
141     return _sfLastTime.getValue();
144 //! Set the value of the FrameHandler::_sfLastTime field.
145 inline
146 void FrameHandlerBase::setLastTime(const Time &value)
148     editSField(LastTimeFieldMask);
150     _sfLastTime.setValue(value);
152 //! Get the value of the FrameHandler::_sfCurrTime field.
154 inline
155 Time &FrameHandlerBase::editCurrTime(void)
157     editSField(CurrTimeFieldMask);
159     return _sfCurrTime.getValue();
162 //! Get the value of the FrameHandler::_sfCurrTime field.
163 inline
164 const Time &FrameHandlerBase::getCurrTime(void) const
166     return _sfCurrTime.getValue();
169 //! Set the value of the FrameHandler::_sfCurrTime field.
170 inline
171 void FrameHandlerBase::setCurrTime(const Time &value)
173     editSField(CurrTimeFieldMask);
175     _sfCurrTime.setValue(value);
177 //! Get the value of the FrameHandler::_sfTimeStamp field.
179 inline
180 Time &FrameHandlerBase::editTimeStamp(void)
182     editSField(TimeStampFieldMask);
184     return _sfTimeStamp.getValue();
187 //! Get the value of the FrameHandler::_sfTimeStamp field.
188 inline
189 const Time &FrameHandlerBase::getTimeStamp(void) const
191     return _sfTimeStamp.getValue();
194 //! Set the value of the FrameHandler::_sfTimeStamp field.
195 inline
196 void FrameHandlerBase::setTimeStamp(const Time &value)
198     editSField(TimeStampFieldMask);
200     _sfTimeStamp.setValue(value);
202 //! Get the value of the FrameHandler::_sfTimeScale field.
204 inline
205 Time &FrameHandlerBase::editTimeScale(void)
207     editSField(TimeScaleFieldMask);
209     return _sfTimeScale.getValue();
212 //! Get the value of the FrameHandler::_sfTimeScale field.
213 inline
214 const Time &FrameHandlerBase::getTimeScale(void) const
216     return _sfTimeScale.getValue();
219 //! Set the value of the FrameHandler::_sfTimeScale field.
220 inline
221 void FrameHandlerBase::setTimeScale(const Time &value)
223     editSField(TimeScaleFieldMask);
225     _sfTimeScale.setValue(value);
227 //! Get the value of the FrameHandler::_sfConstantTimeStep field.
229 inline
230 Time &FrameHandlerBase::editConstantTimeStep(void)
232     editSField(ConstantTimeStepFieldMask);
234     return _sfConstantTimeStep.getValue();
237 //! Get the value of the FrameHandler::_sfConstantTimeStep field.
238 inline
239 const Time &FrameHandlerBase::getConstantTimeStep(void) const
241     return _sfConstantTimeStep.getValue();
244 //! Set the value of the FrameHandler::_sfConstantTimeStep field.
245 inline
246 void FrameHandlerBase::setConstantTimeStep(const Time &value)
248     editSField(ConstantTimeStepFieldMask);
250     _sfConstantTimeStep.setValue(value);
252 //! Get the value of the FrameHandler::_sfConstantTime field.
254 inline
255 bool &FrameHandlerBase::editConstantTime(void)
257     editSField(ConstantTimeFieldMask);
259     return _sfConstantTime.getValue();
262 //! Get the value of the FrameHandler::_sfConstantTime field.
263 inline
264       bool  FrameHandlerBase::getConstantTime(void) const
266     return _sfConstantTime.getValue();
269 //! Set the value of the FrameHandler::_sfConstantTime field.
270 inline
271 void FrameHandlerBase::setConstantTime(const bool value)
273     editSField(ConstantTimeFieldMask);
275     _sfConstantTime.setValue(value);
277 //! Get the value of the FrameHandler::_sfPaused field.
279 inline
280 bool &FrameHandlerBase::editPaused(void)
282     editSField(PausedFieldMask);
284     return _sfPaused.getValue();
287 //! Get the value of the FrameHandler::_sfPaused field.
288 inline
289       bool  FrameHandlerBase::getPaused(void) const
291     return _sfPaused.getValue();
294 //! Set the value of the FrameHandler::_sfPaused field.
295 inline
296 void FrameHandlerBase::setPaused(const bool value)
298     editSField(PausedFieldMask);
300     _sfPaused.setValue(value);
304 #ifdef OSG_MT_CPTR_ASPECT
305 inline
306 void FrameHandlerBase::execSync (      FrameHandlerBase *pFrom,
307                                         ConstFieldMaskArg  whichField,
308                                         AspectOffsetStore &oOffsets,
309                                         ConstFieldMaskArg  syncMode,
310                                   const UInt32             uiSyncInfo)
312     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
314     if(FieldBits::NoField != (FrameCountFieldMask & whichField))
315         _sfFrameCount.syncWith(pFrom->_sfFrameCount);
317     if(FieldBits::NoField != (StartTimeFieldMask & whichField))
318         _sfStartTime.syncWith(pFrom->_sfStartTime);
320     if(FieldBits::NoField != (LastTimeFieldMask & whichField))
321         _sfLastTime.syncWith(pFrom->_sfLastTime);
323     if(FieldBits::NoField != (CurrTimeFieldMask & whichField))
324         _sfCurrTime.syncWith(pFrom->_sfCurrTime);
326     if(FieldBits::NoField != (TimeStampFieldMask & whichField))
327         _sfTimeStamp.syncWith(pFrom->_sfTimeStamp);
329     if(FieldBits::NoField != (TimeScaleFieldMask & whichField))
330         _sfTimeScale.syncWith(pFrom->_sfTimeScale);
332     if(FieldBits::NoField != (ConstantTimeStepFieldMask & whichField))
333         _sfConstantTimeStep.syncWith(pFrom->_sfConstantTimeStep);
335     if(FieldBits::NoField != (ConstantTimeFieldMask & whichField))
336         _sfConstantTime.syncWith(pFrom->_sfConstantTime);
338     if(FieldBits::NoField != (PausedFieldMask & whichField))
339         _sfPaused.syncWith(pFrom->_sfPaused);
341 #endif
344 inline
345 const Char8 *FrameHandlerBase::getClassname(void)
347     return "FrameHandler";
349 OSG_GEN_CONTAINERPTR(FrameHandler);
351 OSG_END_NAMESPACE