root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osg/Sequence.cpp @ 13041

Revision 13041, 1.2 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1#include <osg/Sequence>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( Sequence,
7                         new osg::Sequence,
8                         osg::Sequence,
9                         "osg::Object osg::Node osg::Group osg::Sequence" )
10{
11    ADD_LIST_SERIALIZER( TimeList, std::vector<double> );  // _frameTime
12
13    BEGIN_ENUM_SERIALIZER( LoopMode, LOOP );
14        ADD_ENUM_VALUE( LOOP );
15        ADD_ENUM_VALUE( SWING );
16    END_ENUM_SERIALIZER();  // _loopMode
17
18    ADD_INT_SERIALIZER( Begin, 0 );  // _begin
19    ADD_INT_SERIALIZER( End, -1 );  // _end
20    ADD_FLOAT_SERIALIZER( Speed, 0.0f );  // _speed
21    ADD_INT_SERIALIZER( NumRepeats, -1 );  // _nreps
22    ADD_DOUBLE_SERIALIZER( DefaultTime, 1.0 );  // _defaultTime
23    ADD_DOUBLE_SERIALIZER( LastFrameTime, 0.0 );  // _lastFrameTime
24
25    BEGIN_ENUM_SERIALIZER2( Mode, osg::Sequence::SequenceMode, STOP );
26        ADD_ENUM_VALUE( START );
27        ADD_ENUM_VALUE( STOP );
28        ADD_ENUM_VALUE( PAUSE );
29        ADD_ENUM_VALUE( RESUME );
30    END_ENUM_SERIALIZER();  // _mode
31
32    ADD_BOOL_SERIALIZER( Sync, false );  // _sync
33    ADD_BOOL_SERIALIZER( ClearOnStop, false );  // _clearOnStop
34}
Note: See TracBrowser for help on using the browser.