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

@@ -10,7 +10,6 @@ SET(LIB_NAME osgViewer)
SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
SET(TARGET_H
${HEADER_PATH}/CompositeViewer
${HEADER_PATH}/Config
${HEADER_PATH}/Export
${HEADER_PATH}/GraphicsWindow
${HEADER_PATH}/Keystone
@@ -28,7 +27,6 @@ FILE(GLOB LIB_COMMON_FILES config/*.cpp)
SET(LIB_COMMON_FILES
${LIB_COMMON_FILES}
CompositeViewer.cpp
Config.cpp
GraphicsWindow.cpp
HelpHandler.cpp
Keystone.cpp

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -26,7 +26,6 @@
#include <osgViewer/Viewer>
#include <osgViewer/Renderer>
#include <osgViewer/CompositeViewer>
#include <osgViewer/Config>
#include <sstream>
#include <string.h>
@@ -301,11 +300,10 @@ bool Viewer::readConfiguration(const std::string& filename)
return false;
}
Config* config = dynamic_cast<Config*>(object.get());
ViewConfig* config = dynamic_cast<ViewConfig*>(object.get());
if (config)
{
OSG_NOTICE<<"Using osgViewer::Config : "<<config->className()<<std::endl;
config->configure(*this);
apply(config);
return true;
}