25 #ifndef __itkImageToVTKImageFilter_h
26 #define __itkImageToVTKImageFilter_h
29 #include <itkVTKImageExport.h>
32 #include <vtkImageImport.h>
33 #include <vtkImageData.h>
34 #include <vtkSmartPointer.h>
57 template <
class TInputImage >
62 typedef ProcessObject Superclass;
63 typedef SmartPointer<Self> Pointer;
64 typedef SmartPointer<const Self> ConstPointer;
73 typedef TInputImage InputImageType;
74 typedef typename InputImageType::ConstPointer InputImagePointer;
75 typedef VTKImageExport< InputImageType> ExporterFilterType;
76 typedef typename ExporterFilterType::Pointer ExporterFilterPointer;
80 vtkSmartPointer<vtkImageData> GetOutput()
const;
88 vtkSmartPointer<vtkImageImport> GetImporter()
const;
98 const std::vector<double>& getvtest()
const {
103 return m_vtest.size();
106 std::vector<double> addvector(
const std::vector<double>& v) {
107 for (
unsigned int i = 0; i < v.size(); i++) {
108 m_vtest.push_back(v[i]);
113 const std::vector<double>& addtest(
double toto) {
114 m_vtest.push_back(toto);
117 std::vector<double> tralala() {
118 std::vector<double> w;
119 for (
double i = 0; i < 10; i++) {
132 void operator=(
const Self&);
134 ExporterFilterPointer m_Exporter;
135 vtkSmartPointer<vtkImageImport> m_Importer;
136 std::vector<double> m_vtest;
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkImageToVTKImageFilter.txx"