ITK  4.3.0
Insight Segmentation and Registration Toolkit
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>
68  public ImageToImageFilter< TImageType, TImageType>
69  {
70  public:
71 
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;
83 
84  typedef std::vector<typename TImageType::RegionType> RegionVectorType;
85 
87  itkNewMacro(Self);
88 
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 
126 
136  bool VerifyInputFilterExecutedStreaming(int expectedNumber);
137 
143 
146 
148 
150 
151 
152  unsigned int GetNumberOfUpdates(void) const { return m_NumberOfUpdates; }
157 
158 
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 
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 
187 
188  unsigned int m_NumberOfUpdates;
189 
191 
196 
201  };
202 
203 } // end namespace itk
204 
205 #ifndef ITK_MANUAL_INSTANTIATION
206 #include "itkPipelineMonitorImageFilter.hxx"
207 #endif
208 
209 #endif //__itkPipelineMonitorImageFilter_hxx
210