X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2Fvv.cxx;h=7f640a52a0579d660b251643a0357c8a7ad42327;hb=0d8fa5142465b40d3796e4347f8411fcbe374d4a;hp=f7b95df3139c056667d8bb622df95263a4f25e05;hpb=acdc20ec4afc95db1db29bf8d885a3b72c9c7ee0;p=clitk.git diff --git a/vv/vv.cxx b/vv/vv.cxx index f7b95df..7f640a5 100644 --- a/vv/vv.cxx +++ b/vv/vv.cxx @@ -30,6 +30,7 @@ #include "clitkIO.h" #include "vvMainWindow.h" +#include "vvReadState.h" #include "vvToolsList.h" #include #include @@ -169,7 +170,10 @@ int main( int argc, char** argv ) vtk_log->AppendOn(); vtkOutputWindow::SetInstance(vtk_log); } else if (current == "--state") { - window.ReadSavedStateFile(argv[i+1]); + //window.ReadSavedStateFile(argv[i+1]); + vvReadState read_state; + read_state.Run(&window, argv[i+1]); + n_image_loaded += read_state.GetNumberOfImages(); i++; }