<include>vtkImageData.h</include>
<vtkobject>vtkMetaImageWriter</vtkobject>
-<input name="Filename" type="std::string" nature="file name" description="Name of the file to write"/>
+<input name="Filename" type="std::string" nature="file name" description="Name of the file to write"/>
<input name="In" type="vtkImageData*" description="Input image" />
<process><PRE>
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();
</PRE></process>