Introduced osgViewer::Config base class and beginnigs of various Config implementations.
Introduced osgViewer serializers plugin for serialization support for osgViewer::Config implementations and Keystone
This commit is contained in:
@@ -48,3 +48,4 @@ ADD_SUBDIRECTORY(osgGA)
|
||||
ADD_SUBDIRECTORY(osgTerrain)
|
||||
ADD_SUBDIRECTORY(osgText)
|
||||
ADD_SUBDIRECTORY(osgVolume)
|
||||
ADD_SUBDIRECTORY(osgViewer)
|
||||
|
||||
7
src/osgWrappers/serializers/osgViewer/CMakeLists.txt
Normal file
7
src/osgWrappers/serializers/osgViewer/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
FILE(GLOB TARGET_SRC *.cpp)
|
||||
FILE(GLOB TARGET_H *.h)
|
||||
|
||||
SET(TARGET_ADDED_LIBRARIES osgViewer )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(osgviewer)
|
||||
12
src/osgWrappers/serializers/osgViewer/Config.cpp
Normal file
12
src/osgWrappers/serializers/osgViewer/Config.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <osgViewer/Config>
|
||||
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_Config,
|
||||
new osgViewer::Config,
|
||||
osgViewer::Config,
|
||||
"osg::Object osgViewer::Config" )
|
||||
{
|
||||
}
|
||||
18
src/osgWrappers/serializers/osgViewer/Keystone.cpp
Normal file
18
src/osgWrappers/serializers/osgViewer/Keystone.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <osgViewer/Keystone>
|
||||
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_Keystone,
|
||||
new osgViewer::Keystone,
|
||||
osgViewer::Keystone,
|
||||
"osg::Object osgViewer::Keystone" )
|
||||
{
|
||||
ADD_BOOL_SERIALIZER( KeystoneEditingEnabled, true );
|
||||
ADD_VEC4_SERIALIZER( GridColor, osg::Vec4(1.0,1.0,1.0,1.0) );
|
||||
ADD_VEC2D_SERIALIZER( BottomLeft, osg::Vec2d(0.0,0.0) );
|
||||
ADD_VEC2D_SERIALIZER( BottomRight, osg::Vec2d(0.0,0.0) );
|
||||
ADD_VEC2D_SERIALIZER( TopLeft, osg::Vec2d(0.0,0.0) );
|
||||
ADD_VEC2D_SERIALIZER( TopRight, osg::Vec2d(0.0,0.0) );
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#include <osgViewer/Config>
|
||||
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_ViewAcrossAllScreens,
|
||||
new osgViewer::ViewAcrossAllScreens,
|
||||
osgViewer::ViewAcrossAllScreens,
|
||||
"osg::Object osgViewer::Config osgViewer::ViewAcrossAllScreens" )
|
||||
{
|
||||
}
|
||||
17
src/osgWrappers/serializers/osgViewer/ViewInWindow.cpp
Normal file
17
src/osgWrappers/serializers/osgViewer/ViewInWindow.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <osgViewer/Config>
|
||||
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_ViewInWindow,
|
||||
new osgViewer::ViewInWindow,
|
||||
osgViewer::ViewInWindow,
|
||||
"osg::Object osgViewer::Config osgViewer::ViewInWindow" )
|
||||
{
|
||||
ADD_INT_SERIALIZER( X, 0);
|
||||
ADD_INT_SERIALIZER( Y, 0);
|
||||
ADD_INT_SERIALIZER( Width, -1);
|
||||
ADD_INT_SERIALIZER( Height, -1);
|
||||
ADD_UINT_SERIALIZER( ScreenNum, 0u);
|
||||
}
|
||||
Reference in New Issue
Block a user