AW: [vtkusers] converting between itk and vtk

Erbacher, Markus Markus.Erbacher at med.uni-heidelberg.de
Wed Apr 5 08:07:13 EDT 2006


Perhaps, but I had not heard of that file before.

-----Ursprüngliche Nachricht-----
Von: cpbotha at gmail.com [mailto:cpbotha at gmail.com] Im Auftrag von Charl P. Botha
Gesendet: Mittwoch, 5. April 2006 13:57
An: Erbacher, Markus
Cc: Chase Yarbrough; hobbsk at ohiou.edu; vtkusers at vtk.org
Betreff: Re: [vtkusers] converting between itk and vtk


On 4/5/06, Erbacher, Markus <Markus.Erbacher at med.uni-heidelberg.de> wrote:
> I have written a two function to connect pipes from itk and vtk. 
> Perhaps it helps. It works fine for me.

Well, perhaps what you meant to say is that these functions come from InsightApplications/vtkITK/Common/vtkITKUtility.h ? :)

> template <typename ITK_Exporter, typename VTK_Importer> static void 
> ConnectPipelines(ITK_Exporter Exporter, VTK_Importer* Importer) {
> Importer->SetUpdateInformationCallback(Exporter->GetUpdateInformationC
> Importer->allback());
> Importer->SetPipelineModifiedCallback(Exporter->GetPipelineModifiedCallback());
> Importer->SetWholeExtentCallback(Exporter->GetWholeExtentCallback());
> Importer->SetSpacingCallback(Exporter->GetSpacingCallback());
> Importer->SetOriginCallback(Exporter->GetOriginCallback());
> Importer->SetScalarTypeCallback(Exporter->GetScalarTypeCallback());
> Importer->SetNumberOfComponentsCallback(Exporter->GetNumberOfComponentsCallback());
> Importer->SetPropagateUpdateExtentCallback(Exporter->GetPropagateUpdateExtentCallback());
> Importer->SetUpdateDataCallback(Exporter->GetUpdateDataCallback());
> Importer->SetDataExtentCallback(Exporter->GetDataExtentCallback());
> Importer->SetBufferPointerCallback(Exporter->GetBufferPointerCallback());
> Importer->SetCallbackUserData(Exporter->GetCallbackUserData());
> }
>
> template <typename VTK_Exporter, typename ITK_Importer> static void 
> ConnectPipelines(VTK_Exporter* Exporter, ITK_Importer Importer) {
> Importer->SetUpdateInformationCallback(Exporter->GetUpdateInformationC
> Importer->allback());
> Importer->SetPipelineModifiedCallback(Exporter->GetPipelineModifiedCallback());
> Importer->SetWholeExtentCallback(Exporter->GetWholeExtentCallback());
> Importer->SetSpacingCallback(Exporter->GetSpacingCallback());
> Importer->SetOriginCallback(Exporter->GetOriginCallback());
> Importer->SetScalarTypeCallback(Exporter->GetScalarTypeCallback());
> Importer->SetNumberOfComponentsCallback(Exporter->GetNumberOfComponentsCallback());
> Importer->SetPropagateUpdateExtentCallback(Exporter->GetPropagateUpdateExtentCallback());
> Importer->SetUpdateDataCallback(Exporter->GetUpdateDataCallback());
> Importer->SetDataExtentCallback(Exporter->GetDataExtentCallback());
> Importer->SetBufferPointerCallback(Exporter->GetBufferPointerCallback());
> Importer->SetCallbackUserData(Exporter->GetCallbackUserData());
> }



More information about the vtkusers mailing list