Show
Ignore:
Timestamp:
08/25/08 11:53:24 (6 years ago)
Author:
robert
Message:

Added command line arguments to Viewer constructor, and added meaningful error message when no 3d image is provided

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp

    r8780 r8784  
    14961496 
    14971497    // construct the viewer. 
    1498     osgViewer::Viewer viewer; 
     1498    osgViewer::Viewer viewer(arguments); 
    14991499 
    15001500    // if user request help write it out to cout. 
     
    16211621    } 
    16221622     
    1623     if (!image_3d) return 0; 
     1623    if (!image_3d)  
     1624    { 
     1625        std::cout<<"No model loaded, please specify and volumetric image file on the command line."<<std::endl; 
     1626        return 1; 
     1627    } 
    16241628     
    16251629    if (colourSpaceOperation!=NO_COLOUR_SPACE_OPERATION)