ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkImageToRGBVTKImageFilter.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 itkImageToRGBVTKImageFilter_h
20 #define itkImageToRGBVTKImageFilter_h
21 
22 #include "itkProcessObject.h"
23 #include "vtkSmartPointer.h"
24 #include "vtkImageData.h"
25 
26 namespace itk
27 {
33 template< typename TInputImage >
34 class ITK_TEMPLATE_EXPORT ImageToRGBVTKImageFilter:public ProcessObject
35 {
36 public:
42 
44  itkNewMacro(Self);
45 
48 
50  typedef TInputImage InputImageType;
51  typedef typename InputImageType::ConstPointer InputImagePointer;
52  typedef typename InputImageType::RegionType InputRegionType;
53  typedef typename InputImageType::SpacingType InputSpacingType;
55  typedef typename InputImageType::PixelType InputPixelType;
57 
60  vtkSmartPointer< vtkImageData > GetOutput() const;
61 
63  using Superclass::SetInput;
64  void SetInput(const InputImageType *);
65 
67  void Update();
68 
69 protected:
71  virtual ~ImageToRGBVTKImageFilter();
72 
73 private:
74  ITK_DISALLOW_COPY_AND_ASSIGN(ImageToRGBVTKImageFilter);
75 
77  vtkSmartPointer< vtkImageData > m_Output;
78 };
79 } // end namespace itk
80 
81 #ifndef ITK_MANUAL_INSTANTIATION
82 #include "itkImageToRGBVTKImageFilter.hxx"
83 #endif
84 
85 #endif
InputImageType::SpacingType InputSpacingType
Light weight base class for most itk classes.
InputImageType::RegionType InputRegionType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
InputImageType::PixelType InputPixelType
SmartPointer< const Self > ConstPointer
InputImageType::IndexType InputIndexType
InputImageType::ConstPointer InputImagePointer
Converts an ITK image into a VTK image.
vtkSmartPointer< vtkImageData > m_Output