X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FImageMPR%2FMementoState.cxx;h=cfc9b7ca1849485699a5bd0796842c9cdd2b4283;hb=a02d2e4b730e0a8c7709856c9c47eb7ad19edda0;hp=d55ceae29c1542c4b7cc5ec360acd149d08e83b9;hpb=4c644edb0ddb4adcf7bbecc8fb2316723df15825;p=cpPlugins.git diff --git a/appli/ImageMPR/MementoState.cxx b/appli/ImageMPR/MementoState.cxx index d55ceae..cfc9b7c 100644 --- a/appli/ImageMPR/MementoState.cxx +++ b/appli/ImageMPR/MementoState.cxx @@ -13,7 +13,7 @@ MementoState::MementoState() // ------------------------------------------------------------------------- MementoState::MementoState(long id, TPluginImage* _img) { - char * base = "state"; + char base[] = "state"; std::ostringstream oss; oss << id; std::string str = oss.str(); @@ -33,7 +33,7 @@ MementoState::MementoState(long id, TPluginImage* _img) vtkSmartPointer MementoState::getMemento(long id) { - char * base = "state"; + char base[] = "state"; std::ostringstream oss; oss << id; std::string str = oss.str(); @@ -48,22 +48,27 @@ MementoState::getMemento(long id) // ------------------------------------------------------------------------- void MementoState:: save(const std::string& filename, const std::string& filenameRaw, TPluginImage* img) { + /* TODO vtkSmartPointer writer = vtkSmartPointer::New(); writer->SetInputData(img->GetVTK< vtkImageData >()); writer->SetFileName(filename.c_str()); writer->SetRAWFileName(filenameRaw.c_str()); writer->Write(); + */ } // ------------------------------------------------------------------------- vtkSmartPointer MementoState::load(const std::string& filename) { + /* TODO vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); reader->Update(); return reader; + */ +return( NULL ); } // eof - $RCSfile$