From 46680be5ebe4dee581f32443f963eed4e4584ce9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 23 Jul 2003 15:12:52 +0000 Subject: [PATCH] Added control of auto option into slideshow3D --- examples/slideshow3D/SlideEventHandler.cpp | 4 ++-- examples/slideshow3D/SlideEventHandler.h | 6 ++++++ examples/slideshow3D/slideshow3D.cpp | 20 +++++++++++++++----- runexamples.bat | 4 ++-- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/examples/slideshow3D/SlideEventHandler.cpp b/examples/slideshow3D/SlideEventHandler.cpp index a8e8619a6..868b7c86e 100644 --- a/examples/slideshow3D/SlideEventHandler.cpp +++ b/examples/slideshow3D/SlideEventHandler.cpp @@ -53,7 +53,7 @@ void SlideEventHandler::set(osg::Node* model) } else { - std::cout<<"Not found presentation "<setAutoSteppingActive(autoSteppingActive); + seh->setTimeDelayBetweenSlides(timeDelayBetweenSlides); // if user request help write it out to cout. if (arguments.read("-h") || arguments.read("--help")) @@ -66,11 +76,11 @@ int main( int argc, char **argv ) // read the scene from the list of file specified commandline args. osg::ref_ptr loadedModel = osgDB::readNodeFiles(arguments); - // if no model loaded create a default presentation. - if (!loadedModel) - { - loadedModel = createDefaultPresentation(); - } +// // if no model loaded create a default presentation. +// if (!loadedModel) +// { +// loadedModel = createDefaultPresentation(); +// } // if no model has been successfully loaded report failure. diff --git a/runexamples.bat b/runexamples.bat index c63e6bbc2..cf24c1e84 100644 --- a/runexamples.bat +++ b/runexamples.bat @@ -4,10 +4,10 @@ osgversion echo osglogo osglogo -echo slideshow3D introduction.xml +echo slideshow3D -a introduction.xml slideshow3D introduction.xml -echo slideshow3D models.xml +echo slideshow3D -a models.xml slideshow3D models.xml echo osgviewer cow.osg