Added support for intensityMap and fix naming of --panoramic-sd and --3d-sd command line arguments

This commit is contained in:
Robert Osfield
2007-09-25 19:14:29 +00:00
parent 501b3241c6
commit d743eb2d95
2 changed files with 325 additions and 10 deletions

View File

@@ -77,7 +77,7 @@ Viewer::Viewer(osg::ArgumentParser& arguments)
while (arguments.read("--window",x,y,width,height)) {}
bool ss3d = false;
if ((ss3d=arguments.read("--3d-ss")) || arguments.read("--panoramic-ss"))
if ((ss3d=arguments.read("--3d-sd")) || arguments.read("--panoramic-sd"))
{
double radius = 1.0;
while (arguments.read("--radius",radius)) {}
@@ -94,10 +94,12 @@ Viewer::Viewer(osg::ArgumentParser& arguments)
if (ss3d)
{
setThreadingModel(SingleThreaded);
setUpViewFor3DSphericalDisplay(radius, collar, screenNum, intensityMap.get());
}
else
{
setThreadingModel(SingleThreaded);
setUpViewForPanoramicSphericalDisplay(radius, collar, screenNum, intensityMap.get());
}
}