ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVTKImageToImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
31namespace itk
32{
33
50template <typename TOutputImage>
51class ITK_TEMPLATE_EXPORT VTKImageToImageFilter : public VTKImageImport<TOutputImage>
52{
53public:
54 ITK_DISALLOW_COPY_AND_MOVE(VTKImageToImageFilter);
55
61
63 itkNewMacro(Self);
64
66 itkOverrideGetNameOfClassMacro(VTKImageToImageFilter);
67
69 using OutputImageType = TOutputImage;
70 using OutputImagePointer = typename OutputImageType::ConstPointer;
71
73 void
74 SetInput(vtkImageData *);
76
81 vtkImageExport *
82 GetExporter() const;
83
88 const Superclass *
89 GetImporter() const;
90
91protected:
94
95private:
96 using ImageExportPointer = vtkSmartPointer<vtkImageExport>;
98};
99
100} // end namespace itk
101
102#ifndef ITK_MANUAL_INSTANTIATION
103# include "itkVTKImageToImageFilter.hxx"
104#endif
105
106#endif
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
VTKImageImport< TOutputImage > Superclass
vtkSmartPointer< vtkImageExport > ImageExportPointer
typename OutputImageType::ConstPointer OutputImagePointer
const Superclass * GetImporter() const
void SetInput(vtkImageData *)
vtkImageExport * GetExporter() const
SmartPointer< const Self > ConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....