1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
42 ** This file is automatically generated. **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
47 ** Do not change this file, changes should be done in the derived **
48 ** class FrameHandler!
50 *****************************************************************************
51 \*****************************************************************************/
57 #pragma warning(disable: 4355) // turn off 'this' : used in base member initializer list warning
58 #pragma warning(disable: 4290) // disable exception specification warning
61 #include "OSGConfig.h"
66 #include "OSGFrameHandlerBase.h"
67 #include "OSGFrameHandler.h"
69 #include <boost/bind.hpp>
73 /***************************************************************************\
75 \***************************************************************************/
77 /*! \class OSG::FrameHandler
81 /***************************************************************************\
82 * Field Documentation *
83 \***************************************************************************/
85 /*! \var UInt64 FrameHandlerBase::_sfFrameCount
89 /*! \var Time FrameHandlerBase::_sfStartTime
93 /*! \var Time FrameHandlerBase::_sfLastTime
97 /*! \var Time FrameHandlerBase::_sfCurrTime
101 /*! \var Time FrameHandlerBase::_sfTimeStamp
105 /*! \var Time FrameHandlerBase::_sfTimeScale
109 /*! \var Time FrameHandlerBase::_sfConstantTimeStep
113 /*! \var bool FrameHandlerBase::_sfConstantTime
117 /*! \var bool FrameHandlerBase::_sfPaused
122 /***************************************************************************\
123 * FieldType/FieldTrait Instantiation *
124 \***************************************************************************/
126 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
127 PointerType FieldTraits
<FrameHandler
*, nsOSG
>::_type(
129 "AttachmentContainerPtr",
130 FrameHandler::getClassType(),
134 OSG_FIELDTRAITS_GETTYPE_NS(FrameHandler
*, nsOSG
)
136 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField
,
141 /***************************************************************************\
142 * Field Description *
143 \***************************************************************************/
145 void FrameHandlerBase::classDescInserter(TypeObject
&oType
)
147 FieldDescriptionBase
*pDesc
= NULL
;
150 pDesc
= new SFUInt64::Description(
151 SFUInt64::getClassType(),
154 FrameCountFieldId
, FrameCountFieldMask
,
156 (Field::SFDefaultFlags
| Field::FStdAccess
),
157 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleFrameCount
),
158 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleFrameCount
));
160 oType
.addInitialDesc(pDesc
);
162 pDesc
= new SFTime::Description(
163 SFTime::getClassType(),
166 StartTimeFieldId
, StartTimeFieldMask
,
168 (Field::SFDefaultFlags
| Field::FStdAccess
),
169 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleStartTime
),
170 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleStartTime
));
172 oType
.addInitialDesc(pDesc
);
174 pDesc
= new SFTime::Description(
175 SFTime::getClassType(),
178 LastTimeFieldId
, LastTimeFieldMask
,
180 (Field::SFDefaultFlags
| Field::FStdAccess
),
181 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleLastTime
),
182 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleLastTime
));
184 oType
.addInitialDesc(pDesc
);
186 pDesc
= new SFTime::Description(
187 SFTime::getClassType(),
190 CurrTimeFieldId
, CurrTimeFieldMask
,
192 (Field::SFDefaultFlags
| Field::FStdAccess
),
193 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleCurrTime
),
194 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleCurrTime
));
196 oType
.addInitialDesc(pDesc
);
198 pDesc
= new SFTime::Description(
199 SFTime::getClassType(),
202 TimeStampFieldId
, TimeStampFieldMask
,
204 (Field::SFDefaultFlags
| Field::FStdAccess
),
205 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleTimeStamp
),
206 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleTimeStamp
));
208 oType
.addInitialDesc(pDesc
);
210 pDesc
= new SFTime::Description(
211 SFTime::getClassType(),
214 TimeScaleFieldId
, TimeScaleFieldMask
,
216 (Field::SFDefaultFlags
| Field::FStdAccess
),
217 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleTimeScale
),
218 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleTimeScale
));
220 oType
.addInitialDesc(pDesc
);
222 pDesc
= new SFTime::Description(
223 SFTime::getClassType(),
226 ConstantTimeStepFieldId
, ConstantTimeStepFieldMask
,
228 (Field::SFDefaultFlags
| Field::FStdAccess
),
229 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleConstantTimeStep
),
230 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleConstantTimeStep
));
232 oType
.addInitialDesc(pDesc
);
234 pDesc
= new SFBool::Description(
235 SFBool::getClassType(),
238 ConstantTimeFieldId
, ConstantTimeFieldMask
,
240 (Field::SFDefaultFlags
| Field::FStdAccess
),
241 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandleConstantTime
),
242 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandleConstantTime
));
244 oType
.addInitialDesc(pDesc
);
246 pDesc
= new SFBool::Description(
247 SFBool::getClassType(),
250 PausedFieldId
, PausedFieldMask
,
252 (Field::SFDefaultFlags
| Field::FStdAccess
),
253 static_cast<FieldEditMethodSig
>(&FrameHandler::editHandlePaused
),
254 static_cast<FieldGetMethodSig
>(&FrameHandler::getHandlePaused
));
256 oType
.addInitialDesc(pDesc
);
260 FrameHandlerBase::TypeObject
FrameHandlerBase::_type(
261 FrameHandlerBase::getClassname(),
262 Inherited::getClassname(),
265 reinterpret_cast<PrototypeCreateF
>(&FrameHandlerBase::createEmptyLocal
),
266 reinterpret_cast<InitContainerF
>(&FrameHandler::initMethod
),
267 reinterpret_cast<ExitContainerF
>(&FrameHandler::exitMethod
),
268 reinterpret_cast<InitalInsertDescFunc
>(
269 reinterpret_cast<void *>(&FrameHandler::classDescInserter
)),
272 "<?xml version=\"1.0\"?>\n"
275 " name=\"FrameHandler\"\n"
276 " parent=\"AttachmentContainer\"\n"
277 " library=\"Dynamics\"\n"
278 " pointerfieldtypes=\"single\"\n"
279 " structure=\"concrete\"\n"
280 " systemcomponent=\"true\"\n"
281 " parentsystemcomponent=\"true\"\n"
282 " decoratable=\"false\"\n"
283 " useLocalIncludes=\"false\"\n"
284 " isNodeCore=\"false\"\n"
285 " isBundle=\"true\"\n"
286 " parentFields=\"none\"\n"
287 " docGroupBase=\"GrpDynamicsBase\"\n"
290 "\t name=\"frameCount\"\n"
291 "\t type=\"UInt64\"\n"
292 "\t cardinality=\"single\"\n"
293 "\t visibility=\"internal\"\n"
294 "\t access=\"public\"\n"
295 " defaultValue=\"0\"\n"
300 "\t name=\"startTime\"\n"
302 "\t cardinality=\"single\"\n"
303 "\t visibility=\"internal\"\n"
304 "\t access=\"public\"\n"
305 " defaultValue=\"-1.0\"\n"
310 "\t name=\"lastTime\"\n"
312 "\t cardinality=\"single\"\n"
313 "\t visibility=\"internal\"\n"
314 "\t access=\"public\"\n"
315 " defaultValue=\"0.0\"\n"
319 "\t name=\"currTime\"\n"
321 "\t cardinality=\"single\"\n"
322 "\t visibility=\"internal\"\n"
323 "\t access=\"public\"\n"
324 " defaultValue=\"0.0\"\n"
328 "\t name=\"timeStamp\"\n"
330 "\t cardinality=\"single\"\n"
331 "\t visibility=\"internal\"\n"
332 "\t access=\"public\"\n"
333 " defaultValue=\"0.0\"\n"
337 "\t name=\"timeScale\"\n"
339 "\t cardinality=\"single\"\n"
340 "\t visibility=\"internal\"\n"
341 "\t access=\"public\"\n"
342 " defaultValue=\"1.0\"\n"
346 "\t name=\"constantTimeStep\"\n"
348 "\t cardinality=\"single\"\n"
349 "\t visibility=\"internal\"\n"
350 "\t access=\"public\"\n"
351 " defaultValue=\"0.0\"\n"
355 "\t name=\"constantTime\"\n"
357 "\t cardinality=\"single\"\n"
358 "\t visibility=\"internal\"\n"
359 "\t access=\"public\"\n"
360 " defaultValue=\"false\"\n"
364 "\t name=\"paused\"\n"
366 "\t cardinality=\"single\"\n"
367 "\t visibility=\"internal\"\n"
368 "\t access=\"public\"\n"
369 " defaultValue=\"false\"\n"
373 "</FieldContainer>\n",
377 /*------------------------------ get -----------------------------------*/
379 FieldContainerType
&FrameHandlerBase::getType(void)
384 const FieldContainerType
&FrameHandlerBase::getType(void) const
389 UInt32
FrameHandlerBase::getContainerSize(void) const
391 return sizeof(FrameHandler
);
394 /*------------------------- decorator get ------------------------------*/
397 SFUInt64
*FrameHandlerBase::editSFFrameCount(void)
399 editSField(FrameCountFieldMask
);
401 return &_sfFrameCount
;
404 const SFUInt64
*FrameHandlerBase::getSFFrameCount(void) const
406 return &_sfFrameCount
;
410 SFTime
*FrameHandlerBase::editSFStartTime(void)
412 editSField(StartTimeFieldMask
);
414 return &_sfStartTime
;
417 const SFTime
*FrameHandlerBase::getSFStartTime(void) const
419 return &_sfStartTime
;
423 SFTime
*FrameHandlerBase::editSFLastTime(void)
425 editSField(LastTimeFieldMask
);
430 const SFTime
*FrameHandlerBase::getSFLastTime(void) const
436 SFTime
*FrameHandlerBase::editSFCurrTime(void)
438 editSField(CurrTimeFieldMask
);
443 const SFTime
*FrameHandlerBase::getSFCurrTime(void) const
449 SFTime
*FrameHandlerBase::editSFTimeStamp(void)
451 editSField(TimeStampFieldMask
);
453 return &_sfTimeStamp
;
456 const SFTime
*FrameHandlerBase::getSFTimeStamp(void) const
458 return &_sfTimeStamp
;
462 SFTime
*FrameHandlerBase::editSFTimeScale(void)
464 editSField(TimeScaleFieldMask
);
466 return &_sfTimeScale
;
469 const SFTime
*FrameHandlerBase::getSFTimeScale(void) const
471 return &_sfTimeScale
;
475 SFTime
*FrameHandlerBase::editSFConstantTimeStep(void)
477 editSField(ConstantTimeStepFieldMask
);
479 return &_sfConstantTimeStep
;
482 const SFTime
*FrameHandlerBase::getSFConstantTimeStep(void) const
484 return &_sfConstantTimeStep
;
488 SFBool
*FrameHandlerBase::editSFConstantTime(void)
490 editSField(ConstantTimeFieldMask
);
492 return &_sfConstantTime
;
495 const SFBool
*FrameHandlerBase::getSFConstantTime(void) const
497 return &_sfConstantTime
;
501 SFBool
*FrameHandlerBase::editSFPaused(void)
503 editSField(PausedFieldMask
);
508 const SFBool
*FrameHandlerBase::getSFPaused(void) const
518 /*------------------------------ access -----------------------------------*/
520 SizeT
FrameHandlerBase::getBinSize(ConstFieldMaskArg whichField
)
522 SizeT returnValue
= Inherited::getBinSize(whichField
);
524 if(FieldBits::NoField
!= (FrameCountFieldMask
& whichField
))
526 returnValue
+= _sfFrameCount
.getBinSize();
528 if(FieldBits::NoField
!= (StartTimeFieldMask
& whichField
))
530 returnValue
+= _sfStartTime
.getBinSize();
532 if(FieldBits::NoField
!= (LastTimeFieldMask
& whichField
))
534 returnValue
+= _sfLastTime
.getBinSize();
536 if(FieldBits::NoField
!= (CurrTimeFieldMask
& whichField
))
538 returnValue
+= _sfCurrTime
.getBinSize();
540 if(FieldBits::NoField
!= (TimeStampFieldMask
& whichField
))
542 returnValue
+= _sfTimeStamp
.getBinSize();
544 if(FieldBits::NoField
!= (TimeScaleFieldMask
& whichField
))
546 returnValue
+= _sfTimeScale
.getBinSize();
548 if(FieldBits::NoField
!= (ConstantTimeStepFieldMask
& whichField
))
550 returnValue
+= _sfConstantTimeStep
.getBinSize();
552 if(FieldBits::NoField
!= (ConstantTimeFieldMask
& whichField
))
554 returnValue
+= _sfConstantTime
.getBinSize();
556 if(FieldBits::NoField
!= (PausedFieldMask
& whichField
))
558 returnValue
+= _sfPaused
.getBinSize();
564 void FrameHandlerBase::copyToBin(BinaryDataHandler
&pMem
,
565 ConstFieldMaskArg whichField
)
567 Inherited::copyToBin(pMem
, whichField
);
569 if(FieldBits::NoField
!= (FrameCountFieldMask
& whichField
))
571 _sfFrameCount
.copyToBin(pMem
);
573 if(FieldBits::NoField
!= (StartTimeFieldMask
& whichField
))
575 _sfStartTime
.copyToBin(pMem
);
577 if(FieldBits::NoField
!= (LastTimeFieldMask
& whichField
))
579 _sfLastTime
.copyToBin(pMem
);
581 if(FieldBits::NoField
!= (CurrTimeFieldMask
& whichField
))
583 _sfCurrTime
.copyToBin(pMem
);
585 if(FieldBits::NoField
!= (TimeStampFieldMask
& whichField
))
587 _sfTimeStamp
.copyToBin(pMem
);
589 if(FieldBits::NoField
!= (TimeScaleFieldMask
& whichField
))
591 _sfTimeScale
.copyToBin(pMem
);
593 if(FieldBits::NoField
!= (ConstantTimeStepFieldMask
& whichField
))
595 _sfConstantTimeStep
.copyToBin(pMem
);
597 if(FieldBits::NoField
!= (ConstantTimeFieldMask
& whichField
))
599 _sfConstantTime
.copyToBin(pMem
);
601 if(FieldBits::NoField
!= (PausedFieldMask
& whichField
))
603 _sfPaused
.copyToBin(pMem
);
607 void FrameHandlerBase::copyFromBin(BinaryDataHandler
&pMem
,
608 ConstFieldMaskArg whichField
)
610 Inherited::copyFromBin(pMem
, whichField
);
612 if(FieldBits::NoField
!= (FrameCountFieldMask
& whichField
))
614 editSField(FrameCountFieldMask
);
615 _sfFrameCount
.copyFromBin(pMem
);
617 if(FieldBits::NoField
!= (StartTimeFieldMask
& whichField
))
619 editSField(StartTimeFieldMask
);
620 _sfStartTime
.copyFromBin(pMem
);
622 if(FieldBits::NoField
!= (LastTimeFieldMask
& whichField
))
624 editSField(LastTimeFieldMask
);
625 _sfLastTime
.copyFromBin(pMem
);
627 if(FieldBits::NoField
!= (CurrTimeFieldMask
& whichField
))
629 editSField(CurrTimeFieldMask
);
630 _sfCurrTime
.copyFromBin(pMem
);
632 if(FieldBits::NoField
!= (TimeStampFieldMask
& whichField
))
634 editSField(TimeStampFieldMask
);
635 _sfTimeStamp
.copyFromBin(pMem
);
637 if(FieldBits::NoField
!= (TimeScaleFieldMask
& whichField
))
639 editSField(TimeScaleFieldMask
);
640 _sfTimeScale
.copyFromBin(pMem
);
642 if(FieldBits::NoField
!= (ConstantTimeStepFieldMask
& whichField
))
644 editSField(ConstantTimeStepFieldMask
);
645 _sfConstantTimeStep
.copyFromBin(pMem
);
647 if(FieldBits::NoField
!= (ConstantTimeFieldMask
& whichField
))
649 editSField(ConstantTimeFieldMask
);
650 _sfConstantTime
.copyFromBin(pMem
);
652 if(FieldBits::NoField
!= (PausedFieldMask
& whichField
))
654 editSField(PausedFieldMask
);
655 _sfPaused
.copyFromBin(pMem
);
659 //! create a new instance of the class
660 FrameHandlerTransitPtr
FrameHandlerBase::createLocal(BitVector bFlags
)
662 FrameHandlerTransitPtr fc
;
664 if(getClassType().getPrototype() != NULL
)
666 FieldContainerTransitPtr tmpPtr
=
667 getClassType().getPrototype()-> shallowCopyLocal(bFlags
);
669 fc
= dynamic_pointer_cast
<FrameHandler
>(tmpPtr
);
675 //! create a new instance of the class, copy the container flags
676 FrameHandlerTransitPtr
FrameHandlerBase::createDependent(BitVector bFlags
)
678 FrameHandlerTransitPtr fc
;
680 if(getClassType().getPrototype() != NULL
)
682 FieldContainerTransitPtr tmpPtr
=
683 getClassType().getPrototype()-> shallowCopyDependent(bFlags
);
685 fc
= dynamic_pointer_cast
<FrameHandler
>(tmpPtr
);
691 //! create a new instance of the class
692 FrameHandlerTransitPtr
FrameHandlerBase::create(void)
694 return createLocal();
697 FrameHandler
*FrameHandlerBase::createEmptyLocal(BitVector bFlags
)
699 FrameHandler
*returnValue
;
701 newPtr
<FrameHandler
>(returnValue
, bFlags
);
703 returnValue
->_pFieldFlags
->_bNamespaceMask
&= ~bFlags
;
708 //! create an empty new instance of the class, do not copy the prototype
709 FrameHandler
*FrameHandlerBase::createEmpty(void)
711 return createEmptyLocal();
715 FieldContainerTransitPtr
FrameHandlerBase::shallowCopyLocal(
716 BitVector bFlags
) const
718 FrameHandler
*tmpPtr
;
720 newPtr(tmpPtr
, dynamic_cast<const FrameHandler
*>(this), bFlags
);
722 FieldContainerTransitPtr
returnValue(tmpPtr
);
724 tmpPtr
->_pFieldFlags
->_bNamespaceMask
&= ~bFlags
;
729 FieldContainerTransitPtr
FrameHandlerBase::shallowCopyDependent(
730 BitVector bFlags
) const
732 FrameHandler
*tmpPtr
;
734 newPtr(tmpPtr
, dynamic_cast<const FrameHandler
*>(this), ~bFlags
);
736 FieldContainerTransitPtr
returnValue(tmpPtr
);
738 tmpPtr
->_pFieldFlags
->_bNamespaceMask
= bFlags
;
743 FieldContainerTransitPtr
FrameHandlerBase::shallowCopy(void) const
745 return shallowCopyLocal();
751 /*------------------------- constructors ----------------------------------*/
753 FrameHandlerBase::FrameHandlerBase(void) :
755 _sfFrameCount (UInt64(0)),
756 _sfStartTime (Time(-1.0)),
757 _sfLastTime (Time(0.0)),
758 _sfCurrTime (Time(0.0)),
759 _sfTimeStamp (Time(0.0)),
760 _sfTimeScale (Time(1.0)),
761 _sfConstantTimeStep (Time(0.0)),
762 _sfConstantTime (bool(false)),
763 _sfPaused (bool(false))
767 FrameHandlerBase::FrameHandlerBase(const FrameHandlerBase
&source
) :
769 _sfFrameCount (source
._sfFrameCount
),
770 _sfStartTime (source
._sfStartTime
),
771 _sfLastTime (source
._sfLastTime
),
772 _sfCurrTime (source
._sfCurrTime
),
773 _sfTimeStamp (source
._sfTimeStamp
),
774 _sfTimeScale (source
._sfTimeScale
),
775 _sfConstantTimeStep (source
._sfConstantTimeStep
),
776 _sfConstantTime (source
._sfConstantTime
),
777 _sfPaused (source
._sfPaused
)
782 /*-------------------------- destructors ----------------------------------*/
784 FrameHandlerBase::~FrameHandlerBase(void)
789 GetFieldHandlePtr
FrameHandlerBase::getHandleFrameCount (void) const
791 SFUInt64::GetHandlePtr
returnValue(
792 new SFUInt64::GetHandle(
794 this->getType().getFieldDesc(FrameCountFieldId
),
795 const_cast<FrameHandlerBase
*>(this)));
800 EditFieldHandlePtr
FrameHandlerBase::editHandleFrameCount (void)
802 SFUInt64::EditHandlePtr
returnValue(
803 new SFUInt64::EditHandle(
805 this->getType().getFieldDesc(FrameCountFieldId
),
809 editSField(FrameCountFieldMask
);
814 GetFieldHandlePtr
FrameHandlerBase::getHandleStartTime (void) const
816 SFTime::GetHandlePtr
returnValue(
817 new SFTime::GetHandle(
819 this->getType().getFieldDesc(StartTimeFieldId
),
820 const_cast<FrameHandlerBase
*>(this)));
825 EditFieldHandlePtr
FrameHandlerBase::editHandleStartTime (void)
827 SFTime::EditHandlePtr
returnValue(
828 new SFTime::EditHandle(
830 this->getType().getFieldDesc(StartTimeFieldId
),
834 editSField(StartTimeFieldMask
);
839 GetFieldHandlePtr
FrameHandlerBase::getHandleLastTime (void) const
841 SFTime::GetHandlePtr
returnValue(
842 new SFTime::GetHandle(
844 this->getType().getFieldDesc(LastTimeFieldId
),
845 const_cast<FrameHandlerBase
*>(this)));
850 EditFieldHandlePtr
FrameHandlerBase::editHandleLastTime (void)
852 SFTime::EditHandlePtr
returnValue(
853 new SFTime::EditHandle(
855 this->getType().getFieldDesc(LastTimeFieldId
),
859 editSField(LastTimeFieldMask
);
864 GetFieldHandlePtr
FrameHandlerBase::getHandleCurrTime (void) const
866 SFTime::GetHandlePtr
returnValue(
867 new SFTime::GetHandle(
869 this->getType().getFieldDesc(CurrTimeFieldId
),
870 const_cast<FrameHandlerBase
*>(this)));
875 EditFieldHandlePtr
FrameHandlerBase::editHandleCurrTime (void)
877 SFTime::EditHandlePtr
returnValue(
878 new SFTime::EditHandle(
880 this->getType().getFieldDesc(CurrTimeFieldId
),
884 editSField(CurrTimeFieldMask
);
889 GetFieldHandlePtr
FrameHandlerBase::getHandleTimeStamp (void) const
891 SFTime::GetHandlePtr
returnValue(
892 new SFTime::GetHandle(
894 this->getType().getFieldDesc(TimeStampFieldId
),
895 const_cast<FrameHandlerBase
*>(this)));
900 EditFieldHandlePtr
FrameHandlerBase::editHandleTimeStamp (void)
902 SFTime::EditHandlePtr
returnValue(
903 new SFTime::EditHandle(
905 this->getType().getFieldDesc(TimeStampFieldId
),
909 editSField(TimeStampFieldMask
);
914 GetFieldHandlePtr
FrameHandlerBase::getHandleTimeScale (void) const
916 SFTime::GetHandlePtr
returnValue(
917 new SFTime::GetHandle(
919 this->getType().getFieldDesc(TimeScaleFieldId
),
920 const_cast<FrameHandlerBase
*>(this)));
925 EditFieldHandlePtr
FrameHandlerBase::editHandleTimeScale (void)
927 SFTime::EditHandlePtr
returnValue(
928 new SFTime::EditHandle(
930 this->getType().getFieldDesc(TimeScaleFieldId
),
934 editSField(TimeScaleFieldMask
);
939 GetFieldHandlePtr
FrameHandlerBase::getHandleConstantTimeStep (void) const
941 SFTime::GetHandlePtr
returnValue(
942 new SFTime::GetHandle(
943 &_sfConstantTimeStep
,
944 this->getType().getFieldDesc(ConstantTimeStepFieldId
),
945 const_cast<FrameHandlerBase
*>(this)));
950 EditFieldHandlePtr
FrameHandlerBase::editHandleConstantTimeStep(void)
952 SFTime::EditHandlePtr
returnValue(
953 new SFTime::EditHandle(
954 &_sfConstantTimeStep
,
955 this->getType().getFieldDesc(ConstantTimeStepFieldId
),
959 editSField(ConstantTimeStepFieldMask
);
964 GetFieldHandlePtr
FrameHandlerBase::getHandleConstantTime (void) const
966 SFBool::GetHandlePtr
returnValue(
967 new SFBool::GetHandle(
969 this->getType().getFieldDesc(ConstantTimeFieldId
),
970 const_cast<FrameHandlerBase
*>(this)));
975 EditFieldHandlePtr
FrameHandlerBase::editHandleConstantTime (void)
977 SFBool::EditHandlePtr
returnValue(
978 new SFBool::EditHandle(
980 this->getType().getFieldDesc(ConstantTimeFieldId
),
984 editSField(ConstantTimeFieldMask
);
989 GetFieldHandlePtr
FrameHandlerBase::getHandlePaused (void) const
991 SFBool::GetHandlePtr
returnValue(
992 new SFBool::GetHandle(
994 this->getType().getFieldDesc(PausedFieldId
),
995 const_cast<FrameHandlerBase
*>(this)));
1000 EditFieldHandlePtr
FrameHandlerBase::editHandlePaused (void)
1002 SFBool::EditHandlePtr
returnValue(
1003 new SFBool::EditHandle(
1005 this->getType().getFieldDesc(PausedFieldId
),
1009 editSField(PausedFieldMask
);
1015 #ifdef OSG_MT_CPTR_ASPECT
1016 void FrameHandlerBase::execSyncV( FieldContainer
&oFrom
,
1017 ConstFieldMaskArg whichField
,
1018 AspectOffsetStore
&oOffsets
,
1019 ConstFieldMaskArg syncMode
,
1020 const UInt32 uiSyncInfo
)
1022 FrameHandler
*pThis
= static_cast<FrameHandler
*>(this);
1024 pThis
->execSync(static_cast<FrameHandler
*>(&oFrom
),
1033 #ifdef OSG_MT_CPTR_ASPECT
1034 FieldContainer
*FrameHandlerBase::createAspectCopy(
1035 const FieldContainer
*pRefAspect
) const
1037 FrameHandler
*returnValue
;
1039 newAspectCopy(returnValue
,
1040 dynamic_cast<const FrameHandler
*>(pRefAspect
),
1041 dynamic_cast<const FrameHandler
*>(this));
1047 void FrameHandlerBase::resolveLinks(void)
1049 Inherited::resolveLinks();