Renamed osgViewer::Config osgViewer::ViewConfig and moved it's declaration into include/osgViewer.

This commit is contained in:
Robert Osfield
2013-05-16 10:11:06 +00:00
parent e3ed763c15
commit 3b6c2b636a
19 changed files with 113 additions and 3892 deletions

View File

@@ -1,12 +1,12 @@
#include <osgViewer/Config>
#include <osgViewer/View>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER( osgViewer_Config,
new osgViewer::Config,
osgViewer::Config,
"osg::Object osgViewer::Config" )
REGISTER_OBJECT_WRAPPER( osgViewer_ViewConfig,
new osgViewer::ViewConfig,
osgViewer::ViewConfig,
"osg::Object osgViewer::ViewConfig" )
{
}

View File

@@ -7,7 +7,7 @@
REGISTER_OBJECT_WRAPPER( osgViewer_PanoramicSphericalDisplay,
new osgViewer::PanoramicSphericalDisplay,
osgViewer::PanoramicSphericalDisplay,
"osg::Object osgViewer::Config osgViewer::PanoramicSphericalDisplay" )
"osg::Object osgViewer::ViewConfig osgViewer::PanoramicSphericalDisplay" )
{
ADD_DOUBLE_SERIALIZER(Radius, 1.0);
ADD_DOUBLE_SERIALIZER(Collar, 0.45);

View File

@@ -7,7 +7,7 @@
REGISTER_OBJECT_WRAPPER( osgViewer_SingleScreen,
new osgViewer::SingleScreen,
osgViewer::SingleScreen,
"osg::Object osgViewer::Config osgViewer::SingleScreen" )
"osg::Object osgViewer::ViewConfig osgViewer::SingleScreen" )
{
ADD_UINT_SERIALIZER( ScreenNum, 0u);
}

View File

@@ -7,7 +7,7 @@
REGISTER_OBJECT_WRAPPER( osgViewer_SingleWindow,
new osgViewer::SingleWindow,
osgViewer::SingleWindow,
"osg::Object osgViewer::Config osgViewer::SingleWindow" )
"osg::Object osgViewer::ViewConfig osgViewer::SingleWindow" )
{
ADD_INT_SERIALIZER( X, 0);
ADD_INT_SERIALIZER( Y, 0);

View File

@@ -7,7 +7,7 @@
REGISTER_OBJECT_WRAPPER( osgViewer_SphericalDisplay,
new osgViewer::SphericalDisplay,
osgViewer::SphericalDisplay,
"osg::Object osgViewer::Config osgViewer::SphericalDisplay" )
"osg::Object osgViewer::ViewConfig osgViewer::SphericalDisplay" )
{
ADD_DOUBLE_SERIALIZER(Radius, 1.0);
ADD_DOUBLE_SERIALIZER(Collar, 0.45);

View File

@@ -7,16 +7,17 @@
REGISTER_OBJECT_WRAPPER( osgViewer_WoWVxDisplay,
new osgViewer::WoWVxDisplay,
osgViewer::WoWVxDisplay,
"osg::Object osgViewer::Config osgViewer::WoWVxDisplay" )
"osg::Object osgViewer::ViewConfig osgViewer::WoWVxDisplay" )
{
ADD_UINT_SERIALIZER(ScreenNum, 0u);
ADD_UCHAR_SERIALIZER(Content, 0);
ADD_UCHAR_SERIALIZER(Factor, 0);
ADD_UCHAR_SERIALIZER(Offset, 0);
ADD_FLOAT_SERIALIZER(DisparityZD, 0);
ADD_FLOAT_SERIALIZER(DisparityVZ, 0);
ADD_FLOAT_SERIALIZER(DisparityM, 0);
ADD_FLOAT_SERIALIZER(DisparityC, 0);
#if 0
ADD_UCHAR_SERIALIZER(Content, 0x02);
ADD_UCHAR_SERIALIZER(Factor, 0x40);
ADD_UCHAR_SERIALIZER(Offset, 0x80);
#endif
ADD_FLOAT_SERIALIZER(DisparityZD, 0.459813f);
ADD_FLOAT_SERIALIZER(DisparityVZ, 6.180772f);
ADD_FLOAT_SERIALIZER(DisparityM, -1586.34f);
ADD_FLOAT_SERIALIZER(DisparityC, 127.5f);
}