Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Macros | Functions
vtkITKUtility.h File Reference
#include "vtkObjectFactory.h"
#include "vtkSetGet.h"
Include dependency graph for vtkITKUtility.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DelegateGetMacro(name)   DelegateITKOutputMacro (Get##name)
 
#define DelegateITKInputMacro(name, arg)
 
#define DelegateITKOutputMacro(name)
 
#define DelegateSetMacro(name, arg)   DelegateITKInputMacro(Set##name,arg)
 

Functions

template<typename ITK_Exporter , typename VTK_Importer >
void ConnectPipelines (ITK_Exporter exporter, VTK_Importer *importer)
 
template<typename VTK_Exporter , typename ITK_Importer >
void ConnectPipelines (VTK_Exporter *exporter, ITK_Importer importer)
 

Macro Definition Documentation

◆ DelegateGetMacro

#define DelegateGetMacro (   name)    DelegateITKOutputMacro (Get##name)

Definition at line 76 of file vtkITKUtility.h.

◆ DelegateITKInputMacro

#define DelegateITKInputMacro (   name,
  arg 
)
Value:
if ( 1 ) { \
vtkDebugMacro( << this->GetClassName() << " (" << this << "): setting " #name " to " << #arg ); \
ImageFilterType* tempFilter = dynamic_cast<ImageFilterType*> ( this->m_Filter.GetPointer() ); \
if ( tempFilter ) \
{ \
tempFilter->name ( arg ); \
this->Modified(); \
} \
}

Definition at line 65 of file vtkITKUtility.h.

◆ DelegateITKOutputMacro

#define DelegateITKOutputMacro (   name)
Value:
if ( 1 ) { \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " #name ); \
ImageFilterType* tempFilter = dynamic_cast<ImageFilterType*> ( this->m_Filter.GetPointer() ); \
if ( tempFilter ) \
{ \
return tempFilter->name (); \
} \
else \
{ \
vtkErrorMacro ( << this->GetClassName() << " Error getting " #name " Dynamic cast returned 0" ); \
return 0; \
} \
}

Definition at line 77 of file vtkITKUtility.h.

◆ DelegateSetMacro

#define DelegateSetMacro (   name,
  arg 
)    DelegateITKInputMacro(Set##name,arg)

Definition at line 64 of file vtkITKUtility.h.

Function Documentation

◆ ConnectPipelines() [1/2]

template<typename ITK_Exporter , typename VTK_Importer >
void ConnectPipelines ( ITK_Exporter  exporter,
VTK_Importer *  importer 
)

This function will connect the given itk::VTKImageExport filter to the given vtkImageImport filter.

Definition at line 26 of file vtkITKUtility.h.

◆ ConnectPipelines() [2/2]

template<typename VTK_Exporter , typename ITK_Importer >
void ConnectPipelines ( VTK_Exporter *  exporter,
ITK_Importer  importer 
)

This function will connect the given vtkImageExport filter to the given itk::VTKImageImport filter.

Definition at line 47 of file vtkITKUtility.h.