ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Bridge
VtkGlue
include
itkImageToVTKImageFilter.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
#ifndef __itkImageToVTKImageFilter_h
19
#define __itkImageToVTKImageFilter_h
20
21
#include "
itkVTKImageExport.h
"
22
#include "vtkImageImport.h"
23
#include "vtkImageData.h"
24
25
namespace
itk
26
{
27
45
template
<
class
TInputImage >
46
class
ITK_EXPORT
ImageToVTKImageFilter
:
public
ProcessObject
47
{
48
public
:
50
typedef
ImageToVTKImageFilter
Self
;
51
typedef
ProcessObject
Superclass
;
52
typedef
SmartPointer<Self>
Pointer
;
53
typedef
SmartPointer<const Self>
ConstPointer
;
54
56
itkNewMacro(
Self
);
57
59
itkTypeMacro(
ImageToVTKImageFilter
,
ProcessObject
);
60
62
typedef
TInputImage
InputImageType
;
63
typedef
typename
InputImageType::ConstPointer
InputImagePointer
;
64
65
typedef
VTKImageExport< InputImageType>
ExporterFilterType
;
66
typedef
typename
ExporterFilterType::Pointer
ExporterFilterPointer
;
67
70
vtkImageData * GetOutput()
const
;
71
73
using
Superclass::SetInput;
74
void
SetInput(
const
InputImageType
* );
75
InputImageType
* GetInput();
77
81
vtkImageImport * GetImporter()
const
;
82
86
ExporterFilterType
* GetExporter()
const
;
87
89
void
Update();
90
91
protected
:
92
ImageToVTKImageFilter
();
93
virtual
~
ImageToVTKImageFilter
();
94
95
private
:
96
ImageToVTKImageFilter
(
const
Self
&);
//purposely not implemented
97
void
operator=(
const
Self
&);
//purposely not implemented
98
99
ExporterFilterPointer
m_Exporter
;
100
vtkImageImport *
m_Importer
;
101
};
102
103
}
// end namespace itk
104
105
#ifndef ITK_MANUAL_INSTANTIATION
106
#include "itkImageToVTKImageFilter.hxx"
107
#endif
108
109
#endif
110
Generated on Mon May 13 2013 00:55:33 for ITK by
1.8.3.1