ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkImageToVTKImageFilter.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#ifndef itkImageToVTKImageFilter_h
19#define itkImageToVTKImageFilter_h
20
21#include "itkVTKImageExport.h"
22#include "vtkImageImport.h"
23#include "vtkImageData.h"
24
25namespace itk
26{
27
46template <typename TInputImage>
47class ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(ImageToVTKImageFilter);
51
57
59 itkNewMacro(Self);
60
62 itkOverrideGetNameOfClassMacro(ImageToVTKImageFilter);
63
65 using InputImageType = TInputImage;
66 using InputImagePointer = typename InputImageType::ConstPointer;
67
70
75 vtkImageData *
76 GetOutput() const;
77
80 void
84
89 vtkImageImport *
90 GetImporter() const;
91
97 GetExporter() const;
98
100 void
101 Update() override;
102
104 void
106
107protected:
110
111private:
113 vtkImageImport * m_Importer{};
114};
115
116} // end namespace itk
117
118#ifndef ITK_MANUAL_INSTANTIATION
119# include "itkImageToVTKImageFilter.hxx"
120#endif
121
122#endif
InputImageType * GetInput()
void UpdateLargestPossibleRegion() override
typename ExporterFilterType::Pointer ExporterFilterPointer
SmartPointer< const Self > ConstPointer
vtkImageImport * GetImporter() const
void SetInput(const InputImageType *)
VTKImageExport< InputImageType > ExporterFilterType
vtkImageData * GetOutput() const
typename InputImageType::ConstPointer InputImagePointer
ExporterFilterType * GetExporter() const
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
Connect the end of an ITK image pipeline to a VTK pipeline.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....