root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osg/AutoTransform.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/AutoTransform>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( AutoTransform,
7                         new osg::AutoTransform,
8                         osg::AutoTransform,
9                         "osg::Object osg::Node osg::Group osg::Transform osg::AutoTransform" )
10{
11    ADD_DOUBLE_SERIALIZER( MinimumScale, 0.0 );  // _minimumScale
12    ADD_DOUBLE_SERIALIZER( MaximumScale, 0.0 );  // _maximumScale
13    ADD_VEC3D_SERIALIZER( Position, osg::Vec3d() );  // _position
14    ADD_VEC3D_SERIALIZER( Scale, osg::Vec3d() );  // _scale
15    ADD_VEC3D_SERIALIZER( PivotPoint, osg::Vec3d() );  // _pivotPoint
16    ADD_FLOAT_SERIALIZER( AutoUpdateEyeMovementTolerance, 0.0f );  // _autoUpdateEyeMovementTolerance
17
18    BEGIN_ENUM_SERIALIZER( AutoRotateMode, NO_ROTATION );
19        ADD_ENUM_VALUE( NO_ROTATION );
20        ADD_ENUM_VALUE( ROTATE_TO_SCREEN );
21        ADD_ENUM_VALUE( ROTATE_TO_CAMERA );
22    END_ENUM_SERIALIZER();  // _autoRotateMode
23
24    ADD_BOOL_SERIALIZER( AutoScaleToScreen, false );  // _autoScaleToScreen
25    ADD_QUAT_SERIALIZER( Rotation, osg::Quat() );  // _rotation
26    ADD_FLOAT_SERIALIZER( AutoScaleTransitionWidthRatio, 0.25f );  // _autoScaleTransitionWidthRatio
27}
Note: See TracBrowser for help on using the browser.