[Insight-users] ITK VTK TCL Connect

Henkjan Huisman h.huisman at rad.umcn.nl
Tue, 23 Mar 2004 14:49:44 +0100


Hi,

I'm trying to get VTK and ITK connected in a tcl environment.
It is obvious that the following commands are required and they 
they already function well! 

.. vtk input pipeline
vtkImageExport vtkExp
vtkExp SetInput ["vtk input pipeline" GetOutput]
set itkImp [itkVTKImageImportUC3_New]
.. itkpipeline
set itkExp [itkVTKImageExportUC3_New]
vtkImageImport vtkImp
.. vtk pipeline SetInput [vtkImp GetOutput]

I can manually update this connection, but it would be better to have 
a connection using the Callback functions. The problem is that the VTK
objects in Tcl have no Callback functions available as would the C++ 
interface. The ITK objects have their Callback functions available in Tcl, 
due to CableSwig. But what to fill in?

Has somebody tackled this one already?

Henkjan