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

Revision 13041, 0.8 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1#include <osg/CameraView>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( CameraView,
7                         new osg::CameraView,
8                         osg::CameraView,
9                         "osg::Object osg::Node osg::Group osg::Transform osg::CameraView" )
10{
11    ADD_VEC3D_SERIALIZER( Position, osg::Vec3d() );  // _position
12    ADD_QUAT_SERIALIZER( Attitude, osg::Quat() );  // _attitude
13    ADD_DOUBLE_SERIALIZER( FieldOfView, 60.0 );  // _fieldOfView
14
15    BEGIN_ENUM_SERIALIZER( FieldOfViewMode, VERTICAL );
16        ADD_ENUM_VALUE( UNCONSTRAINED );
17        ADD_ENUM_VALUE( HORIZONTAL );
18        ADD_ENUM_VALUE( VERTICAL );
19    END_ENUM_SERIALIZER();  // _fieldOfViewMode
20
21    ADD_DOUBLE_SERIALIZER( FocalLength, 0.0 );  // _focalLength
22}
Note: See TracBrowser for help on using the browser.