ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkStreamingImageFilter.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 __itkStreamingImageFilter_h
19 #define __itkStreamingImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
43 template< class TInputImage, class TOutputImage >
44 class ITK_EXPORT StreamingImageFilter:public ImageToImageFilter< TInputImage, TOutputImage >
45 {
46 public:
52 
54  itkNewMacro(Self);
55 
58 
60  typedef TInputImage InputImageType;
61  typedef typename InputImageType::Pointer InputImagePointer;
62  typedef typename InputImageType::RegionType InputImageRegionType;
63  typedef typename InputImageType::PixelType InputImagePixelType;
64 
65  typedef TOutputImage OutputImageType;
66  typedef typename OutputImageType::Pointer OutputImagePointer;
67  typedef typename OutputImageType::RegionType OutputImageRegionType;
68  typedef typename OutputImageType::PixelType OutputImagePixelType;
70 
72  itkStaticConstMacro(InputImageDimension, unsigned int,
73  InputImageType::ImageDimension);
74  itkStaticConstMacro(OutputImageDimension, unsigned int,
75  OutputImageType::ImageDimension);
77 
81 
84  itkSetMacro(NumberOfStreamDivisions, unsigned int);
85 
88  itkGetConstReferenceMacro(NumberOfStreamDivisions, unsigned int);
89 
91  itkSetObjectMacro(RegionSplitter, SplitterType);
92  itkGetModifiableObjectMacro(RegionSplitter, SplitterType);
94 
100  virtual void UpdateOutputData(DataObject *output);
101 
106  virtual void PropagateRequestedRegion(DataObject *output);
107 
108 #ifdef ITK_USE_CONCEPT_CHECKING
109 
110  itkConceptMacro( SameDimensionCheck,
112  itkConceptMacro( InputConvertibleToOutputCheck,
114 
116 #endif
117 
118 protected:
121  void PrintSelf(std::ostream & os, Indent indent) const;
122 
123 private:
124  StreamingImageFilter(const StreamingImageFilter &); //purposely not
125  // implemented
126  void operator=(const StreamingImageFilter &); //purposely not
127 
128  // implemented
129 
132 };
133 } // end namespace itk
134 
135 #ifndef ITK_MANUAL_INSTANTIATION
136 #include "itkStreamingImageFilter.hxx"
137 #endif
138 
139 #endif
140