]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkMetaImageReader.xml
.
[bbtk.git] / packages / vtk / src / bbvtkMetaImageReader.xml
index 7d33af45ce13343b02703c9acfc87010ebc57b6d..e93d4f1528aba4e3e6ef4200d3aee59b334106e7 100644 (file)
@@ -3,23 +3,19 @@
 <blackbox name="MetaImageReader" type="VTK_ImageAlgorithm">
 
 <author>laurent.guigues at creatis.insa-lyon.fr</author>
-<description><PRE>Reads .mhd / .mha image formats (bbfication of vtkMetaImageReader)</PRE></description>
+<description><PRE>Reads .mhd / .mhd image formats (bbfication of vtkMetaImageReader)</PRE></description>
 <category>image;read/write</category>
 
 <include>vtkMetaImageReader.h</include> 
 <include>vtkImageData.h</include> 
 <vtkparent>vtkMetaImageReader</vtkparent>
 
-<input name="In" type="std::string" nature="file name" description="Name of the file to read"/>  
-<output name="Out" type="vtkImageData*" description="Output image" special="vtk output"/>
+<input  name="In"  type="std::string"   nature="file name"   description="Name of the file to read"/>  
+<output name="Out" type="vtkImageData*" special="vtk output" description="Output image" />
  
  <process><PRE>
-   SetFileName(bbGetInputIn().c_str());
-   vtkParent::Update();
-   // We need to disconnect the output image from its source or the 
-   // vtk object will not be deleted as it 
-   // will be referenced by its output image
-   bbGetOutputOut()->SetSource(NULL);                                  
+   mVtkObject->SetFileName(bbGetInputIn().c_str());
+   mVtkObject->Update();
  </PRE></process>
 
 </blackbox>