ITK  4.8.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 >
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;
54  typedef typename InputImageType::SizeType InputSizeType;
55  typedef typename InputImageType::PixelType InputPixelType;
56  typedef typename InputImageType::IndexType InputIndexType;
57 
60  vtkSmartPointer< vtkImageData > GetOutput() const;
61 
64  void SetInput(const InputImageType *);
65 
67  void Update();
68 
69 protected:
71  virtual ~ImageToRGBVTKImageFilter();
72 
73 private:
74  ImageToRGBVTKImageFilter(const Self &); //purposely not implemented
75  void operator=(const Self &); //purposely not implemented
76 
78  vtkSmartPointer< vtkImageData > m_Output;
79 };
80 } // end namespace itk
81 
82 #ifndef ITK_MANUAL_INSTANTIATION
83 #include "itkImageToRGBVTKImageFilter.hxx"
84 #endif
85 
86 #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...
void SetInput(const InputImageType *)
InputImageType::PixelType InputPixelType
SmartPointer< const Self > ConstPointer
void operator=(const Self &)
vtkSmartPointer< vtkImageData > GetOutput() const
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
InputImageType::IndexType InputIndexType
InputImageType::ConstPointer InputImagePointer
Converts an ITK image into a VTK image.
vtkSmartPointer< vtkImageData > m_Output