Skip to content
Snippets Groups Projects
Commit 3411dce4 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Ajout de l'option --Test sur l'appli ViewerManager. Correction du test...

Ajout de l'option --Test sur l'appli ViewerManager. Correction du test associé: suppression du code source dupliqué et include du fichier .cxx de l'appli origin.
Ouverture d'une image et sortie.
parent 2bbe774b
Branches
Tags
No related merge requests found
......@@ -25,13 +25,23 @@ int main(int argc, char* argv[])
typedef otb::ImageViewerManager<PixelType> ManagerType;
ManagerType::Pointer manager = ManagerType::New();
manager->Show();
std::string strTest("--Test");
bool bFlRun(true);
for(int i = 1; i<argc;++i)
{
manager->OpenImage(argv[i]);
Fl::check();
if( strTest.compare(argv[i])==0 )
{
std::cout << "--Test option. No FL::run() call !" << std::endl;
bFlRun=false;
}
else
{
manager->OpenImage(argv[i]);
Fl::check();
}
}
return Fl::run();
if( bFlRun==true) return Fl::run();
}
catch( itk::ExceptionObject & err )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment