ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkImageToVTKImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkImageToVTKImageFilter_h
19 #define __itkImageToVTKImageFilter_h
20 
21 #include "itkVTKImageExport.h"
22 #include "vtkImageImport.h"
23 #include "vtkImageData.h"
24 
25 namespace itk
26 {
27 
45 template <typename TInputImage >
47 {
48 public:
54 
56  itkNewMacro(Self);
57 
60 
62  typedef TInputImage InputImageType;
63  typedef typename InputImageType::ConstPointer InputImagePointer;
64 
67 
70  vtkImageData * GetOutput() const;
71 
74  void SetInput( const InputImageType * );
77 
81  vtkImageImport * GetImporter() const;
82 
87 
89  void Update();
90 
91 protected:
93  virtual ~ImageToVTKImageFilter();
94 
95 private:
96  ImageToVTKImageFilter(const Self&); //purposely not implemented
97  void operator=(const Self&); //purposely not implemented
98 
100  vtkImageImport * m_Importer;
101 };
102 
103 } // end namespace itk
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkImageToVTKImageFilter.hxx"
107 #endif
108 
109 #endif
Connect the end of an ITK image pipeline to a VTK pipeline.
Light weight base class for most itk classes.
VTKImageExport< InputImageType > ExporterFilterType
void SetInput(const InputImageType *)
InputImageType::ConstPointer InputImagePointer
InputImageType * GetInput()
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
vtkImageData * GetOutput() const
SmartPointer< const Self > ConstPointer
ExporterFilterType * GetExporter() const
ExporterFilterType::Pointer ExporterFilterPointer
Converts an ITK image into a VTK image and plugs a itk data pipeline to a VTK datapipeline.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
void operator=(const Self &)
vtkImageImport * GetImporter() const