X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2Fvv.cxx;h=7f640a52a0579d660b251643a0357c8a7ad42327;hb=0d8fa5142465b40d3796e4347f8411fcbe374d4a;hp=301521b4662a8509197d81174b348964b4e5e140;hpb=e1098dccba022441144bfc1c44a2b58db7dde34e;p=clitk.git diff --git a/vv/vv.cxx b/vv/vv.cxx index 301521b..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 @@ -168,7 +169,14 @@ int main( int argc, char** argv ) vtk_log->FlushOn(); vtk_log->AppendOn(); vtkOutputWindow::SetInstance(vtk_log); + } else if (current == "--state") { + //window.ReadSavedStateFile(argv[i+1]); + vvReadState read_state; + read_state.Run(&window, argv[i+1]); + n_image_loaded += read_state.GetNumberOfImages(); + i++; } + } else if (parse_mode == P_SEQUENCE) { sequence_filenames.push_back(current); } else if (parse_mode == P_WINDOW) {