Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Defines | 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.

Defines

#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)

Define Documentation

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

Definition at line 76 of file vtkITKUtility.h.

#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.

#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.

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

Definition at line 64 of file vtkITKUtility.h.


Function Documentation

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.

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines