From: jean-pierre roux Date: Wed, 3 Feb 2010 16:02:23 +0000 (+0000) Subject: Comment out Update, that causes troubles on Windows (Fred said) X-Git-Tag: CREATOOLS.2-0-3~79 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f4e6ec1cbeb09c4beead113bf121ab14c4cdc9ac;p=bbtk.git Comment out Update, that causes troubles on Windows (Fred said) --- diff --git a/packages/vtk/src/bbvtkMetaImageWriter.xml b/packages/vtk/src/bbvtkMetaImageWriter.xml index 78b0237..1d278aa 100644 --- a/packages/vtk/src/bbvtkMetaImageWriter.xml +++ b/packages/vtk/src/bbvtkMetaImageWriter.xml @@ -10,17 +10,29 @@ vtkImageData.h vtkMetaImageWriter - +
    vtkMetaImageWriter* w = vtkMetaImageWriter::New();
    bbGetInputIn()->Update();
+
+/*
+   if (bbGetInputIn() == 0)
+      std::cout << "======================= Katastrophe : bbGetInputIn() == 0 " << std::endl;
+   else
+      std::cout << "======================= OK : bbGetInputIn() not NULL " << std::endl;
+
+   bbGetInputIn()->PrintSelf(std::cout, vtkIndent(1));
+   bbGetInputIn()->GetSpacing(spacing);
+   std::cout << "=======" << spacing[0] << " " << spacing[1] << " " << spacing[2] << std::endl;
+*/
+
    w->SetInput(bbGetInputIn());
    w->SetCompression(false);  // JPR
-   w->SetFileDimensionality(bbGetInputIn()->GetDataDimension()); //NTU
+   w->SetFileDimensionality(bbGetInputIn()->GetDataDimension()); // NTU
    w->SetFileName(bbGetInputFilename().c_str());
-   w->Update();   
+   w->Update(); // Fred  
    w->Write();
    w->Delete();