Further steps towards reading coniguration files.

This commit is contained in:
Robert Osfield
2007-09-21 13:30:33 +00:00
parent 609315caa5
commit ece7b57df2
10 changed files with 219 additions and 8 deletions

View File

@@ -32,10 +32,13 @@ class OSGVIEWER_EXPORT CompositeViewer : public osg::Object
CompositeViewer(osg::ArgumentParser& arguments);
META_Object(osg,CompositeViewer);
META_Object(osgViewer,CompositeViewer);
virtual ~CompositeViewer();
/** read the viewer configuration from a configuration file.*/
bool readConfiguration(const std::string& filename);
void addView(osgViewer::View* view);
void removeView(osgViewer::View* view);

View File

@@ -32,8 +32,15 @@ class OSGVIEWER_EXPORT Viewer : public osgViewer::View
Viewer(osg::ArgumentParser& arguments);
Viewer(const osgViewer::Viewer& viewer, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
virtual ~Viewer();
META_Object(osgViewer,Viewer);
/** read the viewer configuration from a configuration file.*/
bool readConfiguration(const std::string& filename);
/** Get whether at least of one of this viewers windows are realized.*/
bool isRealized() const;