]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkImageDilateErode3D.xml
Clean Code vtk8itk5wx3-macos
[bbtk.git] / packages / vtk / src / bbvtkImageDilateErode3D.xml
index 7bb875142093945c0e0a05839400523810c4b5d3..2f7c2e20c7b0f44073681f816d5d486806787ff2 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<blackbox name="ImageDilateErode3D" type="vtkImageAlgorithm">
+<blackbox name="ImageDilateErode3D" type="VTK_ImageAlgorithm">
 
 <author>laurent.guigues at creatis.insa-lyon.fr</author>
 <description><PRE>Dilates one value and erodes another. vtkImageDilateErode3D will dilate one value and erode another. It uses an elliptical foot print, and only erodes/dilates on the boundary of the two values. The filter is restricted to the X, Y, and Z axes for now. It can degenerate to a 2 or 1 dimensional filter by setting the kernel size to 1 for a specific axis. (bbfication of vtkImageDilateErode3D)</PRE></description>
@@ -9,60 +9,23 @@
 <include>vtkImageDilateErode3D.h</include> 
 <include>vtkImageData.h</include> 
 
-<vtkparent>vtkImageDilateErode3D</vtkparent>
+<vtkobject>vtkImageDilateErode3D</vtkobject>
 
-<input 
-  name="In" 
-  type="vtkImageData*" 
-  special="vtk input">
-Input image
-</input>  
-
-<output 
-  name="Out" 
-  type="vtkImageData*" 
-  special="vtk output">
-Output image
-</output>
-
-<input 
-  name="KernelSizeX" 
-  type="int">
-Size of the kernel in direction X
-</input>
-
-<input 
-  name="KernelSizeY" 
-  type="int">
-Size of the kernel in direction Y
-</input>
-
-<input 
-  name="KernelSizeZ" 
-  type="int">
-Size of the kernel in direction Z
-</input>
-
-<input 
-  name="DilateValue" 
-  type="double" 
-  special="vtk parameter">
-The dilation value
-</input>
-
-<input 
-  name="ErodeValue" 
-  type="double" 
-  special="vtk parameter">
-The erosion value
-</input>
+<input name="In"          type="vtkImageData*" special="vtk input"     description="Input image"/>
+<output name="Out"        type="vtkImageData*" special="vtk output"    description="Output image"/>
+<input name="KernelSizeX" type="int"                                   description="Size of the kernel in direction X"/>
+<input name="KernelSizeY" type="int"                                   description="Size of the kernel in direction Y"/>
+<input name="KernelSizeZ" type="int"                                   description="Size of the kernel in direction Z"/>
+<input name="DilateValue" type="double"        special="vtk parameter" description="The dilation value"/>
+<input name="ErodeValue"  type="double"        special="vtk parameter" description="The erosion value"/>
 
 <process>
 <PRE>
-SetKernelSize(bbGetInputKernelSizeX(), 
+bbGetVtkObject()->SetKernelSize(bbGetInputKernelSizeX(), 
               bbGetInputKernelSizeY(), 
               bbGetInputKernelSizeZ());
-Update();
+bbGetVtkObject()->Modified();
+bbGetVtkObject()->Update();
 </PRE>
 </process>