Changeset 9878

Show
Ignore:
Timestamp:
03/10/09 00:11:23 (4 years ago)
Author:
robert
Message:

Fixed osgWrappers for osgAnimation library

Location:
OpenSceneGraph/trunk
Files:
1 added
10 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgAnimation/Timeline

    r9737 r9878  
    153153        unsigned int _loop; 
    154154 
    155         enum State 
     155        enum Status 
    156156        { 
    157157            Play, 
     
    159159        }; 
    160160         
    161         State _state; 
     161        Status _state; 
    162162    }; 
    163163 
     
    165165    class Timeline : public osg::Object 
    166166    { 
    167     protected: 
     167    public: 
     168 
     169        META_Object(osgAnimation, Timeline); 
     170 
     171        Timeline(); 
     172        Timeline(const Timeline& nc,const osg::CopyOp& op = osg::CopyOp::SHALLOW_COPY); 
     173 
     174        enum Status 
     175        { 
     176            Play, 
     177            Stop 
     178        }; 
     179 
     180        Status getStatus() const { return _state; } 
     181 
    168182        typedef std::pair<unsigned int, osg::ref_ptr<Action> > FrameAction; 
    169183        typedef std::vector<FrameAction> ActionList; 
    170184        typedef std::map<int, ActionList> ActionLayers; 
    171         enum State 
    172         { 
    173             Play, 
    174             Stop 
    175         }; 
    176          
    177  
    178         ActionLayers _actions; 
    179         double _lastUpdate; 
    180         double _speed; 
    181         unsigned int _currentFrame; 
    182         unsigned int _fps; 
    183         unsigned int _numberFrame; 
    184         unsigned int _previousFrameEvaluated; 
    185         bool _loop; 
    186         bool _initFirstFrame; 
    187  
    188         State _state; 
    189  
    190         // to manage pending operation 
    191         bool _evaluating; 
    192  
    193         struct Command 
    194         { 
    195             Command():_priority(0) {} 
    196             Command(int priority, const FrameAction& action) : _priority(priority), _action(action) {} 
    197             int _priority; 
    198             FrameAction _action; 
    199         }; 
    200  
    201         typedef std::vector<Command> CommandList; 
    202         CommandList _addActionOperations; 
    203         ActionList _removeActionOperations; 
    204  
    205         void setEvaluating(bool state) { _evaluating = state;} 
    206         void processPendingOperation() 
    207         { 
    208             // process all pending add action operation 
    209             while( !_addActionOperations.empty()) 
    210             { 
    211                 internalAddAction(_addActionOperations.back()._priority, _addActionOperations.back()._action); 
    212                 _addActionOperations.pop_back(); 
    213             } 
    214  
    215             // process all pending remove action operation 
    216             while( !_removeActionOperations.empty()) 
    217             { 
    218                 internalRemoveAction(_removeActionOperations.back().second.get()); 
    219                 _removeActionOperations.pop_back(); 
    220             } 
    221         } 
    222  
    223         void internalRemoveAction(Action* action) 
    224         { 
    225             for (ActionLayers::iterator it = _actions.begin(); it != _actions.end(); it++) 
    226             { 
    227                 ActionList& fa = it->second; 
    228                 for (unsigned int i = 0; i < fa.size(); i++) 
    229                     if (fa[i].second.get() == action) 
    230                     { 
    231                         fa.erase(fa.begin() + i); 
    232                         return; 
    233                     } 
    234             } 
    235         } 
    236         void internalAddAction(int priority, const FrameAction& ftl) 
    237         { 
    238             _actions[priority].push_back(ftl); 
    239         } 
    240          
    241     public: 
    242  
    243         META_Object(osgAnimation, Timeline); 
    244  
    245         Timeline(); 
    246         Timeline(const Timeline& nc,const osg::CopyOp& op = osg::CopyOp::SHALLOW_COPY); 
    247         State getStatus() const { return _state; } 
     185 
    248186        const ActionList& getActionLayer(int i) 
    249187        { 
     
    375313            } 
    376314        } 
     315 
     316    protected: 
     317 
     318 
     319        ActionLayers _actions; 
     320        double _lastUpdate; 
     321        double _speed; 
     322        unsigned int _currentFrame; 
     323        unsigned int _fps; 
     324        unsigned int _numberFrame; 
     325        unsigned int _previousFrameEvaluated; 
     326        bool _loop; 
     327        bool _initFirstFrame; 
     328 
     329        Status _state; 
     330 
     331        // to manage pending operation 
     332        bool _evaluating; 
     333 
     334        struct Command 
     335        { 
     336            Command():_priority(0) {} 
     337            Command(int priority, const FrameAction& action) : _priority(priority), _action(action) {} 
     338            int _priority; 
     339            FrameAction _action; 
     340        }; 
     341 
     342        typedef std::vector<Command> CommandList; 
     343        CommandList _addActionOperations; 
     344        ActionList _removeActionOperations; 
     345 
     346        void setEvaluating(bool state) { _evaluating = state;} 
     347        void processPendingOperation() 
     348        { 
     349            // process all pending add action operation 
     350            while( !_addActionOperations.empty()) 
     351            { 
     352                internalAddAction(_addActionOperations.back()._priority, _addActionOperations.back()._action); 
     353                _addActionOperations.pop_back(); 
     354            } 
     355 
     356            // process all pending remove action operation 
     357            while( !_removeActionOperations.empty()) 
     358            { 
     359                internalRemoveAction(_removeActionOperations.back().second.get()); 
     360                _removeActionOperations.pop_back(); 
     361            } 
     362        } 
     363 
     364        void internalRemoveAction(Action* action) 
     365        { 
     366            for (ActionLayers::iterator it = _actions.begin(); it != _actions.end(); it++) 
     367            { 
     368                ActionList& fa = it->second; 
     369                for (unsigned int i = 0; i < fa.size(); i++) 
     370                    if (fa[i].second.get() == action) 
     371                    { 
     372                        fa.erase(fa.begin() + i); 
     373                        return; 
     374                    } 
     375            } 
     376        } 
     377        void internalAddAction(int priority, const FrameAction& ftl) 
     378        { 
     379            _actions[priority].push_back(ftl); 
     380        } 
     381         
    377382    }; 
    378383 
  • OpenSceneGraph/trunk/src/osgWrappers/CMakeLists.txt

    r9350 r9878  
    131131    osgGA 
    132132    osgManipulator 
     133    osgAnimation 
    133134    osgParticle 
    134135    osgShadow 
  • OpenSceneGraph/trunk/src/osgWrappers/genwrapper.conf

    r9774 r9878  
    186186suppress reflector "osg::BoundingSphereImpl< osg::Vec3d >" 
    187187 
     188suppress reflector "osgAnimation::TemplateTarget< osg::Quat >" 
     189suppress reflector "osgAnimation::TemplateTarget< osg::Vec3 >" 
     190suppress reflector "osgAnimation::TemplateTarget< osg::Vec4 >" 
     191suppress reflector "osgAnimation::TemplateTarget< osg::Vec2 >" 
     192suppress reflector "osgAnimation::TemplateTarget< float >" 
     193suppress reflector "osgAnimation::TemplateTarget< double >" 
     194 
     195suppress reflector "osgAnimation::TemplateLinearInterpolator< double, double >" 
     196suppress reflector "osgAnimation::TemplateLinearInterpolator< float, float >" 
     197suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec2, osg::Vec2 >" 
     198suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec3, osg::Vec3 >" 
     199suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec3, osgAnimation::Vec3Packed >" 
     200suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec4, osg::Vec4 >" 
     201suppress reflector "osgAnimation::TemplateSphericalLinearInterpolator< osg::Quat, osg::Quat >" 
     202 
     203suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< float, osgAnimation::FloatCubicBezier >" 
     204suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< double, osgAnimation::DoubleCubicBezier >" 
     205suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec2, osgAnimation::Vec2CubicBezier >" 
     206suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec3, osgAnimation::Vec3CubicBezier >" 
     207suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec4, osgAnimation::Vec4CubicBezier >" 
     208 
     209suppress reflector "osgAnimation::TemplateKeyframe< float >" 
     210suppress reflector "osgAnimation::TemplateKeyframeContainer< float >" 
     211     
     212suppress reflector "osgAnimation::TemplateKeyframe< double >" 
     213suppress reflector "osgAnimation::TemplateKeyframeContainer< double >" 
     214 
     215suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec2 >" 
     216suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec2 >" 
     217 
     218suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec3 >" 
     219suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec3 >" 
     220 
     221suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec4 >" 
     222suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec4 >" 
     223 
     224suppress reflector "osgAnimation::TemplateKeyframe< osg::Quat >" 
     225suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Quat >" 
     226 
     227suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec3Packed >" 
     228suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3Packed >" 
     229 
     230suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::FloatCubicBezier >" 
     231suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::FloatCubicBezier >" 
     232     
     233suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::DoubleCubicBezier >" 
     234suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::DoubleCubicBezier >" 
     235     
     236suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec2CubicBezier >" 
     237suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec2CubicBezier >" 
     238     
     239suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec3CubicBezier >" 
     240suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3CubicBezier >" 
     241     
     242suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec4CubicBezier >" 
     243suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec4CubicBezier >" 
     244 
     245suppress reflector "osgAnimation::TemplateCubicBezier< float >" 
     246suppress reflector "osgAnimation::TemplateCubicBezier< double >" 
     247suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec2 >" 
     248suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec3 >" 
     249suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec4 >" 
     250 
     251 
     252suppress reflector "osgAnimation::std::vector< osg::ref_ptr< osgAnimation::Channel >  >" 
     253suppress reflector "osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >" 
     254suppress reflector "osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >" 
     255 
     256suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >" 
     257suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >" 
     258suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >" 
     259suppress reflector "osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >" 
     260 
     261suppress reflector "osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >" 
     262suppress reflector "osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >" 
     263suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >" 
     264suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >" 
     265suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >" 
     266 
    188267############################################################################# 
    189268 
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Animation.cpp

    r9775 r9878  
    120120                  Properties::NON_VIRTUAL, 
    121121                  __void__setPlaymode__PlayMode, 
     122                  "", 
     123                  ""); 
     124        I_Method0(osgAnimation::Animation::PlayMode, getPlayMode, 
     125                  Properties::NON_VIRTUAL, 
     126                  __PlayMode__getPlayMode, 
    122127                  "", 
    123128                  ""); 
     
    144149                         0,  
    145150                         __void__setDuration__double); 
     151        I_SimpleProperty(osgAnimation::Animation::PlayMode, PlayMode,  
     152                         __PlayMode__getPlayMode,  
     153                         0); 
    146154        I_SimpleProperty(osgAnimation::Animation::PlayMode, Playmode,  
    147155                         0,  
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Channel.cpp

    r9775 r9878  
    181181END_REFLECTOR 
    182182 
    183 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >) 
    184         I_DeclaringFile("osgAnimation/Channel"); 
    185         I_BaseType(osgAnimation::Channel); 
    186         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >::TargetType *, target, 0, 
    187                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    188                                    "", 
    189                                    ""); 
    190         I_Method1(void, update, IN, float, time, 
    191                   Properties::VIRTUAL, 
    192                   __void__update__float, 
    193                   "", 
    194                   ""); 
    195         I_Method0(void, reset, 
    196                   Properties::VIRTUAL, 
    197                   __void__reset, 
    198                   "", 
    199                   ""); 
    200         I_Method0(osgAnimation::Target *, getTarget, 
    201                   Properties::VIRTUAL, 
    202                   __Target_P1__getTarget, 
    203                   "", 
    204                   ""); 
    205         I_Method0(SamplerType *, getOrCreateSampler, 
    206                   Properties::NON_VIRTUAL, 
    207                   __SamplerType_P1__getOrCreateSampler, 
    208                   "", 
    209                   ""); 
    210         I_Method0(osgAnimation::Sampler *, getSampler, 
    211                   Properties::VIRTUAL, 
    212                   __Sampler_P1__getSampler, 
    213                   "", 
    214                   ""); 
    215         I_Method0(const osgAnimation::Sampler *, getSampler, 
    216                   Properties::VIRTUAL, 
    217                   __C5_Sampler_P1__getSampler, 
    218                   "", 
    219                   ""); 
    220         I_Method0(SamplerType *, getSamplerTyped, 
    221                   Properties::NON_VIRTUAL, 
    222                   __SamplerType_P1__getSamplerTyped, 
    223                   "", 
    224                   ""); 
    225         I_Method0(const SamplerType *, getSamplerTyped, 
    226                   Properties::NON_VIRTUAL, 
    227                   __C5_SamplerType_P1__getSamplerTyped, 
    228                   "", 
    229                   ""); 
    230         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    231                   Properties::NON_VIRTUAL, 
    232                   __void__setSampler__SamplerType_P1, 
    233                   "", 
    234                   ""); 
    235         I_Method0(osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >::TargetType *, getTargetTyped, 
    236                   Properties::NON_VIRTUAL, 
    237                   __TargetType_P1__getTargetTyped, 
    238                   "", 
    239                   ""); 
    240         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >::TargetType *, target, 
    241                   Properties::NON_VIRTUAL, 
    242                   __void__setTarget__TargetType_P1, 
    243                   "", 
    244                   ""); 
    245         I_Method0(float, getStartTime, 
    246                   Properties::VIRTUAL, 
    247                   __float__getStartTime, 
    248                   "", 
    249                   ""); 
    250         I_Method0(float, getEndTime, 
    251                   Properties::VIRTUAL, 
    252                   __float__getEndTime, 
    253                   "", 
    254                   ""); 
    255         I_SimpleProperty(float, EndTime,  
    256                          __float__getEndTime,  
    257                          0); 
    258         I_SimpleProperty(SamplerType *, Sampler,  
    259                          0,  
    260                          __void__setSampler__SamplerType_P1); 
    261         I_SimpleProperty(SamplerType *, SamplerTyped,  
    262                          __SamplerType_P1__getSamplerTyped,  
    263                          0); 
    264         I_SimpleProperty(float, StartTime,  
    265                          __float__getStartTime,  
    266                          0); 
    267         I_SimpleProperty(osgAnimation::Target *, Target,  
    268                          __Target_P1__getTarget,  
    269                          0); 
    270         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >::TargetType *, TargetTyped,  
    271                          __TargetType_P1__getTargetTyped,  
    272                          0); 
    273 END_REFLECTOR 
    274  
    275 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >) 
    276         I_DeclaringFile("osgAnimation/Channel"); 
    277         I_BaseType(osgAnimation::Channel); 
    278         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >::TargetType *, target, 0, 
    279                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    280                                    "", 
    281                                    ""); 
    282         I_Method1(void, update, IN, float, time, 
    283                   Properties::VIRTUAL, 
    284                   __void__update__float, 
    285                   "", 
    286                   ""); 
    287         I_Method0(void, reset, 
    288                   Properties::VIRTUAL, 
    289                   __void__reset, 
    290                   "", 
    291                   ""); 
    292         I_Method0(osgAnimation::Target *, getTarget, 
    293                   Properties::VIRTUAL, 
    294                   __Target_P1__getTarget, 
    295                   "", 
    296                   ""); 
    297         I_Method0(SamplerType *, getOrCreateSampler, 
    298                   Properties::NON_VIRTUAL, 
    299                   __SamplerType_P1__getOrCreateSampler, 
    300                   "", 
    301                   ""); 
    302         I_Method0(osgAnimation::Sampler *, getSampler, 
    303                   Properties::VIRTUAL, 
    304                   __Sampler_P1__getSampler, 
    305                   "", 
    306                   ""); 
    307         I_Method0(const osgAnimation::Sampler *, getSampler, 
    308                   Properties::VIRTUAL, 
    309                   __C5_Sampler_P1__getSampler, 
    310                   "", 
    311                   ""); 
    312         I_Method0(SamplerType *, getSamplerTyped, 
    313                   Properties::NON_VIRTUAL, 
    314                   __SamplerType_P1__getSamplerTyped, 
    315                   "", 
    316                   ""); 
    317         I_Method0(const SamplerType *, getSamplerTyped, 
    318                   Properties::NON_VIRTUAL, 
    319                   __C5_SamplerType_P1__getSamplerTyped, 
    320                   "", 
    321                   ""); 
    322         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    323                   Properties::NON_VIRTUAL, 
    324                   __void__setSampler__SamplerType_P1, 
    325                   "", 
    326                   ""); 
    327         I_Method0(osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >::TargetType *, getTargetTyped, 
    328                   Properties::NON_VIRTUAL, 
    329                   __TargetType_P1__getTargetTyped, 
    330                   "", 
    331                   ""); 
    332         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >::TargetType *, target, 
    333                   Properties::NON_VIRTUAL, 
    334                   __void__setTarget__TargetType_P1, 
    335                   "", 
    336                   ""); 
    337         I_Method0(float, getStartTime, 
    338                   Properties::VIRTUAL, 
    339                   __float__getStartTime, 
    340                   "", 
    341                   ""); 
    342         I_Method0(float, getEndTime, 
    343                   Properties::VIRTUAL, 
    344                   __float__getEndTime, 
    345                   "", 
    346                   ""); 
    347         I_SimpleProperty(float, EndTime,  
    348                          __float__getEndTime,  
    349                          0); 
    350         I_SimpleProperty(SamplerType *, Sampler,  
    351                          0,  
    352                          __void__setSampler__SamplerType_P1); 
    353         I_SimpleProperty(SamplerType *, SamplerTyped,  
    354                          __SamplerType_P1__getSamplerTyped,  
    355                          0); 
    356         I_SimpleProperty(float, StartTime,  
    357                          __float__getStartTime,  
    358                          0); 
    359         I_SimpleProperty(osgAnimation::Target *, Target,  
    360                          __Target_P1__getTarget,  
    361                          0); 
    362         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >::TargetType *, TargetTyped,  
    363                          __TargetType_P1__getTargetTyped,  
    364                          0); 
    365 END_REFLECTOR 
    366  
    367 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >) 
    368         I_DeclaringFile("osgAnimation/Channel"); 
    369         I_BaseType(osgAnimation::Channel); 
    370         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >::TargetType *, target, 0, 
    371                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    372                                    "", 
    373                                    ""); 
    374         I_Method1(void, update, IN, float, time, 
    375                   Properties::VIRTUAL, 
    376                   __void__update__float, 
    377                   "", 
    378                   ""); 
    379         I_Method0(void, reset, 
    380                   Properties::VIRTUAL, 
    381                   __void__reset, 
    382                   "", 
    383                   ""); 
    384         I_Method0(osgAnimation::Target *, getTarget, 
    385                   Properties::VIRTUAL, 
    386                   __Target_P1__getTarget, 
    387                   "", 
    388                   ""); 
    389         I_Method0(SamplerType *, getOrCreateSampler, 
    390                   Properties::NON_VIRTUAL, 
    391                   __SamplerType_P1__getOrCreateSampler, 
    392                   "", 
    393                   ""); 
    394         I_Method0(osgAnimation::Sampler *, getSampler, 
    395                   Properties::VIRTUAL, 
    396                   __Sampler_P1__getSampler, 
    397                   "", 
    398                   ""); 
    399         I_Method0(const osgAnimation::Sampler *, getSampler, 
    400                   Properties::VIRTUAL, 
    401                   __C5_Sampler_P1__getSampler, 
    402                   "", 
    403                   ""); 
    404         I_Method0(SamplerType *, getSamplerTyped, 
    405                   Properties::NON_VIRTUAL, 
    406                   __SamplerType_P1__getSamplerTyped, 
    407                   "", 
    408                   ""); 
    409         I_Method0(const SamplerType *, getSamplerTyped, 
    410                   Properties::NON_VIRTUAL, 
    411                   __C5_SamplerType_P1__getSamplerTyped, 
    412                   "", 
    413                   ""); 
    414         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    415                   Properties::NON_VIRTUAL, 
    416                   __void__setSampler__SamplerType_P1, 
    417                   "", 
    418                   ""); 
    419         I_Method0(osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >::TargetType *, getTargetTyped, 
    420                   Properties::NON_VIRTUAL, 
    421                   __TargetType_P1__getTargetTyped, 
    422                   "", 
    423                   ""); 
    424         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >::TargetType *, target, 
    425                   Properties::NON_VIRTUAL, 
    426                   __void__setTarget__TargetType_P1, 
    427                   "", 
    428                   ""); 
    429         I_Method0(float, getStartTime, 
    430                   Properties::VIRTUAL, 
    431                   __float__getStartTime, 
    432                   "", 
    433                   ""); 
    434         I_Method0(float, getEndTime, 
    435                   Properties::VIRTUAL, 
    436                   __float__getEndTime, 
    437                   "", 
    438                   ""); 
    439         I_SimpleProperty(float, EndTime,  
    440                          __float__getEndTime,  
    441                          0); 
    442         I_SimpleProperty(SamplerType *, Sampler,  
    443                          0,  
    444                          __void__setSampler__SamplerType_P1); 
    445         I_SimpleProperty(SamplerType *, SamplerTyped,  
    446                          __SamplerType_P1__getSamplerTyped,  
    447                          0); 
    448         I_SimpleProperty(float, StartTime,  
    449                          __float__getStartTime,  
    450                          0); 
    451         I_SimpleProperty(osgAnimation::Target *, Target,  
    452                          __Target_P1__getTarget,  
    453                          0); 
    454         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >::TargetType *, TargetTyped,  
    455                          __TargetType_P1__getTargetTyped,  
    456                          0); 
    457 END_REFLECTOR 
    458  
    459 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >) 
    460         I_DeclaringFile("osgAnimation/Channel"); 
    461         I_BaseType(osgAnimation::Channel); 
    462         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >::TargetType *, target, 0, 
    463                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    464                                    "", 
    465                                    ""); 
    466         I_Method1(void, update, IN, float, time, 
    467                   Properties::VIRTUAL, 
    468                   __void__update__float, 
    469                   "", 
    470                   ""); 
    471         I_Method0(void, reset, 
    472                   Properties::VIRTUAL, 
    473                   __void__reset, 
    474                   "", 
    475                   ""); 
    476         I_Method0(osgAnimation::Target *, getTarget, 
    477                   Properties::VIRTUAL, 
    478                   __Target_P1__getTarget, 
    479                   "", 
    480                   ""); 
    481         I_Method0(SamplerType *, getOrCreateSampler, 
    482                   Properties::NON_VIRTUAL, 
    483                   __SamplerType_P1__getOrCreateSampler, 
    484                   "", 
    485                   ""); 
    486         I_Method0(osgAnimation::Sampler *, getSampler, 
    487                   Properties::VIRTUAL, 
    488                   __Sampler_P1__getSampler, 
    489                   "", 
    490                   ""); 
    491         I_Method0(const osgAnimation::Sampler *, getSampler, 
    492                   Properties::VIRTUAL, 
    493                   __C5_Sampler_P1__getSampler, 
    494                   "", 
    495                   ""); 
    496         I_Method0(SamplerType *, getSamplerTyped, 
    497                   Properties::NON_VIRTUAL, 
    498                   __SamplerType_P1__getSamplerTyped, 
    499                   "", 
    500                   ""); 
    501         I_Method0(const SamplerType *, getSamplerTyped, 
    502                   Properties::NON_VIRTUAL, 
    503                   __C5_SamplerType_P1__getSamplerTyped, 
    504                   "", 
    505                   ""); 
    506         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    507                   Properties::NON_VIRTUAL, 
    508                   __void__setSampler__SamplerType_P1, 
    509                   "", 
    510                   ""); 
    511         I_Method0(osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >::TargetType *, getTargetTyped, 
    512                   Properties::NON_VIRTUAL, 
    513                   __TargetType_P1__getTargetTyped, 
    514                   "", 
    515                   ""); 
    516         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >::TargetType *, target, 
    517                   Properties::NON_VIRTUAL, 
    518                   __void__setTarget__TargetType_P1, 
    519                   "", 
    520                   ""); 
    521         I_Method0(float, getStartTime, 
    522                   Properties::VIRTUAL, 
    523                   __float__getStartTime, 
    524                   "", 
    525                   ""); 
    526         I_Method0(float, getEndTime, 
    527                   Properties::VIRTUAL, 
    528                   __float__getEndTime, 
    529                   "", 
    530                   ""); 
    531         I_SimpleProperty(float, EndTime,  
    532                          __float__getEndTime,  
    533                          0); 
    534         I_SimpleProperty(SamplerType *, Sampler,  
    535                          0,  
    536                          __void__setSampler__SamplerType_P1); 
    537         I_SimpleProperty(SamplerType *, SamplerTyped,  
    538                          __SamplerType_P1__getSamplerTyped,  
    539                          0); 
    540         I_SimpleProperty(float, StartTime,  
    541                          __float__getStartTime,  
    542                          0); 
    543         I_SimpleProperty(osgAnimation::Target *, Target,  
    544                          __Target_P1__getTarget,  
    545                          0); 
    546         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >::TargetType *, TargetTyped,  
    547                          __TargetType_P1__getTargetTyped,  
    548                          0); 
    549 END_REFLECTOR 
    550  
    551 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >) 
    552         I_DeclaringFile("osgAnimation/Channel"); 
    553         I_BaseType(osgAnimation::Channel); 
    554         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >::TargetType *, target, 0, 
    555                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    556                                    "", 
    557                                    ""); 
    558         I_Method1(void, update, IN, float, time, 
    559                   Properties::VIRTUAL, 
    560                   __void__update__float, 
    561                   "", 
    562                   ""); 
    563         I_Method0(void, reset, 
    564                   Properties::VIRTUAL, 
    565                   __void__reset, 
    566                   "", 
    567                   ""); 
    568         I_Method0(osgAnimation::Target *, getTarget, 
    569                   Properties::VIRTUAL, 
    570                   __Target_P1__getTarget, 
    571                   "", 
    572                   ""); 
    573         I_Method0(SamplerType *, getOrCreateSampler, 
    574                   Properties::NON_VIRTUAL, 
    575                   __SamplerType_P1__getOrCreateSampler, 
    576                   "", 
    577                   ""); 
    578         I_Method0(osgAnimation::Sampler *, getSampler, 
    579                   Properties::VIRTUAL, 
    580                   __Sampler_P1__getSampler, 
    581                   "", 
    582                   ""); 
    583         I_Method0(const osgAnimation::Sampler *, getSampler, 
    584                   Properties::VIRTUAL, 
    585                   __C5_Sampler_P1__getSampler, 
    586                   "", 
    587                   ""); 
    588         I_Method0(SamplerType *, getSamplerTyped, 
    589                   Properties::NON_VIRTUAL, 
    590                   __SamplerType_P1__getSamplerTyped, 
    591                   "", 
    592                   ""); 
    593         I_Method0(const SamplerType *, getSamplerTyped, 
    594                   Properties::NON_VIRTUAL, 
    595                   __C5_SamplerType_P1__getSamplerTyped, 
    596                   "", 
    597                   ""); 
    598         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    599                   Properties::NON_VIRTUAL, 
    600                   __void__setSampler__SamplerType_P1, 
    601                   "", 
    602                   ""); 
    603         I_Method0(osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >::TargetType *, getTargetTyped, 
    604                   Properties::NON_VIRTUAL, 
    605                   __TargetType_P1__getTargetTyped, 
    606                   "", 
    607                   ""); 
    608         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >::TargetType *, target, 
    609                   Properties::NON_VIRTUAL, 
    610                   __void__setTarget__TargetType_P1, 
    611                   "", 
    612                   ""); 
    613         I_Method0(float, getStartTime, 
    614                   Properties::VIRTUAL, 
    615                   __float__getStartTime, 
    616                   "", 
    617                   ""); 
    618         I_Method0(float, getEndTime, 
    619                   Properties::VIRTUAL, 
    620                   __float__getEndTime, 
    621                   "", 
    622                   ""); 
    623         I_SimpleProperty(float, EndTime,  
    624                          __float__getEndTime,  
    625                          0); 
    626         I_SimpleProperty(SamplerType *, Sampler,  
    627                          0,  
    628                          __void__setSampler__SamplerType_P1); 
    629         I_SimpleProperty(SamplerType *, SamplerTyped,  
    630                          __SamplerType_P1__getSamplerTyped,  
    631                          0); 
    632         I_SimpleProperty(float, StartTime,  
    633                          __float__getStartTime,  
    634                          0); 
    635         I_SimpleProperty(osgAnimation::Target *, Target,  
    636                          __Target_P1__getTarget,  
    637                          0); 
    638         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >::TargetType *, TargetTyped,  
    639                          __TargetType_P1__getTargetTyped,  
    640                          0); 
    641 END_REFLECTOR 
    642  
    643 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >) 
    644         I_DeclaringFile("osgAnimation/Channel"); 
    645         I_BaseType(osgAnimation::Channel); 
    646         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >::TargetType *, target, 0, 
    647                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    648                                    "", 
    649                                    ""); 
    650         I_Method1(void, update, IN, float, time, 
    651                   Properties::VIRTUAL, 
    652                   __void__update__float, 
    653                   "", 
    654                   ""); 
    655         I_Method0(void, reset, 
    656                   Properties::VIRTUAL, 
    657                   __void__reset, 
    658                   "", 
    659                   ""); 
    660         I_Method0(osgAnimation::Target *, getTarget, 
    661                   Properties::VIRTUAL, 
    662                   __Target_P1__getTarget, 
    663                   "", 
    664                   ""); 
    665         I_Method0(SamplerType *, getOrCreateSampler, 
    666                   Properties::NON_VIRTUAL, 
    667                   __SamplerType_P1__getOrCreateSampler, 
    668                   "", 
    669                   ""); 
    670         I_Method0(osgAnimation::Sampler *, getSampler, 
    671                   Properties::VIRTUAL, 
    672                   __Sampler_P1__getSampler, 
    673                   "", 
    674                   ""); 
    675         I_Method0(const osgAnimation::Sampler *, getSampler, 
    676                   Properties::VIRTUAL, 
    677                   __C5_Sampler_P1__getSampler, 
    678                   "", 
    679                   ""); 
    680         I_Method0(SamplerType *, getSamplerTyped, 
    681                   Properties::NON_VIRTUAL, 
    682                   __SamplerType_P1__getSamplerTyped, 
    683                   "", 
    684                   ""); 
    685         I_Method0(const SamplerType *, getSamplerTyped, 
    686                   Properties::NON_VIRTUAL, 
    687                   __C5_SamplerType_P1__getSamplerTyped, 
    688                   "", 
    689                   ""); 
    690         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    691                   Properties::NON_VIRTUAL, 
    692                   __void__setSampler__SamplerType_P1, 
    693                   "", 
    694                   ""); 
    695         I_Method0(osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >::TargetType *, getTargetTyped, 
    696                   Properties::NON_VIRTUAL, 
    697                   __TargetType_P1__getTargetTyped, 
    698                   "", 
    699                   ""); 
    700         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >::TargetType *, target, 
    701                   Properties::NON_VIRTUAL, 
    702                   __void__setTarget__TargetType_P1, 
    703                   "", 
    704                   ""); 
    705         I_Method0(float, getStartTime, 
    706                   Properties::VIRTUAL, 
    707                   __float__getStartTime, 
    708                   "", 
    709                   ""); 
    710         I_Method0(float, getEndTime, 
    711                   Properties::VIRTUAL, 
    712                   __float__getEndTime, 
    713                   "", 
    714                   ""); 
    715         I_SimpleProperty(float, EndTime,  
    716                          __float__getEndTime,  
    717                          0); 
    718         I_SimpleProperty(SamplerType *, Sampler,  
    719                          0,  
    720                          __void__setSampler__SamplerType_P1); 
    721         I_SimpleProperty(SamplerType *, SamplerTyped,  
    722                          __SamplerType_P1__getSamplerTyped,  
    723                          0); 
    724         I_SimpleProperty(float, StartTime,  
    725                          __float__getStartTime,  
    726                          0); 
    727         I_SimpleProperty(osgAnimation::Target *, Target,  
    728                          __Target_P1__getTarget,  
    729                          0); 
    730         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >::TargetType *, TargetTyped,  
    731                          __TargetType_P1__getTargetTyped,  
    732                          0); 
    733 END_REFLECTOR 
    734  
    735 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >) 
    736         I_DeclaringFile("osgAnimation/Channel"); 
    737         I_BaseType(osgAnimation::Channel); 
    738         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >::TargetType *, target, 0, 
    739                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    740                                    "", 
    741                                    ""); 
    742         I_Method1(void, update, IN, float, time, 
    743                   Properties::VIRTUAL, 
    744                   __void__update__float, 
    745                   "", 
    746                   ""); 
    747         I_Method0(void, reset, 
    748                   Properties::VIRTUAL, 
    749                   __void__reset, 
    750                   "", 
    751                   ""); 
    752         I_Method0(osgAnimation::Target *, getTarget, 
    753                   Properties::VIRTUAL, 
    754                   __Target_P1__getTarget, 
    755                   "", 
    756                   ""); 
    757         I_Method0(SamplerType *, getOrCreateSampler, 
    758                   Properties::NON_VIRTUAL, 
    759                   __SamplerType_P1__getOrCreateSampler, 
    760                   "", 
    761                   ""); 
    762         I_Method0(osgAnimation::Sampler *, getSampler, 
    763                   Properties::VIRTUAL, 
    764                   __Sampler_P1__getSampler, 
    765                   "", 
    766                   ""); 
    767         I_Method0(const osgAnimation::Sampler *, getSampler, 
    768                   Properties::VIRTUAL, 
    769                   __C5_Sampler_P1__getSampler, 
    770                   "", 
    771                   ""); 
    772         I_Method0(SamplerType *, getSamplerTyped, 
    773                   Properties::NON_VIRTUAL, 
    774                   __SamplerType_P1__getSamplerTyped, 
    775                   "", 
    776                   ""); 
    777         I_Method0(const SamplerType *, getSamplerTyped, 
    778                   Properties::NON_VIRTUAL, 
    779                   __C5_SamplerType_P1__getSamplerTyped, 
    780                   "", 
    781                   ""); 
    782         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    783                   Properties::NON_VIRTUAL, 
    784                   __void__setSampler__SamplerType_P1, 
    785                   "", 
    786                   ""); 
    787         I_Method0(osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >::TargetType *, getTargetTyped, 
    788                   Properties::NON_VIRTUAL, 
    789                   __TargetType_P1__getTargetTyped, 
    790                   "", 
    791                   ""); 
    792         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >::TargetType *, target, 
    793                   Properties::NON_VIRTUAL, 
    794                   __void__setTarget__TargetType_P1, 
    795                   "", 
    796                   ""); 
    797         I_Method0(float, getStartTime, 
    798                   Properties::VIRTUAL, 
    799                   __float__getStartTime, 
    800                   "", 
    801                   ""); 
    802         I_Method0(float, getEndTime, 
    803                   Properties::VIRTUAL, 
    804                   __float__getEndTime, 
    805                   "", 
    806                   ""); 
    807         I_SimpleProperty(float, EndTime,  
    808                          __float__getEndTime,  
    809                          0); 
    810         I_SimpleProperty(SamplerType *, Sampler,  
    811                          0,  
    812                          __void__setSampler__SamplerType_P1); 
    813         I_SimpleProperty(SamplerType *, SamplerTyped,  
    814                          __SamplerType_P1__getSamplerTyped,  
    815                          0); 
    816         I_SimpleProperty(float, StartTime,  
    817                          __float__getStartTime,  
    818                          0); 
    819         I_SimpleProperty(osgAnimation::Target *, Target,  
    820                          __Target_P1__getTarget,  
    821                          0); 
    822         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >::TargetType *, TargetTyped,  
    823                          __TargetType_P1__getTargetTyped,  
    824                          0); 
    825 END_REFLECTOR 
    826  
    827 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >) 
    828         I_DeclaringFile("osgAnimation/Channel"); 
    829         I_BaseType(osgAnimation::Channel); 
    830         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >::TargetType *, target, 0, 
    831                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    832                                    "", 
    833                                    ""); 
    834         I_Method1(void, update, IN, float, time, 
    835                   Properties::VIRTUAL, 
    836                   __void__update__float, 
    837                   "", 
    838                   ""); 
    839         I_Method0(void, reset, 
    840                   Properties::VIRTUAL, 
    841                   __void__reset, 
    842                   "", 
    843                   ""); 
    844         I_Method0(osgAnimation::Target *, getTarget, 
    845                   Properties::VIRTUAL, 
    846                   __Target_P1__getTarget, 
    847                   "", 
    848                   ""); 
    849         I_Method0(SamplerType *, getOrCreateSampler, 
    850                   Properties::NON_VIRTUAL, 
    851                   __SamplerType_P1__getOrCreateSampler, 
    852                   "", 
    853                   ""); 
    854         I_Method0(osgAnimation::Sampler *, getSampler, 
    855                   Properties::VIRTUAL, 
    856                   __Sampler_P1__getSampler, 
    857                   "", 
    858                   ""); 
    859         I_Method0(const osgAnimation::Sampler *, getSampler, 
    860                   Properties::VIRTUAL, 
    861                   __C5_Sampler_P1__getSampler, 
    862                   "", 
    863                   ""); 
    864         I_Method0(SamplerType *, getSamplerTyped, 
    865                   Properties::NON_VIRTUAL, 
    866                   __SamplerType_P1__getSamplerTyped, 
    867                   "", 
    868                   ""); 
    869         I_Method0(const SamplerType *, getSamplerTyped, 
    870                   Properties::NON_VIRTUAL, 
    871                   __C5_SamplerType_P1__getSamplerTyped, 
    872                   "", 
    873                   ""); 
    874         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    875                   Properties::NON_VIRTUAL, 
    876                   __void__setSampler__SamplerType_P1, 
    877                   "", 
    878                   ""); 
    879         I_Method0(osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >::TargetType *, getTargetTyped, 
    880                   Properties::NON_VIRTUAL, 
    881                   __TargetType_P1__getTargetTyped, 
    882                   "", 
    883                   ""); 
    884         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >::TargetType *, target, 
    885                   Properties::NON_VIRTUAL, 
    886                   __void__setTarget__TargetType_P1, 
    887                   "", 
    888                   ""); 
    889         I_Method0(float, getStartTime, 
    890                   Properties::VIRTUAL, 
    891                   __float__getStartTime, 
    892                   "", 
    893                   ""); 
    894         I_Method0(float, getEndTime, 
    895                   Properties::VIRTUAL, 
    896                   __float__getEndTime, 
    897                   "", 
    898                   ""); 
    899         I_SimpleProperty(float, EndTime,  
    900                          __float__getEndTime,  
    901                          0); 
    902         I_SimpleProperty(SamplerType *, Sampler,  
    903                          0,  
    904                          __void__setSampler__SamplerType_P1); 
    905         I_SimpleProperty(SamplerType *, SamplerTyped,  
    906                          __SamplerType_P1__getSamplerTyped,  
    907                          0); 
    908         I_SimpleProperty(float, StartTime,  
    909                          __float__getStartTime,  
    910                          0); 
    911         I_SimpleProperty(osgAnimation::Target *, Target,  
    912                          __Target_P1__getTarget,  
    913                          0); 
    914         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >::TargetType *, TargetTyped,  
    915                          __TargetType_P1__getTargetTyped,  
    916                          0); 
    917 END_REFLECTOR 
    918  
    919 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >) 
    920         I_DeclaringFile("osgAnimation/Channel"); 
    921         I_BaseType(osgAnimation::Channel); 
    922         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >::TargetType *, target, 0, 
    923                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    924                                    "", 
    925                                    ""); 
    926         I_Method1(void, update, IN, float, time, 
    927                   Properties::VIRTUAL, 
    928                   __void__update__float, 
    929                   "", 
    930                   ""); 
    931         I_Method0(void, reset, 
    932                   Properties::VIRTUAL, 
    933                   __void__reset, 
    934                   "", 
    935                   ""); 
    936         I_Method0(osgAnimation::Target *, getTarget, 
    937                   Properties::VIRTUAL, 
    938                   __Target_P1__getTarget, 
    939                   "", 
    940                   ""); 
    941         I_Method0(SamplerType *, getOrCreateSampler, 
    942                   Properties::NON_VIRTUAL, 
    943                   __SamplerType_P1__getOrCreateSampler, 
    944                   "", 
    945                   ""); 
    946         I_Method0(osgAnimation::Sampler *, getSampler, 
    947                   Properties::VIRTUAL, 
    948                   __Sampler_P1__getSampler, 
    949                   "", 
    950                   ""); 
    951         I_Method0(const osgAnimation::Sampler *, getSampler, 
    952                   Properties::VIRTUAL, 
    953                   __C5_Sampler_P1__getSampler, 
    954                   "", 
    955                   ""); 
    956         I_Method0(SamplerType *, getSamplerTyped, 
    957                   Properties::NON_VIRTUAL, 
    958                   __SamplerType_P1__getSamplerTyped, 
    959                   "", 
    960                   ""); 
    961         I_Method0(const SamplerType *, getSamplerTyped, 
    962                   Properties::NON_VIRTUAL, 
    963                   __C5_SamplerType_P1__getSamplerTyped, 
    964                   "", 
    965                   ""); 
    966         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    967                   Properties::NON_VIRTUAL, 
    968                   __void__setSampler__SamplerType_P1, 
    969                   "", 
    970                   ""); 
    971         I_Method0(osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >::TargetType *, getTargetTyped, 
    972                   Properties::NON_VIRTUAL, 
    973                   __TargetType_P1__getTargetTyped, 
    974                   "", 
    975                   ""); 
    976         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >::TargetType *, target, 
    977                   Properties::NON_VIRTUAL, 
    978                   __void__setTarget__TargetType_P1, 
    979                   "", 
    980                   ""); 
    981         I_Method0(float, getStartTime, 
    982                   Properties::VIRTUAL, 
    983                   __float__getStartTime, 
    984                   "", 
    985                   ""); 
    986         I_Method0(float, getEndTime, 
    987                   Properties::VIRTUAL, 
    988                   __float__getEndTime, 
    989                   "", 
    990                   ""); 
    991         I_SimpleProperty(float, EndTime,  
    992                          __float__getEndTime,  
    993                          0); 
    994         I_SimpleProperty(SamplerType *, Sampler,  
    995                          0,  
    996                          __void__setSampler__SamplerType_P1); 
    997         I_SimpleProperty(SamplerType *, SamplerTyped,  
    998                          __SamplerType_P1__getSamplerTyped,  
    999                          0); 
    1000         I_SimpleProperty(float, StartTime,  
    1001                          __float__getStartTime,  
    1002                          0); 
    1003         I_SimpleProperty(osgAnimation::Target *, Target,  
    1004                          __Target_P1__getTarget,  
    1005                          0); 
    1006         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >::TargetType *, TargetTyped,  
    1007                          __TargetType_P1__getTargetTyped,  
    1008                          0); 
    1009 END_REFLECTOR 
    1010  
    1011 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >) 
    1012         I_DeclaringFile("osgAnimation/Channel"); 
    1013         I_BaseType(osgAnimation::Channel); 
    1014         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >::TargetType *, target, 0, 
    1015                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    1016                                    "", 
    1017                                    ""); 
    1018         I_Method1(void, update, IN, float, time, 
    1019                   Properties::VIRTUAL, 
    1020                   __void__update__float, 
    1021                   "", 
    1022                   ""); 
    1023         I_Method0(void, reset, 
    1024                   Properties::VIRTUAL, 
    1025                   __void__reset, 
    1026                   "", 
    1027                   ""); 
    1028         I_Method0(osgAnimation::Target *, getTarget, 
    1029                   Properties::VIRTUAL, 
    1030                   __Target_P1__getTarget, 
    1031                   "", 
    1032                   ""); 
    1033         I_Method0(SamplerType *, getOrCreateSampler, 
    1034                   Properties::NON_VIRTUAL, 
    1035                   __SamplerType_P1__getOrCreateSampler, 
    1036                   "", 
    1037                   ""); 
    1038         I_Method0(osgAnimation::Sampler *, getSampler, 
    1039                   Properties::VIRTUAL, 
    1040                   __Sampler_P1__getSampler, 
    1041                   "", 
    1042                   ""); 
    1043         I_Method0(const osgAnimation::Sampler *, getSampler, 
    1044                   Properties::VIRTUAL, 
    1045                   __C5_Sampler_P1__getSampler, 
    1046                   "", 
    1047                   ""); 
    1048         I_Method0(SamplerType *, getSamplerTyped, 
    1049                   Properties::NON_VIRTUAL, 
    1050                   __SamplerType_P1__getSamplerTyped, 
    1051                   "", 
    1052                   ""); 
    1053         I_Method0(const SamplerType *, getSamplerTyped, 
    1054                   Properties::NON_VIRTUAL, 
    1055                   __C5_SamplerType_P1__getSamplerTyped, 
    1056                   "", 
    1057                   ""); 
    1058         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    1059                   Properties::NON_VIRTUAL, 
    1060                   __void__setSampler__SamplerType_P1, 
    1061                   "", 
    1062                   ""); 
    1063         I_Method0(osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >::TargetType *, getTargetTyped, 
    1064                   Properties::NON_VIRTUAL, 
    1065                   __TargetType_P1__getTargetTyped, 
    1066                   "", 
    1067                   ""); 
    1068         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >::TargetType *, target, 
    1069                   Properties::NON_VIRTUAL, 
    1070                   __void__setTarget__TargetType_P1, 
    1071                   "", 
    1072                   ""); 
    1073         I_Method0(float, getStartTime, 
    1074                   Properties::VIRTUAL, 
    1075                   __float__getStartTime, 
    1076                   "", 
    1077                   ""); 
    1078         I_Method0(float, getEndTime, 
    1079                   Properties::VIRTUAL, 
    1080                   __float__getEndTime, 
    1081                   "", 
    1082                   ""); 
    1083         I_SimpleProperty(float, EndTime,  
    1084                          __float__getEndTime,  
    1085                          0); 
    1086         I_SimpleProperty(SamplerType *, Sampler,  
    1087                          0,  
    1088                          __void__setSampler__SamplerType_P1); 
    1089         I_SimpleProperty(SamplerType *, SamplerTyped,  
    1090                          __SamplerType_P1__getSamplerTyped,  
    1091                          0); 
    1092         I_SimpleProperty(float, StartTime,  
    1093                          __float__getStartTime,  
    1094                          0); 
    1095         I_SimpleProperty(osgAnimation::Target *, Target,  
    1096                          __Target_P1__getTarget,  
    1097                          0); 
    1098         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >::TargetType *, TargetTyped,  
    1099                          __TargetType_P1__getTargetTyped,  
    1100                          0); 
    1101 END_REFLECTOR 
    1102  
    1103 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >) 
    1104         I_DeclaringFile("osgAnimation/Channel"); 
    1105         I_BaseType(osgAnimation::Channel); 
    1106         I_ConstructorWithDefaults2(IN, SamplerType *, s, 0, IN, osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >::TargetType *, target, 0, 
    1107                                    ____TemplateChannel__SamplerType_P1__TargetType_P1, 
    1108                                    "", 
    1109                                    ""); 
    1110         I_Method1(void, update, IN, float, time, 
    1111                   Properties::VIRTUAL, 
    1112                   __void__update__float, 
    1113                   "", 
    1114                   ""); 
    1115         I_Method0(void, reset, 
    1116                   Properties::VIRTUAL, 
    1117                   __void__reset, 
    1118                   "", 
    1119                   ""); 
    1120         I_Method0(osgAnimation::Target *, getTarget, 
    1121                   Properties::VIRTUAL, 
    1122                   __Target_P1__getTarget, 
    1123                   "", 
    1124                   ""); 
    1125         I_Method0(SamplerType *, getOrCreateSampler, 
    1126                   Properties::NON_VIRTUAL, 
    1127                   __SamplerType_P1__getOrCreateSampler, 
    1128                   "", 
    1129                   ""); 
    1130         I_Method0(osgAnimation::Sampler *, getSampler, 
    1131                   Properties::VIRTUAL, 
    1132                   __Sampler_P1__getSampler, 
    1133                   "", 
    1134                   ""); 
    1135         I_Method0(const osgAnimation::Sampler *, getSampler, 
    1136                   Properties::VIRTUAL, 
    1137                   __C5_Sampler_P1__getSampler, 
    1138                   "", 
    1139                   ""); 
    1140         I_Method0(SamplerType *, getSamplerTyped, 
    1141                   Properties::NON_VIRTUAL, 
    1142                   __SamplerType_P1__getSamplerTyped, 
    1143                   "", 
    1144                   ""); 
    1145         I_Method0(const SamplerType *, getSamplerTyped, 
    1146                   Properties::NON_VIRTUAL, 
    1147                   __C5_SamplerType_P1__getSamplerTyped, 
    1148                   "", 
    1149                   ""); 
    1150         I_Method1(void, setSampler, IN, SamplerType *, sampler, 
    1151                   Properties::NON_VIRTUAL, 
    1152                   __void__setSampler__SamplerType_P1, 
    1153                   "", 
    1154                   ""); 
    1155         I_Method0(osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >::TargetType *, getTargetTyped, 
    1156                   Properties::NON_VIRTUAL, 
    1157                   __TargetType_P1__getTargetTyped, 
    1158                   "", 
    1159                   ""); 
    1160         I_Method1(void, setTarget, IN, osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >::TargetType *, target, 
    1161                   Properties::NON_VIRTUAL, 
    1162                   __void__setTarget__TargetType_P1, 
    1163                   "", 
    1164                   ""); 
    1165         I_Method0(float, getStartTime, 
    1166                   Properties::VIRTUAL, 
    1167                   __float__getStartTime, 
    1168                   "", 
    1169                   ""); 
    1170         I_Method0(float, getEndTime, 
    1171                   Properties::VIRTUAL, 
    1172                   __float__getEndTime, 
    1173                   "", 
    1174                   ""); 
    1175         I_SimpleProperty(float, EndTime,  
    1176                          __float__getEndTime,  
    1177                          0); 
    1178         I_SimpleProperty(SamplerType *, Sampler,  
    1179                          0,  
    1180                          __void__setSampler__SamplerType_P1); 
    1181         I_SimpleProperty(SamplerType *, SamplerTyped,  
    1182                          __SamplerType_P1__getSamplerTyped,  
    1183                          0); 
    1184         I_SimpleProperty(float, StartTime,  
    1185                          __float__getStartTime,  
    1186                          0); 
    1187         I_SimpleProperty(osgAnimation::Target *, Target,  
    1188                          __Target_P1__getTarget,  
    1189                          0); 
    1190         I_SimpleProperty(osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >::TargetType *, TargetTyped,  
    1191                          __TargetType_P1__getTargetTyped,  
    1192                          0); 
    1193 END_REFLECTOR 
    1194  
    1195183STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgAnimation::Channel > >) 
    1196184 
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/CubicBezier.cpp

    r9775 r9878  
    3131TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezier< osg::Vec4 >, osgAnimation::Vec4CubicBezier) 
    3232 
    33 BEGIN_VALUE_REFLECTOR(osgAnimation::TemplateCubicBezier< double >) 
    34         I_DeclaringFile("osgAnimation/CubicBezier"); 
    35         I_Method0(const T &, getP0, 
    36                   Properties::NON_VIRTUAL, 
    37                   __C5_T_R1__getP0, 
    38                   "", 
    39                   ""); 
    40         I_Method0(const T &, getP1, 
    41                   Properties::NON_VIRTUAL, 
    42                   __C5_T_R1__getP1, 
    43                   "", 
    44                   ""); 
    45         I_Method0(const T &, getP2, 
    46                   Properties::NON_VIRTUAL, 
    47                   __C5_T_R1__getP2, 
    48                   "", 
    49                   ""); 
    50         I_Constructor3(IN, const T &, v0, IN, const T &, v1, IN, const T &, v2, 
    51                        ____TemplateCubicBezier__C5_T_R1__C5_T_R1__C5_T_R1, 
    52                        "", 
    53                        ""); 
    54         I_Constructor0(____TemplateCubicBezier, 
    55                        "", 
    56                        ""); 
    57         I_Method0(const T &, getPosition, 
    58                   Properties::NON_VIRTUAL, 
    59                   __C5_T_R1__getPosition, 
    60                   "", 
    61                   ""); 
    62         I_Method0(const T &, getTangentPoint1, 
    63                   Properties::NON_VIRTUAL, 
    64                   __C5_T_R1__getTangentPoint1, 
    65                   "", 
    66                   ""); 
    67         I_Method0(const T &, getTangentPoint2, 
    68                   Properties::NON_VIRTUAL, 
    69                   __C5_T_R1__getTangentPoint2, 
    70                   "", 
    71                   ""); 
    72         I_SimpleProperty(const T &, P0,  
    73                          __C5_T_R1__getP0,  
    74                          0); 
    75         I_SimpleProperty(const T &, P1,  
    76                          __C5_T_R1__getP1,  
    77                          0); 
    78         I_SimpleProperty(const T &, P2,  
    79                          __C5_T_R1__getP2,  
    80                          0); 
    81         I_SimpleProperty(const T &, Position,  
    82                          __C5_T_R1__getPosition,  
    83                          0); 
    84         I_SimpleProperty(const T &, TangentPoint1,  
    85                          __C5_T_R1__getTangentPoint1,  
    86                          0); 
    87         I_SimpleProperty(const T &, TangentPoint2,  
    88                          __C5_T_R1__getTangentPoint2,  
    89                          0); 
    90 END_REFLECTOR 
    91  
    92 BEGIN_VALUE_REFLECTOR(osgAnimation::TemplateCubicBezier< float >) 
    93         I_DeclaringFile("osgAnimation/CubicBezier"); 
    94         I_Method0(const T &, getP0, 
    95                   Properties::NON_VIRTUAL, 
    96                   __C5_T_R1__getP0, 
    97                   "", 
    98                   ""); 
    99         I_Method0(const T &, getP1, 
    100                   Properties::NON_VIRTUAL, 
    101                   __C5_T_R1__getP1, 
    102                   "", 
    103                   ""); 
    104         I_Method0(const T &, getP2, 
    105                   Properties::NON_VIRTUAL, 
    106                   __C5_T_R1__getP2, 
    107                   "", 
    108                   ""); 
    109         I_Constructor3(IN, const T &, v0, IN, const T &, v1, IN, const T &, v2, 
    110                        ____TemplateCubicBezier__C5_T_R1__C5_T_R1__C5_T_R1, 
    111                        "", 
    112                        ""); 
    113         I_Constructor0(____TemplateCubicBezier, 
    114                        "", 
    115                        ""); 
    116         I_Method0(const T &, getPosition, 
    117                   Properties::NON_VIRTUAL, 
    118                   __C5_T_R1__getPosition, 
    119                   "", 
    120                   ""); 
    121         I_Method0(const T &, getTangentPoint1, 
    122                   Properties::NON_VIRTUAL, 
    123                   __C5_T_R1__getTangentPoint1, 
    124                   "", 
    125                   ""); 
    126         I_Method0(const T &, getTangentPoint2, 
    127                   Properties::NON_VIRTUAL, 
    128                   __C5_T_R1__getTangentPoint2, 
    129                   "", 
    130                   ""); 
    131         I_SimpleProperty(const T &, P0,  
    132                          __C5_T_R1__getP0,  
    133                          0); 
    134         I_SimpleProperty(const T &, P1,  
    135                          __C5_T_R1__getP1,  
    136                          0); 
    137         I_SimpleProperty(const T &, P2,  
    138                          __C5_T_R1__getP2,  
    139                          0); 
    140         I_SimpleProperty(const T &, Position,  
    141                          __C5_T_R1__getPosition,  
    142                          0); 
    143         I_SimpleProperty(const T &, TangentPoint1,  
    144                          __C5_T_R1__getTangentPoint1,  
    145                          0); 
    146         I_SimpleProperty(const T &, TangentPoint2,  
    147                          __C5_T_R1__getTangentPoint2,  
    148                          0); 
    149 END_REFLECTOR 
    150  
    151 BEGIN_VALUE_REFLECTOR(osgAnimation::TemplateCubicBezier< osg::Vec2 >) 
    152         I_DeclaringFile("osgAnimation/CubicBezier"); 
    153         I_Method0(const T &, getP0, 
    154                   Properties::NON_VIRTUAL, 
    155                   __C5_T_R1__getP0, 
    156                   "", 
    157                   ""); 
    158         I_Method0(const T &, getP1, 
    159                   Properties::NON_VIRTUAL, 
    160                   __C5_T_R1__getP1, 
    161                   "", 
    162                   ""); 
    163         I_Method0(const T &, getP2, 
    164                   Properties::NON_VIRTUAL, 
    165                   __C5_T_R1__getP2, 
    166                   "", 
    167                   ""); 
    168         I_Constructor3(IN, const T &, v0, IN, const T &, v1, IN, const T &, v2, 
    169                        ____TemplateCubicBezier__C5_T_R1__C5_T_R1__C5_T_R1, 
    170                        "", 
    171                        ""); 
    172         I_Constructor0(____TemplateCubicBezier, 
    173                        "", 
    174                        ""); 
    175         I_Method0(const T &, getPosition, 
    176                   Properties::NON_VIRTUAL, 
    177                   __C5_T_R1__getPosition, 
    178                   "", 
    179                   ""); 
    180         I_Method0(const T &, getTangentPoint1, 
    181                   Properties::NON_VIRTUAL, 
    182                   __C5_T_R1__getTangentPoint1, 
    183                   "", 
    184                   ""); 
    185         I_Method0(const T &, getTangentPoint2, 
    186                   Properties::NON_VIRTUAL, 
    187                   __C5_T_R1__getTangentPoint2, 
    188                   "", 
    189                   ""); 
    190         I_SimpleProperty(const T &, P0,  
    191                          __C5_T_R1__getP0,  
    192                          0); 
    193         I_SimpleProperty(const T &, P1,  
    194                          __C5_T_R1__getP1,  
    195                          0); 
    196         I_SimpleProperty(const T &, P2,  
    197                          __C5_T_R1__getP2,  
    198                          0); 
    199         I_SimpleProperty(const T &, Position,  
    200                          __C5_T_R1__getPosition,  
    201                          0); 
    202         I_SimpleProperty(const T &, TangentPoint1,  
    203                          __C5_T_R1__getTangentPoint1,  
    204                          0); 
    205         I_SimpleProperty(const T &, TangentPoint2,  
    206                          __C5_T_R1__getTangentPoint2,  
    207                          0); 
    208 END_REFLECTOR 
    209  
    210 BEGIN_VALUE_REFLECTOR(osgAnimation::TemplateCubicBezier< osg::Vec3 >) 
    211         I_DeclaringFile("osgAnimation/CubicBezier"); 
    212         I_Method0(const T &, getP0, 
    213                   Properties::NON_VIRTUAL, 
    214                   __C5_T_R1__getP0, 
    215                   "", 
    216                   ""); 
    217         I_Method0(const T &, getP1, 
    218                   Properties::NON_VIRTUAL, 
    219                   __C5_T_R1__getP1, 
    220                   "", 
    221                   ""); 
    222         I_Method0(const T &, getP2, 
    223                   Properties::NON_VIRTUAL, 
    224                   __C5_T_R1__getP2, 
    225                   "", 
    226                   ""); 
    227         I_Constructor3(IN, const T &, v0, IN, const T &, v1, IN, const T &, v2, 
    228                        ____TemplateCubicBezier__C5_T_R1__C5_T_R1__C5_T_R1, 
    229                        "", 
    230                        ""); 
    231         I_Constructor0(____TemplateCubicBezier, 
    232                        "", 
    233                        ""); 
    234         I_Method0(const T &, getPosition, 
    235                   Properties::NON_VIRTUAL, 
    236                   __C5_T_R1__getPosition, 
    237                   "", 
    238                   ""); 
    239         I_Method0(const T &, getTangentPoint1, 
    240                   Properties::NON_VIRTUAL, 
    241                   __C5_T_R1__getTangentPoint1, 
    242                   "", 
    243                   ""); 
    244         I_Method0(const T &, getTangentPoint2, 
    245                   Properties::NON_VIRTUAL, 
    246                   __C5_T_R1__getTangentPoint2, 
    247                   "", 
    248                   ""); 
    249         I_SimpleProperty(const T &, P0,  
    250                          __C5_T_R1__getP0,  
    251                          0); 
    252         I_SimpleProperty(const T &, P1,  
    253                          __C5_T_R1__getP1,  
    254                          0); 
    255         I_SimpleProperty(const T &, P2,  
    256                          __C5_T_R1__getP2,  
    257                          0); 
    258         I_SimpleProperty(const T &, Position,  
    259                          __C5_T_R1__getPosition,  
    260                          0); 
    261         I_SimpleProperty(const T &, TangentPoint1,  
    262                          __C5_T_R1__getTangentPoint1,  
    263                          0); 
    264         I_SimpleProperty(const T &, TangentPoint2,  
    265                          __C5_T_R1__getTangentPoint2,  
    266                          0); 
    267 END_REFLECTOR 
    268  
    269 BEGIN_VALUE_REFLECTOR(osgAnimation::TemplateCubicBezier< osg::Vec4 >) 
    270         I_DeclaringFile("osgAnimation/CubicBezier"); 
    271         I_Method0(const T &, getP0, 
    272                   Properties::NON_VIRTUAL, 
    273                   __C5_T_R1__getP0, 
    274                   "", 
    275                   ""); 
    276         I_Method0(const T &, getP1, 
    277                   Properties::NON_VIRTUAL, 
    278                   __C5_T_R1__getP1, 
    279                   "", 
    280                   ""); 
    281         I_Method0(const T &, getP2, 
    282                   Properties::NON_VIRTUAL, 
    283                   __C5_T_R1__getP2, 
    284                   "", 
    285                   ""); 
    286         I_Constructor3(IN, const T &, v0, IN, const T &, v1, IN, const T &, v2, 
    287                        ____TemplateCubicBezier__C5_T_R1__C5_T_R1__C5_T_R1, 
    288                        "", 
    289                        ""); 
    290         I_Constructor0(____TemplateCubicBezier, 
    291                        "", 
    292                        ""); 
    293         I_Method0(const T &, getPosition, 
    294                   Properties::NON_VIRTUAL, 
    295                   __C5_T_R1__getPosition, 
    296                   "", 
    297                   ""); 
    298         I_Method0(const T &, getTangentPoint1, 
    299                   Properties::NON_VIRTUAL, 
    300                   __C5_T_R1__getTangentPoint1, 
    301                   "", 
    302                   ""); 
    303         I_Method0(const T &, getTangentPoint2, 
    304                   Properties::NON_VIRTUAL, 
    305                   __C5_T_R1__getTangentPoint2, 
    306                   "", 
    307                   ""); 
    308         I_SimpleProperty(const T &, P0,  
    309                          __C5_T_R1__getP0,  
    310                          0); 
    311         I_SimpleProperty(const T &, P1,  
    312                          __C5_T_R1__getP1,  
    313                          0); 
    314         I_SimpleProperty(const T &, P2,  
    315                          __C5_T_R1__getP2,  
    316                          0); 
    317         I_SimpleProperty(const T &, Position,  
    318                          __C5_T_R1__getPosition,  
    319                          0); 
    320         I_SimpleProperty(const T &, TangentPoint1,  
    321                          __C5_T_R1__getTangentPoint1,  
    322                          0); 
    323         I_SimpleProperty(const T &, TangentPoint2,  
    324                          __C5_T_R1__getTangentPoint2,  
    325                          0); 
    326 END_REFLECTOR 
    327  
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Interpolator.cpp

    r9775 r9878  
    4545TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec4 COMMA  osgAnimation::Vec4CubicBezier >, osgAnimation::Vec4CubicBezierInterpolator) 
    4646 
    47 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateCubicBezierInterpolator< double COMMA  osgAnimation::DoubleCubicBezier >) 
    48         I_DeclaringFile("osgAnimation/Interpolator"); 
    49         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    50         I_Constructor0(____TemplateCubicBezierInterpolator, 
    51                        "", 
    52                        ""); 
    53         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    54                   Properties::NON_VIRTUAL, 
    55                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    56                   "", 
    57                   ""); 
    58 END_REFLECTOR 
    59  
    60 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateCubicBezierInterpolator< float COMMA  osgAnimation::FloatCubicBezier >) 
    61         I_DeclaringFile("osgAnimation/Interpolator"); 
    62         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    63         I_Constructor0(____TemplateCubicBezierInterpolator, 
    64                        "", 
    65                        ""); 
    66         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    67                   Properties::NON_VIRTUAL, 
    68                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    69                   "", 
    70                   ""); 
    71 END_REFLECTOR 
    72  
    73 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec2 COMMA  osgAnimation::Vec2CubicBezier >) 
    74         I_DeclaringFile("osgAnimation/Interpolator"); 
    75         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    76         I_Constructor0(____TemplateCubicBezierInterpolator, 
    77                        "", 
    78                        ""); 
    79         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    80                   Properties::NON_VIRTUAL, 
    81                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    82                   "", 
    83                   ""); 
    84 END_REFLECTOR 
    85  
    86 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec3 COMMA  osgAnimation::Vec3CubicBezier >) 
    87         I_DeclaringFile("osgAnimation/Interpolator"); 
    88         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    89         I_Constructor0(____TemplateCubicBezierInterpolator, 
    90                        "", 
    91                        ""); 
    92         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    93                   Properties::NON_VIRTUAL, 
    94                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    95                   "", 
    96                   ""); 
    97 END_REFLECTOR 
    98  
    99 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec4 COMMA  osgAnimation::Vec4CubicBezier >) 
    100         I_DeclaringFile("osgAnimation/Interpolator"); 
    101         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    102         I_Constructor0(____TemplateCubicBezierInterpolator, 
    103                        "", 
    104                        ""); 
    105         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    106                   Properties::NON_VIRTUAL, 
    107                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    108                   "", 
    109                   ""); 
    110 END_REFLECTOR 
    111  
    112 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateLinearInterpolator< double COMMA  double >) 
    113         I_DeclaringFile("osgAnimation/Interpolator"); 
    114         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    115         I_Constructor0(____TemplateLinearInterpolator, 
    116                        "", 
    117                        ""); 
    118         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    119                   Properties::NON_VIRTUAL, 
    120                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    121                   "", 
    122                   ""); 
    123 END_REFLECTOR 
    124  
    125 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateLinearInterpolator< float COMMA  float >) 
    126         I_DeclaringFile("osgAnimation/Interpolator"); 
    127         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    128         I_Constructor0(____TemplateLinearInterpolator, 
    129                        "", 
    130                        ""); 
    131         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    132                   Properties::NON_VIRTUAL, 
    133                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    134                   "", 
    135                   ""); 
    136 END_REFLECTOR 
    137  
    138 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateLinearInterpolator< osg::Vec2 COMMA  osg::Vec2 >) 
    139         I_DeclaringFile("osgAnimation/Interpolator"); 
    140         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    141         I_Constructor0(____TemplateLinearInterpolator, 
    142                        "", 
    143                        ""); 
    144         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    145                   Properties::NON_VIRTUAL, 
    146                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    147                   "", 
    148                   ""); 
    149 END_REFLECTOR 
    150  
    151 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateLinearInterpolator< osg::Vec3 COMMA  osg::Vec3 >) 
    152         I_DeclaringFile("osgAnimation/Interpolator"); 
    153         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    154         I_Constructor0(____TemplateLinearInterpolator, 
    155                        "", 
    156                        ""); 
    157         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    158                   Properties::NON_VIRTUAL, 
    159                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    160                   "", 
    161                   ""); 
    162 END_REFLECTOR 
    163  
    164 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateLinearInterpolator< osg::Vec3 COMMA  osgAnimation::Vec3Packed >) 
    165         I_DeclaringFile("osgAnimation/Interpolator"); 
    166         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    167         I_Constructor0(____TemplateLinearInterpolator, 
    168                        "", 
    169                        ""); 
    170         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    171                   Properties::NON_VIRTUAL, 
    172                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    173                   "", 
    174                   ""); 
    175 END_REFLECTOR 
    176  
    177 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateLinearInterpolator< osg::Vec4 COMMA  osg::Vec4 >) 
    178         I_DeclaringFile("osgAnimation/Interpolator"); 
    179         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    180         I_Constructor0(____TemplateLinearInterpolator, 
    181                        "", 
    182                        ""); 
    183         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    184                   Properties::NON_VIRTUAL, 
    185                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    186                   "", 
    187                   ""); 
    188 END_REFLECTOR 
    189  
    190 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSphericalLinearInterpolator< osg::Quat COMMA  osg::Quat >) 
    191         I_DeclaringFile("osgAnimation/Interpolator"); 
    192         I_BaseType(osgAnimation::TemplateInterpolatorBase); 
    193         I_Constructor0(____TemplateSphericalLinearInterpolator, 
    194                        "", 
    195                        ""); 
    196         I_Method3(void, getValue, IN, const osgAnimation::TemplateKeyframeContainer< KEY > &, keyframes, IN, float, time, IN, TYPE &, result, 
    197                   Properties::NON_VIRTUAL, 
    198                   __void__getValue__C5_TemplateKeyframeContainerT1_KEY__R1__float__TYPE_R1, 
    199                   "", 
    200                   ""); 
    201 END_REFLECTOR 
    202  
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Keyframe.cpp

    r9775 r9878  
    5858TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< float >, osgAnimation::FloatKeyframeContainer) 
    5959 
     60TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< double >, osgAnimation::DoubleKeyframe) 
     61 
     62TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< double >, osgAnimation::DoubleKeyframeContainer) 
     63 
    6064TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osg::Vec2 >, osgAnimation::Vec2Keyframe) 
    6165 
     
    98102TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec4CubicBezier >, osgAnimation::Vec4CubicBezierKeyframeContainer) 
    99103 
    100 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< float >) 
    101         I_DeclaringFile("osgAnimation/Keyframe"); 
    102         I_BaseType(osgAnimation::Keyframe); 
    103         I_Constructor0(____TemplateKeyframe, 
    104                        "", 
    105                        ""); 
    106         I_Constructor2(IN, float, time, IN, const T &, value, 
    107                        ____TemplateKeyframe__float__C5_T_R1, 
    108                        "", 
    109                        ""); 
    110         I_Method1(void, setValue, IN, const T &, value, 
    111                   Properties::NON_VIRTUAL, 
    112                   __void__setValue__C5_T_R1, 
    113                   "", 
    114                   ""); 
    115         I_Method0(const T &, getValue, 
    116                   Properties::NON_VIRTUAL, 
    117                   __C5_T_R1__getValue, 
    118                   "", 
    119                   ""); 
    120         I_SimpleProperty(const T &, Value,  
    121                          __C5_T_R1__getValue,  
    122                          __void__setValue__C5_T_R1); 
    123 END_REFLECTOR 
    124  
    125 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osg::Quat >) 
    126         I_DeclaringFile("osgAnimation/Keyframe"); 
    127         I_BaseType(osgAnimation::Keyframe); 
    128         I_Constructor0(____TemplateKeyframe, 
    129                        "", 
    130                        ""); 
    131         I_Constructor2(IN, float, time, IN, const T &, value, 
    132                        ____TemplateKeyframe__float__C5_T_R1, 
    133                        "", 
    134                        ""); 
    135         I_Method1(void, setValue, IN, const T &, value, 
    136                   Properties::NON_VIRTUAL, 
    137                   __void__setValue__C5_T_R1, 
    138                   "", 
    139                   ""); 
    140         I_Method0(const T &, getValue, 
    141                   Properties::NON_VIRTUAL, 
    142                   __C5_T_R1__getValue, 
    143                   "", 
    144                   ""); 
    145         I_SimpleProperty(const T &, Value,  
    146                          __C5_T_R1__getValue,  
    147                          __void__setValue__C5_T_R1); 
    148 END_REFLECTOR 
    149  
    150 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osg::Vec2 >) 
    151         I_DeclaringFile("osgAnimation/Keyframe"); 
    152         I_BaseType(osgAnimation::Keyframe); 
    153         I_Constructor0(____TemplateKeyframe, 
    154                        "", 
    155                        ""); 
    156         I_Constructor2(IN, float, time, IN, const T &, value, 
    157                        ____TemplateKeyframe__float__C5_T_R1, 
    158                        "", 
    159                        ""); 
    160         I_Method1(void, setValue, IN, const T &, value, 
    161                   Properties::NON_VIRTUAL, 
    162                   __void__setValue__C5_T_R1, 
    163                   "", 
    164                   ""); 
    165         I_Method0(const T &, getValue, 
    166                   Properties::NON_VIRTUAL, 
    167                   __C5_T_R1__getValue, 
    168                   "", 
    169                   ""); 
    170         I_SimpleProperty(const T &, Value,  
    171                          __C5_T_R1__getValue,  
    172                          __void__setValue__C5_T_R1); 
    173 END_REFLECTOR 
    174  
    175 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osg::Vec3 >) 
    176         I_DeclaringFile("osgAnimation/Keyframe"); 
    177         I_BaseType(osgAnimation::Keyframe); 
    178         I_Constructor0(____TemplateKeyframe, 
    179                        "", 
    180                        ""); 
    181         I_Constructor2(IN, float, time, IN, const T &, value, 
    182                        ____TemplateKeyframe__float__C5_T_R1, 
    183                        "", 
    184                        ""); 
    185         I_Method1(void, setValue, IN, const T &, value, 
    186                   Properties::NON_VIRTUAL, 
    187                   __void__setValue__C5_T_R1, 
    188                   "", 
    189                   ""); 
    190         I_Method0(const T &, getValue, 
    191                   Properties::NON_VIRTUAL, 
    192                   __C5_T_R1__getValue, 
    193                   "", 
    194                   ""); 
    195         I_SimpleProperty(const T &, Value,  
    196                          __C5_T_R1__getValue,  
    197                          __void__setValue__C5_T_R1); 
    198 END_REFLECTOR 
    199  
    200 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osg::Vec4 >) 
    201         I_DeclaringFile("osgAnimation/Keyframe"); 
    202         I_BaseType(osgAnimation::Keyframe); 
    203         I_Constructor0(____TemplateKeyframe, 
    204                        "", 
    205                        ""); 
    206         I_Constructor2(IN, float, time, IN, const T &, value, 
    207                        ____TemplateKeyframe__float__C5_T_R1, 
    208                        "", 
    209                        ""); 
    210         I_Method1(void, setValue, IN, const T &, value, 
    211                   Properties::NON_VIRTUAL, 
    212                   __void__setValue__C5_T_R1, 
    213                   "", 
    214                   ""); 
    215         I_Method0(const T &, getValue, 
    216                   Properties::NON_VIRTUAL, 
    217                   __C5_T_R1__getValue, 
    218                   "", 
    219                   ""); 
    220         I_SimpleProperty(const T &, Value,  
    221                          __C5_T_R1__getValue,  
    222                          __void__setValue__C5_T_R1); 
    223 END_REFLECTOR 
    224  
    225 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osgAnimation::DoubleCubicBezier >) 
    226         I_DeclaringFile("osgAnimation/Keyframe"); 
    227         I_BaseType(osgAnimation::Keyframe); 
    228         I_Constructor0(____TemplateKeyframe, 
    229                        "", 
    230                        ""); 
    231         I_Constructor2(IN, float, time, IN, const T &, value, 
    232                        ____TemplateKeyframe__float__C5_T_R1, 
    233                        "", 
    234                        ""); 
    235         I_Method1(void, setValue, IN, const T &, value, 
    236                   Properties::NON_VIRTUAL, 
    237                   __void__setValue__C5_T_R1, 
    238                   "", 
    239                   ""); 
    240         I_Method0(const T &, getValue, 
    241                   Properties::NON_VIRTUAL, 
    242                   __C5_T_R1__getValue, 
    243                   "", 
    244                   ""); 
    245         I_SimpleProperty(const T &, Value,  
    246                          __C5_T_R1__getValue,  
    247                          __void__setValue__C5_T_R1); 
    248 END_REFLECTOR 
    249  
    250 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osgAnimation::FloatCubicBezier >) 
    251         I_DeclaringFile("osgAnimation/Keyframe"); 
    252         I_BaseType(osgAnimation::Keyframe); 
    253         I_Constructor0(____TemplateKeyframe, 
    254                        "", 
    255                        ""); 
    256         I_Constructor2(IN, float, time, IN, const T &, value, 
    257                        ____TemplateKeyframe__float__C5_T_R1, 
    258                        "", 
    259                        ""); 
    260         I_Method1(void, setValue, IN, const T &, value, 
    261                   Properties::NON_VIRTUAL, 
    262                   __void__setValue__C5_T_R1, 
    263                   "", 
    264                   ""); 
    265         I_Method0(const T &, getValue, 
    266                   Properties::NON_VIRTUAL, 
    267                   __C5_T_R1__getValue, 
    268                   "", 
    269                   ""); 
    270         I_SimpleProperty(const T &, Value,  
    271                          __C5_T_R1__getValue,  
    272                          __void__setValue__C5_T_R1); 
    273 END_REFLECTOR 
    274  
    275 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osgAnimation::Vec2CubicBezier >) 
    276         I_DeclaringFile("osgAnimation/Keyframe"); 
    277         I_BaseType(osgAnimation::Keyframe); 
    278         I_Constructor0(____TemplateKeyframe, 
    279                        "", 
    280                        ""); 
    281         I_Constructor2(IN, float, time, IN, const T &, value, 
    282                        ____TemplateKeyframe__float__C5_T_R1, 
    283                        "", 
    284                        ""); 
    285         I_Method1(void, setValue, IN, const T &, value, 
    286                   Properties::NON_VIRTUAL, 
    287                   __void__setValue__C5_T_R1, 
    288                   "", 
    289                   ""); 
    290         I_Method0(const T &, getValue, 
    291                   Properties::NON_VIRTUAL, 
    292                   __C5_T_R1__getValue, 
    293                   "", 
    294                   ""); 
    295         I_SimpleProperty(const T &, Value,  
    296                          __C5_T_R1__getValue,  
    297                          __void__setValue__C5_T_R1); 
    298 END_REFLECTOR 
    299  
    300 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osgAnimation::Vec3CubicBezier >) 
    301         I_DeclaringFile("osgAnimation/Keyframe"); 
    302         I_BaseType(osgAnimation::Keyframe); 
    303         I_Constructor0(____TemplateKeyframe, 
    304                        "", 
    305                        ""); 
    306         I_Constructor2(IN, float, time, IN, const T &, value, 
    307                        ____TemplateKeyframe__float__C5_T_R1, 
    308                        "", 
    309                        ""); 
    310         I_Method1(void, setValue, IN, const T &, value, 
    311                   Properties::NON_VIRTUAL, 
    312                   __void__setValue__C5_T_R1, 
    313                   "", 
    314                   ""); 
    315         I_Method0(const T &, getValue, 
    316                   Properties::NON_VIRTUAL, 
    317                   __C5_T_R1__getValue, 
    318                   "", 
    319                   ""); 
    320         I_SimpleProperty(const T &, Value,  
    321                          __C5_T_R1__getValue,  
    322                          __void__setValue__C5_T_R1); 
    323 END_REFLECTOR 
    324  
    325 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osgAnimation::Vec3Packed >) 
    326         I_DeclaringFile("osgAnimation/Keyframe"); 
    327         I_BaseType(osgAnimation::Keyframe); 
    328         I_Constructor0(____TemplateKeyframe, 
    329                        "", 
    330                        ""); 
    331         I_Constructor2(IN, float, time, IN, const T &, value, 
    332                        ____TemplateKeyframe__float__C5_T_R1, 
    333                        "", 
    334                        ""); 
    335         I_Method1(void, setValue, IN, const T &, value, 
    336                   Properties::NON_VIRTUAL, 
    337                   __void__setValue__C5_T_R1, 
    338                   "", 
    339                   ""); 
    340         I_Method0(const T &, getValue, 
    341                   Properties::NON_VIRTUAL, 
    342                   __C5_T_R1__getValue, 
    343                   "", 
    344                   ""); 
    345         I_SimpleProperty(const T &, Value,  
    346                          __C5_T_R1__getValue,  
    347                          __void__setValue__C5_T_R1); 
    348 END_REFLECTOR 
    349  
    350 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframe< osgAnimation::Vec4CubicBezier >) 
    351         I_DeclaringFile("osgAnimation/Keyframe"); 
    352         I_BaseType(osgAnimation::Keyframe); 
    353         I_Constructor0(____TemplateKeyframe, 
    354                        "", 
    355                        ""); 
    356         I_Constructor2(IN, float, time, IN, const T &, value, 
    357                        ____TemplateKeyframe__float__C5_T_R1, 
    358                        "", 
    359                        ""); 
    360         I_Method1(void, setValue, IN, const T &, value, 
    361                   Properties::NON_VIRTUAL, 
    362                   __void__setValue__C5_T_R1, 
    363                   "", 
    364                   ""); 
    365         I_Method0(const T &, getValue, 
    366                   Properties::NON_VIRTUAL, 
    367                   __C5_T_R1__getValue, 
    368                   "", 
    369                   ""); 
    370         I_SimpleProperty(const T &, Value,  
    371                          __C5_T_R1__getValue,  
    372                          __void__setValue__C5_T_R1); 
    373 END_REFLECTOR 
    374  
    375 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< float >) 
    376         I_DeclaringFile("osgAnimation/Keyframe"); 
    377         I_BaseType(osgAnimation::KeyframeContainer); 
    378         I_Constructor0(____TemplateKeyframeContainer, 
    379                        "", 
    380                        ""); 
    381         I_Method0(unsigned int, size, 
    382                   Properties::VIRTUAL, 
    383                   __unsigned_int__size, 
    384                   "", 
    385                   ""); 
    386 END_REFLECTOR 
    387  
    388 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osg::Quat >) 
    389         I_DeclaringFile("osgAnimation/Keyframe"); 
    390         I_BaseType(osgAnimation::KeyframeContainer); 
    391         I_Constructor0(____TemplateKeyframeContainer, 
    392                        "", 
    393                        ""); 
    394         I_Method0(unsigned int, size, 
    395                   Properties::VIRTUAL, 
    396                   __unsigned_int__size, 
    397                   "", 
    398                   ""); 
    399 END_REFLECTOR 
    400  
    401 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osg::Vec2 >) 
    402         I_DeclaringFile("osgAnimation/Keyframe"); 
    403         I_BaseType(osgAnimation::KeyframeContainer); 
    404         I_Constructor0(____TemplateKeyframeContainer, 
    405                        "", 
    406                        ""); 
    407         I_Method0(unsigned int, size, 
    408                   Properties::VIRTUAL, 
    409                   __unsigned_int__size, 
    410                   "", 
    411                   ""); 
    412 END_REFLECTOR 
    413  
    414 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osg::Vec3 >) 
    415         I_DeclaringFile("osgAnimation/Keyframe"); 
    416         I_BaseType(osgAnimation::KeyframeContainer); 
    417         I_Constructor0(____TemplateKeyframeContainer, 
    418                        "", 
    419                        ""); 
    420         I_Method0(unsigned int, size, 
    421                   Properties::VIRTUAL, 
    422                   __unsigned_int__size, 
    423                   "", 
    424                   ""); 
    425 END_REFLECTOR 
    426  
    427 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osg::Vec4 >) 
    428         I_DeclaringFile("osgAnimation/Keyframe"); 
    429         I_BaseType(osgAnimation::KeyframeContainer); 
    430         I_Constructor0(____TemplateKeyframeContainer, 
    431                        "", 
    432                        ""); 
    433         I_Method0(unsigned int, size, 
    434                   Properties::VIRTUAL, 
    435                   __unsigned_int__size, 
    436                   "", 
    437                   ""); 
    438 END_REFLECTOR 
    439  
    440 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osgAnimation::DoubleCubicBezier >) 
    441         I_DeclaringFile("osgAnimation/Keyframe"); 
    442         I_BaseType(osgAnimation::KeyframeContainer); 
    443         I_Constructor0(____TemplateKeyframeContainer, 
    444                        "", 
    445                        ""); 
    446         I_Method0(unsigned int, size, 
    447                   Properties::VIRTUAL, 
    448                   __unsigned_int__size, 
    449                   "", 
    450                   ""); 
    451 END_REFLECTOR 
    452  
    453 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osgAnimation::FloatCubicBezier >) 
    454         I_DeclaringFile("osgAnimation/Keyframe"); 
    455         I_BaseType(osgAnimation::KeyframeContainer); 
    456         I_Constructor0(____TemplateKeyframeContainer, 
    457                        "", 
    458                        ""); 
    459         I_Method0(unsigned int, size, 
    460                   Properties::VIRTUAL, 
    461                   __unsigned_int__size, 
    462                   "", 
    463                   ""); 
    464 END_REFLECTOR 
    465  
    466 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec2CubicBezier >) 
    467         I_DeclaringFile("osgAnimation/Keyframe"); 
    468         I_BaseType(osgAnimation::KeyframeContainer); 
    469         I_Constructor0(____TemplateKeyframeContainer, 
    470                        "", 
    471                        ""); 
    472         I_Method0(unsigned int, size, 
    473                   Properties::VIRTUAL, 
    474                   __unsigned_int__size, 
    475                   "", 
    476                   ""); 
    477 END_REFLECTOR 
    478  
    479 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3CubicBezier >) 
    480         I_DeclaringFile("osgAnimation/Keyframe"); 
    481         I_BaseType(osgAnimation::KeyframeContainer); 
    482         I_Constructor0(____TemplateKeyframeContainer, 
    483                        "", 
    484                        ""); 
    485         I_Method0(unsigned int, size, 
    486                   Properties::VIRTUAL, 
    487                   __unsigned_int__size, 
    488                   "", 
    489                   ""); 
    490 END_REFLECTOR 
    491  
    492 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3Packed >) 
    493         I_DeclaringFile("osgAnimation/Keyframe"); 
    494         I_BaseType(osgAnimation::KeyframeContainer); 
    495         I_Constructor0(____TemplateKeyframeContainer, 
    496                        "", 
    497                        ""); 
    498         I_Method0(unsigned int, size, 
    499                   Properties::VIRTUAL, 
    500                   __unsigned_int__size, 
    501                   "", 
    502                   ""); 
    503 END_REFLECTOR 
    504  
    505 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec4CubicBezier >) 
    506         I_DeclaringFile("osgAnimation/Keyframe"); 
    507         I_BaseType(osgAnimation::KeyframeContainer); 
    508         I_Constructor0(____TemplateKeyframeContainer, 
    509                        "", 
    510                        ""); 
    511         I_Method0(unsigned int, size, 
    512                   Properties::VIRTUAL, 
    513                   __unsigned_int__size, 
    514                   "", 
    515                   ""); 
    516 END_REFLECTOR 
    517  
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Target.cpp

    r9775 r9878  
    7373TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< double >, osgAnimation::DoubleTarget) 
    7474 
    75 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateTarget< double >) 
    76         I_DeclaringFile("osgAnimation/Target"); 
    77         I_BaseType(osgAnimation::Target); 
    78         I_Constructor0(____TemplateTarget, 
    79                        "", 
    80                        ""); 
    81         I_Constructor1(IN, const T &, v, 
    82                        Properties::NON_EXPLICIT, 
    83                        ____TemplateTarget__C5_T_R1, 
    84                        "", 
    85                        ""); 
    86         I_Method2(void, update, IN, float, weight, IN, const T &, val, 
    87                   Properties::NON_VIRTUAL, 
    88                   __void__update__float__C5_T_R1, 
    89                   "", 
    90                   ""); 
    91         I_Method0(const T &, getValue, 
    92                   Properties::NON_VIRTUAL, 
    93                   __C5_T_R1__getValue, 
    94                   "", 
    95                   ""); 
    96         I_Method0(void, normalize, 
    97                   Properties::VIRTUAL, 
    98                   __void__normalize, 
    99                   "", 
    100                   ""); 
    101         I_Method1(void, setValue, IN, const T &, value, 
    102                   Properties::NON_VIRTUAL, 
    103                   __void__setValue__C5_T_R1, 
    104                   "", 
    105                   ""); 
    106         I_SimpleProperty(const T &, Value,  
    107                          __C5_T_R1__getValue,  
    108                          __void__setValue__C5_T_R1); 
    109 END_REFLECTOR 
    110  
    111 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateTarget< float >) 
    112         I_DeclaringFile("osgAnimation/Target"); 
    113         I_BaseType(osgAnimation::Target); 
    114         I_Constructor0(____TemplateTarget, 
    115                        "", 
    116                        ""); 
    117         I_Constructor1(IN, const T &, v, 
    118                        Properties::NON_EXPLICIT, 
    119                        ____TemplateTarget__C5_T_R1, 
    120                        "", 
    121                        ""); 
    122         I_Method2(void, update, IN, float, weight, IN, const T &, val, 
    123                   Properties::NON_VIRTUAL, 
    124                   __void__update__float__C5_T_R1, 
    125                   "", 
    126                   ""); 
    127         I_Method0(const T &, getValue, 
    128                   Properties::NON_VIRTUAL, 
    129                   __C5_T_R1__getValue, 
    130                   "", 
    131                   ""); 
    132         I_Method0(void, normalize, 
    133                   Properties::VIRTUAL, 
    134                   __void__normalize, 
    135                   "", 
    136                   ""); 
    137         I_Method1(void, setValue, IN, const T &, value, 
    138                   Properties::NON_VIRTUAL, 
    139                   __void__setValue__C5_T_R1, 
    140                   "", 
    141                   ""); 
    142         I_SimpleProperty(const T &, Value,  
    143                          __C5_T_R1__getValue,  
    144                          __void__setValue__C5_T_R1); 
    145 END_REFLECTOR 
    146  
    147 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateTarget< osg::Quat >) 
    148         I_DeclaringFile("osgAnimation/Target"); 
    149         I_BaseType(osgAnimation::Target); 
    150         I_Constructor0(____TemplateTarget, 
    151                        "", 
    152                        ""); 
    153         I_Constructor1(IN, const T &, v, 
    154                        Properties::NON_EXPLICIT, 
    155                        ____TemplateTarget__C5_T_R1, 
    156                        "", 
    157                        ""); 
    158         I_Method2(void, update, IN, float, weight, IN, const T &, val, 
    159                   Properties::NON_VIRTUAL, 
    160                   __void__update__float__C5_T_R1, 
    161                   "", 
    162                   ""); 
    163         I_Method0(const T &, getValue, 
    164                   Properties::NON_VIRTUAL, 
    165                   __C5_T_R1__getValue, 
    166                   "", 
    167                   ""); 
    168         I_Method0(void, normalize, 
    169                   Properties::VIRTUAL, 
    170                   __void__normalize, 
    171                   "", 
    172                   ""); 
    173         I_Method1(void, setValue, IN, const T &, value, 
    174                   Properties::NON_VIRTUAL, 
    175                   __void__setValue__C5_T_R1, 
    176                   "", 
    177                   ""); 
    178         I_SimpleProperty(const T &, Value,  
    179                          __C5_T_R1__getValue,  
    180                          __void__setValue__C5_T_R1); 
    181 END_REFLECTOR 
    182  
    183 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateTarget< osg::Vec2 >) 
    184         I_DeclaringFile("osgAnimation/Target"); 
    185         I_BaseType(osgAnimation::Target); 
    186         I_Constructor0(____TemplateTarget, 
    187                        "", 
    188                        ""); 
    189         I_Constructor1(IN, const T &, v, 
    190                        Properties::NON_EXPLICIT, 
    191                        ____TemplateTarget__C5_T_R1, 
    192                        "", 
    193                        ""); 
    194         I_Method2(void, update, IN, float, weight, IN, const T &, val, 
    195                   Properties::NON_VIRTUAL, 
    196                   __void__update__float__C5_T_R1, 
    197                   "", 
    198                   ""); 
    199         I_Method0(const T &, getValue, 
    200                   Properties::NON_VIRTUAL, 
    201                   __C5_T_R1__getValue, 
    202                   "", 
    203                   ""); 
    204         I_Method0(void, normalize, 
    205                   Properties::VIRTUAL, 
    206                   __void__normalize, 
    207                   "", 
    208                   ""); 
    209         I_Method1(void, setValue, IN, const T &, value, 
    210                   Properties::NON_VIRTUAL, 
    211                   __void__setValue__C5_T_R1, 
    212                   "", 
    213                   ""); 
    214         I_SimpleProperty(const T &, Value,  
    215                          __C5_T_R1__getValue,  
    216                          __void__setValue__C5_T_R1); 
    217 END_REFLECTOR 
    218  
    219 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateTarget< osg::Vec3 >) 
    220         I_DeclaringFile("osgAnimation/Target"); 
    221         I_BaseType(osgAnimation::Target); 
    222         I_Constructor0(____TemplateTarget, 
    223                        "", 
    224                        ""); 
    225         I_Constructor1(IN, const T &, v, 
    226                        Properties::NON_EXPLICIT, 
    227                        ____TemplateTarget__C5_T_R1, 
    228                        "", 
    229                        ""); 
    230         I_Method2(void, update, IN, float, weight, IN, const T &, val, 
    231                   Properties::NON_VIRTUAL, 
    232                   __void__update__float__C5_T_R1, 
    233                   "", 
    234                   ""); 
    235         I_Method0(const T &, getValue, 
    236                   Properties::NON_VIRTUAL, 
    237                   __C5_T_R1__getValue, 
    238                   "", 
    239                   ""); 
    240         I_Method0(void, normalize, 
    241                   Properties::VIRTUAL, 
    242                   __void__normalize, 
    243                   "", 
    244                   ""); 
    245         I_Method1(void, setValue, IN, const T &, value, 
    246                   Properties::NON_VIRTUAL, 
    247                   __void__setValue__C5_T_R1, 
    248                   "", 
    249                   ""); 
    250         I_SimpleProperty(const T &, Value,  
    251                          __C5_T_R1__getValue,  
    252                          __void__setValue__C5_T_R1); 
    253 END_REFLECTOR 
    254  
    255 BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateTarget< osg::Vec4 >) 
    256         I_DeclaringFile("osgAnimation/Target"); 
    257         I_BaseType(osgAnimation::Target); 
    258         I_Constructor0(____TemplateTarget, 
    259                        "", 
    260                        ""); 
    261         I_Constructor1(IN, const T &, v, 
    262                        Properties::NON_EXPLICIT, 
    263                        ____TemplateTarget__C5_T_R1, 
    264                        "", 
    265                        ""); 
    266         I_Method2(void, update, IN, float, weight, IN, const T &, val, 
    267                   Properties::NON_VIRTUAL, 
    268                   __void__update__float__C5_T_R1, 
    269                   "", 
    270                   ""); 
    271         I_Method0(const T &, getValue, 
    272                   Properties::NON_VIRTUAL, 
    273                   __C5_T_R1__getValue, 
    274                   "", 
    275                   ""); 
    276         I_Method0(void, normalize, 
    277                   Properties::VIRTUAL, 
    278                   __void__normalize, 
    279                   "", 
    280                   ""); 
    281         I_Method1(void, setValue, IN, const T &, value, 
    282                   Properties::NON_VIRTUAL, 
    283                   __void__setValue__C5_T_R1, 
    284                   "", 
    285                   ""); 
    286         I_SimpleProperty(const T &, Value,  
    287                          __C5_T_R1__getValue,  
    288                          __void__setValue__C5_T_R1); 
    289 END_REFLECTOR 
    290  
  • OpenSceneGraph/trunk/src/osgWrappers/osgAnimation/Timeline.cpp

    r9775 r9878  
    1313#include <osg/CopyOp> 
    1414#include <osg/Object> 
    15 #include <osg/State> 
    1615#include <osgAnimation/Animation> 
    1716#include <osgAnimation/Timeline> 
     
    321320END_REFLECTOR 
    322321 
     322BEGIN_ENUM_REFLECTOR(osgAnimation::Timeline::Status) 
     323        I_DeclaringFile("osgAnimation/Timeline"); 
     324        I_EnumLabel(osgAnimation::Timeline::Play); 
     325        I_EnumLabel(osgAnimation::Timeline::Stop); 
     326END_REFLECTOR 
     327 
     328TYPE_NAME_ALIAS(std::pair< unsigned int COMMA  osg::ref_ptr< osgAnimation::Action > >, osgAnimation::Timeline::FrameAction) 
     329 
     330TYPE_NAME_ALIAS(std::vector< osgAnimation::Timeline::FrameAction >, osgAnimation::Timeline::ActionList) 
     331 
     332TYPE_NAME_ALIAS(std::map< int COMMA  osgAnimation::Timeline::ActionList >, osgAnimation::Timeline::ActionLayers) 
     333 
    323334BEGIN_OBJECT_REFLECTOR(osgAnimation::Timeline) 
    324335        I_DeclaringFile("osgAnimation/Timeline"); 
     
    356367                                   "", 
    357368                                   ""); 
    358         I_Method0(osg::State, getStatus, 
    359                   Properties::NON_VIRTUAL, 
    360                   __State__getStatus, 
    361                   "", 
    362                   ""); 
    363         I_Method1(const ActionList &, getActionLayer, IN, int, i, 
     369        I_Method0(osgAnimation::Timeline::Status, getStatus, 
     370                  Properties::NON_VIRTUAL, 
     371                  __Status__getStatus, 
     372                  "", 
     373                  ""); 
     374        I_Method1(const osgAnimation::Timeline::ActionList &, getActionLayer, IN, int, i, 
    364375                  Properties::NON_VIRTUAL, 
    365376                  __C5_ActionList_R1__getActionLayer__int, 
     
    449460                           "", 
    450461                           ""); 
    451         I_ProtectedMethod2(void, internalAddAction, IN, int, priority, IN, const FrameAction &, ftl, 
     462        I_ProtectedMethod2(void, internalAddAction, IN, int, priority, IN, const osgAnimation::Timeline::FrameAction &, ftl, 
    452463                           Properties::NON_VIRTUAL, 
    453464                           Properties::NON_CONST, 
     
    464475                         __bool__getEvaluating,  
    465476                         0); 
    466         I_SimpleProperty(osg::State, Status,  
    467                          __State__getStatus,  
     477        I_SimpleProperty(osgAnimation::Timeline::Status, Status,  
     478                         __Status__getStatus,  
     479                         0); 
     480END_REFLECTOR 
     481 
     482BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Action >) 
     483        I_DeclaringFile("osg/ref_ptr"); 
     484        I_Constructor0(____ref_ptr, 
     485                       "", 
     486                       ""); 
     487        I_Constructor1(IN, osgAnimation::Action *, ptr, 
     488                       Properties::NON_EXPLICIT, 
     489                       ____ref_ptr__T_P1, 
     490                       "", 
     491                       ""); 
     492        I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Action > &, rp, 
     493                       Properties::NON_EXPLICIT, 
     494                       ____ref_ptr__C5_ref_ptr_R1, 
     495                       "", 
     496                       ""); 
     497        I_Method0(osgAnimation::Action *, get, 
     498                  Properties::NON_VIRTUAL, 
     499                  __T_P1__get, 
     500                  "", 
     501                  ""); 
     502        I_Method0(bool, valid, 
     503                  Properties::NON_VIRTUAL, 
     504                  __bool__valid, 
     505                  "", 
     506                  ""); 
     507        I_Method0(osgAnimation::Action *, release, 
     508                  Properties::NON_VIRTUAL, 
     509                  __T_P1__release, 
     510                  "", 
     511                  ""); 
     512        I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Action > &, rp, 
     513                  Properties::NON_VIRTUAL, 
     514                  __void__swap__ref_ptr_R1, 
     515                  "", 
     516                  ""); 
     517        I_SimpleProperty(osgAnimation::Action *, ,  
     518                         __T_P1__get,  
    468519                         0); 
    469520END_REFLECTOR 
     
    509560END_REFLECTOR 
    510561 
     562STD_MAP_REFLECTOR(std::map< int COMMA  osgAnimation::Timeline::ActionList >) 
     563 
    511564STD_MAP_REFLECTOR(std::map< unsigned int COMMA  osg::ref_ptr< osgAnimation::Action::Callback > >) 
    512565 
     566STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA  osg::ref_ptr< osgAnimation::Action > >) 
     567 
     568STD_VECTOR_REFLECTOR(std::vector< osgAnimation::Timeline::FrameAction >) 
     569