ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVTKImageToImageFilter.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 
19 #ifndef itkVTKImageToImageFilter_h
20 #define itkVTKImageToImageFilter_h
21 
22 #include "itkVTKImageImport.h"
23 #include "vtkImageExport.h"
24 #include "vtkImageData.h"
25 #include "vtkSmartPointer.h"
26 
27 #ifndef vtkFloatingPointType
28 #define vtkFloatingPointType float
29 #endif
30 
31 namespace itk
32 {
33 
46 template <typename TOutputImage >
47 class ITK_TEMPLATE_EXPORT VTKImageToImageFilter : public VTKImageImport< TOutputImage >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(VTKImageToImageFilter);
51 
57 
59  itkNewMacro(Self);
60 
63 
65  using OutputImageType = TOutputImage;
66  using OutputImagePointer = typename OutputImageType::ConstPointer;
67 
69  void SetInput( vtkImageData * );
70  using Superclass::SetInput;
71 
75  vtkImageExport * GetExporter() const;
76 
81  const Superclass * GetImporter() const;
82 
83 protected:
85  ~VTKImageToImageFilter() override;
86 
87 private:
88  using ImageExportPointer = vtkSmartPointer<vtkImageExport>;
90 
91 };
92 
93 } // end namespace itk
94 
95 #ifndef ITK_MANUAL_INSTANTIATION
96 #include "itkVTKImageToImageFilter.hxx"
97 #endif
98 
99 #endif
typename OutputImageType::Pointer OutputImagePointer
Connect the end of an VTK pipeline to an ITK image pipeline.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
Converts a VTK image into an ITK image and plugs a VTK data pipeline to an ITK datapipeline.
vtkSmartPointer< vtkImageExport > ImageExportPointer
TOutputImage OutputImageType