<?xml version="1.0" encoding="iso-8859-1"?>
-<blackbox name="MetaImageWriter">
+<blackbox name="MetaImageWriter" type="VTK_ImageAlgorithm">
<author>laurent.guigues at creatis.insa-lyon.fr</author>
<description><PRE>Writes .mhd / .mhd image formats (bbfication of vtkMetaImageWriter)</PRE></description>
<category>image;read/write</category>
<include>vtkMetaImageWriter.h</include>
-<include>vtkImageData.h</include>
+<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="In" type="vtkImageData*" description="Input image" />
<process><PRE>
vtkMetaImageWriter* w = vtkMetaImageWriter::New();
-std::cout << "a"<<std::endl;
-//vtkImageData* in = vtkImageData::New();
-// in->ShallowCopy(bbGetInputIn());
-bbGetInputIn()->Update();
+ bbGetInputIn()->Update();
w->SetInput(bbGetInputIn());
w->SetCompression(false); // JPR
+ w->SetFileDimensionality(bbGetInputIn()->GetDataDimension()); //NTU
w->SetFileName(bbGetInputFilename().c_str());
-
-bbGetInputIn()->Print(std::cout);
-std::cout << "a '"<< bbGetInputFilename()<<"'"<<std::endl;
- w->Update();
+ w->Update();
w->Write();
-std::cout << "a"<<std::endl;
w->Delete();
-std::cout << "a"<<std::endl;
</PRE></process>
-
</blackbox>