[Insight-developers] TCL Wrapping Examples

Brad King brad.king at kitware.com
Mon, 09 Feb 2004 10:37:23 -0500


Hans J. Johnson wrote:
> Hello Wrappers,
> 
> I'm trying to find a bug in my wrapping code, and the examples are
> confusing me.
> 
> ./Filtering/GradientAnisotropicDiffusionImageFilter.tcl
> set reader [ itk::create ImageFileReaderUS2 ]
> 
> ./Filtering/MeanImageFilter.tcl 
> set reader [ itkImageFileReaderUS2_New ]
> 
> 
> Which of the above syntax is correct/prefered?  Is there a difference?

The second syntax is the only one that will work.  The first syntax is 
the old CABLE-only syntax.  The second is the CableSWIG-generated syntax.

I'll look through the examples and remove those using the old syntax.

-Brad