ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkTemporalProcessObject.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 itkTemporalProcessObject_h
19 #define itkTemporalProcessObject_h
20 
21 #include "itkProcessObject.h"
22 #include "itkTemporalRegion.h"
23 #include "ITKVideoCoreExport.h"
24 
25 namespace itk
26 {
27 
28 // Forward reference because of circular dependencies
29 class ITK_FORWARD_EXPORT TemporalDataObject;
30 
65 class ITKVideoCore_EXPORT TemporalProcessObject : public ProcessObject
66 {
67 public:
68 
69  /*-TYPEDEFS----------------------------------------------------------------*/
70 
76 
78  itkTypeMacro(TemporalProcessObject, ProcessObject);
79 
80  /*-PUBLIC METHODS----------------------------------------------------------*/
81 
84  virtual void EnlargeOutputRequestedRegion(DataObject* output) ITK_OVERRIDE;
85 
86  virtual void GenerateOutputRequestedRegion(DataObject* output) ITK_OVERRIDE;
87 
88  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
89 
93  itkGetMacro(UnitInputNumberOfFrames, SizeValueType);
94 
98  itkGetMacro(UnitOutputNumberOfFrames, SizeValueType);
99 
105  virtual void UpdateOutputInformation() ITK_OVERRIDE;
106 
118  virtual void UpdateOutputData(DataObject* output) ITK_OVERRIDE;
119 
130  virtual void GenerateData() ITK_OVERRIDE;
131 
138  virtual void TemporalStreamingGenerateData();
139 
140 protected:
141 
142  /*-PROTECTED METHODS-------------------------------------------------------*/
143 
146 
148  virtual ~TemporalProcessObject() ITK_OVERRIDE {}
149 
151  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
152 
157  virtual void EnlargeOutputRequestedTemporalRegion(TemporalDataObject* output);
158 
166  virtual void GenerateOutputRequestedTemporalRegion(TemporalDataObject* output);
167 
179  virtual void GenerateInputRequestedTemporalRegion();
180 
189  virtual std::vector<TemporalRegion> SplitRequestedTemporalRegion();
190 
196  }
197 
203  }
204 
208  virtual TemporalRegion GenerateDefaultLargestPossibleTemporalRegion();
209 
210  itkSetMacro(UnitInputNumberOfFrames, SizeValueType);
211  itkSetMacro(UnitOutputNumberOfFrames, SizeValueType);
212  itkSetMacro(FrameSkipPerOutput, OffsetValueType);
213  itkSetMacro(InputStencilCurrentFrameIndex, SizeValueType);
214  itkGetMacro(InputStencilCurrentFrameIndex, SizeValueType);
215 
216  /*-PROTECTED MEMBERS-------------------------------------------------------*/
217 
222 
227 
234 
235 private:
236  ITK_DISALLOW_COPY_AND_ASSIGN(TemporalProcessObject);
237 
238 }; // end class TemporalProcessObject
239 
240 } // end namespace itk
241 
242 #endif
signed long OffsetValueType
Definition: itkIntTypes.h:154
SmartPointer< const Self > ConstPointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
unsigned long SizeValueType
Definition: itkIntTypes.h:143
virtual void BeforeTemporalStreamingGenerateData()
TemporalProcessObject implements a ProcessObject for the itk pipeline with the notion of a temporal r...
Region subclass that holds a region in time.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
DataObject subclass with knowledge of temporal region.
Base class for all data objects in ITK.