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 **
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &TimeSensorBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 TimeSensorBase::getClassTypeId(void)
70 OSG::UInt16 TimeSensorBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TimeSensor::_sfEnabled field.
80 bool &TimeSensorBase::editEnabled(void)
82 editSField(EnabledFieldMask);
84 return _sfEnabled.getValue();
87 //! Get the value of the TimeSensor::_sfEnabled field.
89 bool TimeSensorBase::getEnabled(void) const
91 return _sfEnabled.getValue();
94 //! Set the value of the TimeSensor::_sfEnabled field.
96 void TimeSensorBase::setEnabled(const bool value)
98 editSField(EnabledFieldMask);
100 _sfEnabled.setValue(value);
102 //! Get the value of the TimeSensor::_sfIsActive field.
105 bool &TimeSensorBase::editIsActive(void)
107 editSField(IsActiveFieldMask);
109 return _sfIsActive.getValue();
112 //! Get the value of the TimeSensor::_sfIsActive field.
114 bool TimeSensorBase::getIsActive(void) const
116 return _sfIsActive.getValue();
119 //! Set the value of the TimeSensor::_sfIsActive field.
121 void TimeSensorBase::setIsActive(const bool value)
123 editSField(IsActiveFieldMask);
125 _sfIsActive.setValue(value);
127 //! Get the value of the TimeSensor::_sfLoop field.
130 bool &TimeSensorBase::editLoop(void)
132 editSField(LoopFieldMask);
134 return _sfLoop.getValue();
137 //! Get the value of the TimeSensor::_sfLoop field.
139 bool TimeSensorBase::getLoop(void) const
141 return _sfLoop.getValue();
144 //! Set the value of the TimeSensor::_sfLoop field.
146 void TimeSensorBase::setLoop(const bool value)
148 editSField(LoopFieldMask);
150 _sfLoop.setValue(value);
152 //! Get the value of the TimeSensor::_sfFraction field.
155 Real32 &TimeSensorBase::editFraction(void)
157 editSField(FractionFieldMask);
159 return _sfFraction.getValue();
162 //! Get the value of the TimeSensor::_sfFraction field.
164 Real32 TimeSensorBase::getFraction(void) const
166 return _sfFraction.getValue();
169 //! Set the value of the TimeSensor::_sfFraction field.
171 void TimeSensorBase::setFraction(const Real32 value)
173 editSField(FractionFieldMask);
175 _sfFraction.setValue(value);
177 //! Get the value of the TimeSensor::_sfStartTime field.
180 Time &TimeSensorBase::editStartTime(void)
182 editSField(StartTimeFieldMask);
184 return _sfStartTime.getValue();
187 //! Get the value of the TimeSensor::_sfStartTime field.
189 const Time &TimeSensorBase::getStartTime(void) const
191 return _sfStartTime.getValue();
194 //! Set the value of the TimeSensor::_sfStartTime field.
196 void TimeSensorBase::setStartTime(const Time &value)
198 editSField(StartTimeFieldMask);
200 _sfStartTime.setValue(value);
202 //! Get the value of the TimeSensor::_sfStopTime field.
205 Time &TimeSensorBase::editStopTime(void)
207 editSField(StopTimeFieldMask);
209 return _sfStopTime.getValue();
212 //! Get the value of the TimeSensor::_sfStopTime field.
214 const Time &TimeSensorBase::getStopTime(void) const
216 return _sfStopTime.getValue();
219 //! Set the value of the TimeSensor::_sfStopTime field.
221 void TimeSensorBase::setStopTime(const Time &value)
223 editSField(StopTimeFieldMask);
225 _sfStopTime.setValue(value);
227 //! Get the value of the TimeSensor::_sfCycleTime field.
230 Time &TimeSensorBase::editCycleTime(void)
232 editSField(CycleTimeFieldMask);
234 return _sfCycleTime.getValue();
237 //! Get the value of the TimeSensor::_sfCycleTime field.
239 const Time &TimeSensorBase::getCycleTime(void) const
241 return _sfCycleTime.getValue();
244 //! Set the value of the TimeSensor::_sfCycleTime field.
246 void TimeSensorBase::setCycleTime(const Time &value)
248 editSField(CycleTimeFieldMask);
250 _sfCycleTime.setValue(value);
252 //! Get the value of the TimeSensor::_sfTime field.
255 Time &TimeSensorBase::editTime(void)
257 editSField(TimeFieldMask);
259 return _sfTime.getValue();
262 //! Get the value of the TimeSensor::_sfTime field.
264 const Time &TimeSensorBase::getTime(void) const
266 return _sfTime.getValue();
269 //! Set the value of the TimeSensor::_sfTime field.
271 void TimeSensorBase::setTime(const Time &value)
273 editSField(TimeFieldMask);
275 _sfTime.setValue(value);
277 //! Get the value of the TimeSensor::_sfCycleInterval field.
280 Time &TimeSensorBase::editCycleInterval(void)
282 editSField(CycleIntervalFieldMask);
284 return _sfCycleInterval.getValue();
287 //! Get the value of the TimeSensor::_sfCycleInterval field.
289 const Time &TimeSensorBase::getCycleInterval(void) const
291 return _sfCycleInterval.getValue();
294 //! Set the value of the TimeSensor::_sfCycleInterval field.
296 void TimeSensorBase::setCycleInterval(const Time &value)
298 editSField(CycleIntervalFieldMask);
300 _sfCycleInterval.setValue(value);
302 //! Get the value of the TimeSensor::_sfChangeFractionBy field.
305 Time &TimeSensorBase::editChangeFractionBy(void)
307 editSField(ChangeFractionByFieldMask);
309 return _sfChangeFractionBy.getValue();
312 //! Get the value of the TimeSensor::_sfChangeFractionBy field.
314 const Time &TimeSensorBase::getChangeFractionBy(void) const
316 return _sfChangeFractionBy.getValue();
319 //! Set the value of the TimeSensor::_sfChangeFractionBy field.
321 void TimeSensorBase::setChangeFractionBy(const Time &value)
323 editSField(ChangeFractionByFieldMask);
325 _sfChangeFractionBy.setValue(value);
329 #ifdef OSG_MT_CPTR_ASPECT
331 void TimeSensorBase::execSync ( TimeSensorBase *pFrom,
332 ConstFieldMaskArg whichField,
333 AspectOffsetStore &oOffsets,
334 ConstFieldMaskArg syncMode,
335 const UInt32 uiSyncInfo)
337 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
339 if(FieldBits::NoField != (EnabledFieldMask & whichField))
340 _sfEnabled.syncWith(pFrom->_sfEnabled);
342 if(FieldBits::NoField != (IsActiveFieldMask & whichField))
343 _sfIsActive.syncWith(pFrom->_sfIsActive);
345 if(FieldBits::NoField != (LoopFieldMask & whichField))
346 _sfLoop.syncWith(pFrom->_sfLoop);
348 if(FieldBits::NoField != (FractionFieldMask & whichField))
349 _sfFraction.syncWith(pFrom->_sfFraction);
351 if(FieldBits::NoField != (StartTimeFieldMask & whichField))
352 _sfStartTime.syncWith(pFrom->_sfStartTime);
354 if(FieldBits::NoField != (StopTimeFieldMask & whichField))
355 _sfStopTime.syncWith(pFrom->_sfStopTime);
357 if(FieldBits::NoField != (CycleTimeFieldMask & whichField))
358 _sfCycleTime.syncWith(pFrom->_sfCycleTime);
360 if(FieldBits::NoField != (TimeFieldMask & whichField))
361 _sfTime.syncWith(pFrom->_sfTime);
363 if(FieldBits::NoField != (CycleIntervalFieldMask & whichField))
364 _sfCycleInterval.syncWith(pFrom->_sfCycleInterval);
366 if(FieldBits::NoField != (ChangeFractionByFieldMask & whichField))
367 _sfChangeFractionBy.syncWith(pFrom->_sfChangeFractionBy);
373 const Char8 *TimeSensorBase::getClassname(void)
377 OSG_GEN_CONTAINERPTR(TimeSensor);