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 FrameHandler!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &FrameHandlerBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 FrameHandlerBase::getClassTypeId(void)
70 OSG::UInt16 FrameHandlerBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the FrameHandler::_sfFrameCount field.
80 UInt64 &FrameHandlerBase::editFrameCount(void)
82 editSField(FrameCountFieldMask);
84 return _sfFrameCount.getValue();
87 //! Get the value of the FrameHandler::_sfFrameCount field.
89 UInt64 FrameHandlerBase::getFrameCount(void) const
91 return _sfFrameCount.getValue();
94 //! Set the value of the FrameHandler::_sfFrameCount field.
96 void FrameHandlerBase::setFrameCount(const UInt64 value)
98 editSField(FrameCountFieldMask);
100 _sfFrameCount.setValue(value);
102 //! Get the value of the FrameHandler::_sfStartTime field.
105 Time &FrameHandlerBase::editStartTime(void)
107 editSField(StartTimeFieldMask);
109 return _sfStartTime.getValue();
112 //! Get the value of the FrameHandler::_sfStartTime field.
114 const Time &FrameHandlerBase::getStartTime(void) const
116 return _sfStartTime.getValue();
119 //! Set the value of the FrameHandler::_sfStartTime field.
121 void FrameHandlerBase::setStartTime(const Time &value)
123 editSField(StartTimeFieldMask);
125 _sfStartTime.setValue(value);
127 //! Get the value of the FrameHandler::_sfLastTime field.
130 Time &FrameHandlerBase::editLastTime(void)
132 editSField(LastTimeFieldMask);
134 return _sfLastTime.getValue();
137 //! Get the value of the FrameHandler::_sfLastTime field.
139 const Time &FrameHandlerBase::getLastTime(void) const
141 return _sfLastTime.getValue();
144 //! Set the value of the FrameHandler::_sfLastTime field.
146 void FrameHandlerBase::setLastTime(const Time &value)
148 editSField(LastTimeFieldMask);
150 _sfLastTime.setValue(value);
152 //! Get the value of the FrameHandler::_sfCurrTime field.
155 Time &FrameHandlerBase::editCurrTime(void)
157 editSField(CurrTimeFieldMask);
159 return _sfCurrTime.getValue();
162 //! Get the value of the FrameHandler::_sfCurrTime field.
164 const Time &FrameHandlerBase::getCurrTime(void) const
166 return _sfCurrTime.getValue();
169 //! Set the value of the FrameHandler::_sfCurrTime field.
171 void FrameHandlerBase::setCurrTime(const Time &value)
173 editSField(CurrTimeFieldMask);
175 _sfCurrTime.setValue(value);
177 //! Get the value of the FrameHandler::_sfTimeStamp field.
180 Time &FrameHandlerBase::editTimeStamp(void)
182 editSField(TimeStampFieldMask);
184 return _sfTimeStamp.getValue();
187 //! Get the value of the FrameHandler::_sfTimeStamp field.
189 const Time &FrameHandlerBase::getTimeStamp(void) const
191 return _sfTimeStamp.getValue();
194 //! Set the value of the FrameHandler::_sfTimeStamp field.
196 void FrameHandlerBase::setTimeStamp(const Time &value)
198 editSField(TimeStampFieldMask);
200 _sfTimeStamp.setValue(value);
202 //! Get the value of the FrameHandler::_sfTimeScale field.
205 Time &FrameHandlerBase::editTimeScale(void)
207 editSField(TimeScaleFieldMask);
209 return _sfTimeScale.getValue();
212 //! Get the value of the FrameHandler::_sfTimeScale field.
214 const Time &FrameHandlerBase::getTimeScale(void) const
216 return _sfTimeScale.getValue();
219 //! Set the value of the FrameHandler::_sfTimeScale field.
221 void FrameHandlerBase::setTimeScale(const Time &value)
223 editSField(TimeScaleFieldMask);
225 _sfTimeScale.setValue(value);
227 //! Get the value of the FrameHandler::_sfConstantTimeStep field.
230 Time &FrameHandlerBase::editConstantTimeStep(void)
232 editSField(ConstantTimeStepFieldMask);
234 return _sfConstantTimeStep.getValue();
237 //! Get the value of the FrameHandler::_sfConstantTimeStep field.
239 const Time &FrameHandlerBase::getConstantTimeStep(void) const
241 return _sfConstantTimeStep.getValue();
244 //! Set the value of the FrameHandler::_sfConstantTimeStep field.
246 void FrameHandlerBase::setConstantTimeStep(const Time &value)
248 editSField(ConstantTimeStepFieldMask);
250 _sfConstantTimeStep.setValue(value);
252 //! Get the value of the FrameHandler::_sfConstantTime field.
255 bool &FrameHandlerBase::editConstantTime(void)
257 editSField(ConstantTimeFieldMask);
259 return _sfConstantTime.getValue();
262 //! Get the value of the FrameHandler::_sfConstantTime field.
264 bool FrameHandlerBase::getConstantTime(void) const
266 return _sfConstantTime.getValue();
269 //! Set the value of the FrameHandler::_sfConstantTime field.
271 void FrameHandlerBase::setConstantTime(const bool value)
273 editSField(ConstantTimeFieldMask);
275 _sfConstantTime.setValue(value);
277 //! Get the value of the FrameHandler::_sfPaused field.
280 bool &FrameHandlerBase::editPaused(void)
282 editSField(PausedFieldMask);
284 return _sfPaused.getValue();
287 //! Get the value of the FrameHandler::_sfPaused field.
289 bool FrameHandlerBase::getPaused(void) const
291 return _sfPaused.getValue();
294 //! Set the value of the FrameHandler::_sfPaused field.
296 void FrameHandlerBase::setPaused(const bool value)
298 editSField(PausedFieldMask);
300 _sfPaused.setValue(value);
304 #ifdef OSG_MT_CPTR_ASPECT
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);
345 const Char8 *FrameHandlerBase::getClassname(void)
347 return "FrameHandler";
349 OSG_GEN_CONTAINERPTR(FrameHandler);