[Insight-developers] Cable: Example for itkImage wrapped was added

Luis Ibanez ibanez@choroid.cs.unc.edu
Sun, 28 Oct 2001 20:24:37 -0500 (EST)


Hi,


An example of Tcl wrapping for the image class
has been checked in under

    Insight/Examples/TclWrappedImage

In an analogous way to TclWrappedSTLString, it only
has two files: CMakeLists.txt and itkImage.tcl.in


Cable is working great in generating the code.

The itkImage.tcl shows some of the typical image
manipulations: Set/Get regions, Allocate,
                Set/Get Spacing ... etc.

So far, the only extrange thing to note is that when
building the example, "make" has to be called several
times ( seven in this case ), the intermediate calls
will print errors that change from one make to the other.
the last one is free of messages.  It looks like
make was trying to go too far in the build process
without having some of the intermediate results ready.

It feels just like LaTeX and the need of compile
several times in order to get the indices and references
right.


Once the seven makes done. The itkImage.tcl can be
executed directly ( a chmod 755 is needed first...)
or it can be "sourced" int to tclsh.

Is there a way of setting (chmod 755) in CMake ?

---


It quite strange to be able of modifying parameters in
itk::Image without waiting for minutes of compilation !!!



  Luis