[Insight-users] ITK VTK TCL Connect

Charl P. Botha c.p.botha at ewi.tudelft.nl
Tue, 23 Mar 2004 17:15:15 +0100


Henkjan Huisman wrote:
> 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?

Yes, we've tackled it. :) Please see the ConnectVTKITK directory in 
InsightApplications.

Met vriendelijk groet,
Charl

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/