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 >
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);
118 std::vector<double> w;
119 for (
double i = 0; i < 10; i++) {
132 void operator=(
const Self&);
135 vtkSmartPointer<vtkImageImport> m_Importer;
136 std::vector<double> m_vtest;
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkImageToVTKImageFilter.txx"
Converts an ITK image into a VTK image and plugs a itk data pipeline to a VTK datapipeline.
Definition: itkImageToVTKImageFilter.h:58
VTKImageExport< InputImageType > ExporterFilterType
Definition: itkImageToVTKImageFilter.h:75
SmartPointer< const Self > ConstPointer
Definition: itkImageToVTKImageFilter.h:64
ExporterFilterType * GetExporter() const
Return the internal ITK image exporter filter.
itkTypeMacro(ImageToVTKImageFilter, ProcessObject)
Run-time type information (and related methods).
InputImageType::ConstPointer InputImagePointer
Definition: itkImageToVTKImageFilter.h:74
SmartPointer< Self > Pointer
Definition: itkImageToVTKImageFilter.h:63
int testsize()
Definition: itkImageToVTKImageFilter.h:102
TInputImage InputImageType
Some typedefs.
Definition: itkImageToVTKImageFilter.h:73
vtkSmartPointer< vtkImageImport > GetImporter() const
Return the internal VTK image importer filter.
ExporterFilterType::Pointer ExporterFilterPointer
Definition: itkImageToVTKImageFilter.h:76
void SetInput(const InputImageType *)
Set the input in the form of an itk::Image.
ProcessObject Superclass
Definition: itkImageToVTKImageFilter.h:62
std::vector< double > tralala()
Definition: itkImageToVTKImageFilter.h:117
ImageToVTKImageFilter Self
Standard class typedefs.
Definition: itkImageToVTKImageFilter.h:61
itkNewMacro(Self)
Method for creation through the object factory.
const std::vector< double > & getvtest() const
Definition: itkImageToVTKImageFilter.h:98
std::vector< double > addvector(const std::vector< double > &v)
Definition: itkImageToVTKImageFilter.h:106
const std::vector< double > & addtest(double toto)
Definition: itkImageToVTKImageFilter.h:113
virtual ~ImageToVTKImageFilter()
void Update()
This call delegate the update to the importer.
vtkSmartPointer< vtkImageData > GetOutput() const
Get the output in the form of a vtkImage.
Definition: itkImageToVTKImageFilter.h:39