ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Core
TestKernel
include
itkPipelineMonitorImageFilter.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 __itkPipelineMonitorImageFilter_h
19
#define __itkPipelineMonitorImageFilter_h
20
21
#include "
itkImageToImageFilter.h
"
22
23
namespace
itk
24
{
25
66
template
<
class
TImageType>
67
class
PipelineMonitorImageFilter
:
68
public
ImageToImageFilter
< TImageType, TImageType>
69
{
70
public
:
71
72
typedef
PipelineMonitorImageFilter
Self
;
73
typedef
ImageToImageFilter<TImageType, TImageType>
Superclass
;
74
typedef
SmartPointer<Self>
Pointer
;
75
typedef
SmartPointer<const Self>
ConstPointer
;
76
77
typedef
typename
TImageType::PointType
PointType
;
78
typedef
typename
TImageType::DirectionType
DirectionType
;
79
typedef
typename
TImageType::SpacingType
SpacingType
;
80
typedef
typename
TImageType::Pointer
InputImagePointer
;
81
typedef
typename
TImageType::ConstPointer
InputImageConstPointer
;
82
typedef
typename
Superclass::InputImageRegionType
ImageRegionType
;
83
84
typedef
std::vector<typename TImageType::RegionType>
RegionVectorType
;
85
87
itkNewMacro(
Self
);
88
90
itkTypeMacro(
PipelineMonitorImageFilter
,
InPlaceImageFilter
);
91
101
itkSetMacro( ClearPipelineOnGenerateOutputInformation,
bool
);
102
itkGetMacro( ClearPipelineOnGenerateOutputInformation,
bool
);
103
itkBooleanMacro( ClearPipelineOnGenerateOutputInformation );
105
106
112
bool
VerifyAllInputCanStream
(
int
expectedNumber);
113
114
118
bool
VerifyAllInputCanNotStream
(
void
);
119
123
bool
VerifyAllNoUpdate
(
void
);
124
125
bool
VerifyDownStreamFilterExecutedPropagation
(
void
);
126
136
bool
VerifyInputFilterExecutedStreaming
(
int
expectedNumber);
137
142
bool
VerifyInputFilterMatchedUpdateOutputInformation
(
void
);
143
145
bool
VerifyInputFilterBufferedRequestedRegions
(
void
);
146
147
bool
VerifyInputFilterMatchedRequestedRegions
(
void
);
148
149
bool
VerifyInputFilterRequestedLargestRegion
(
void
);
150
151
152
unsigned
int
GetNumberOfUpdates
(
void
)
const
{
return
m_NumberOfUpdates
; }
153
RegionVectorType
GetOutputRequestedRegions
(
void
)
const
{
return
m_OutputRequestedRegions
;}
154
RegionVectorType
GetInputRequestedRegions
(
void
)
const
{
return
m_InputRequestedRegions
;}
155
RegionVectorType
GetUpdatedBufferedRegions
(
void
)
const
{
return
m_UpdatedBufferedRegions
; }
156
RegionVectorType
GetUpdatedRequestedRegions
(
void
)
const
{
return
m_UpdatedRequestedRegions
; }
157
158
161
void
ClearPipelineSavedInformation
(
void
);
162
163
167
virtual
void
GenerateOutputInformation
(
void
);
168
virtual
void
PropagateRequestedRegion
(
DataObject
*output);
169
virtual
void
EnlargeOutputRequestedRegion
(
DataObject
*output);
170
virtual
void
GenerateInputRequestedRegion
(
void
);
171
virtual
void
GenerateData
(
void
);
173
174
protected
:
175
176
PipelineMonitorImageFilter
(
void
);
177
178
// ~PipelineMonitorImageFilter() { } default implementation OK
179
180
void
PrintSelf
(std::ostream &os,
Indent
indent)
const
;
181
private
:
182
183
PipelineMonitorImageFilter
(
const
PipelineMonitorImageFilter
&);
// not implemented
184
void
operator=
(
const
PipelineMonitorImageFilter
&);
// not implemented
185
186
bool
m_ClearPipelineOnGenerateOutputInformation
;
187
188
unsigned
int
m_NumberOfUpdates
;
189
190
unsigned
int
m_NumberOfClearPipeline
;
191
192
RegionVectorType
m_OutputRequestedRegions
;
193
RegionVectorType
m_InputRequestedRegions
;
194
RegionVectorType
m_UpdatedBufferedRegions
;
195
RegionVectorType
m_UpdatedRequestedRegions
;
196
197
PointType
m_UpdatedOutputOrigin
;
198
DirectionType
m_UpdatedOutputDirection
;
199
SpacingType
m_UpdatedOutputSpacing
;
200
ImageRegionType
m_UpdatedOutputLargestPossibleRegion
;
201
};
202
203
}
// end namespace itk
204
205
#ifndef ITK_MANUAL_INSTANTIATION
206
#include "itkPipelineMonitorImageFilter.hxx"
207
#endif
208
209
#endif //__itkPipelineMonitorImageFilter_hxx
210
Generated on Tue Jul 10 2012 23:40:01 for ITK by
1.8.1