ITK  5.0.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  ITK_DISALLOW_COPY_AND_ASSIGN(TemporalProcessObject);
69 
70  /*-TYPEDEFS----------------------------------------------------------------*/
71 
77 
79  itkTypeMacro(TemporalProcessObject, ProcessObject);
80 
81  /*-PUBLIC METHODS----------------------------------------------------------*/
82 
85  void EnlargeOutputRequestedRegion(DataObject* output) override;
86 
87  void GenerateOutputRequestedRegion(DataObject* output) override;
88 
89  void GenerateInputRequestedRegion() override;
90 
94  itkGetMacro(UnitInputNumberOfFrames, SizeValueType);
95 
99  itkGetMacro(UnitOutputNumberOfFrames, SizeValueType);
100 
106  void UpdateOutputInformation() override;
107 
119  void UpdateOutputData(DataObject* output) override;
120 
131  void GenerateData() override;
132 
139  virtual void TemporalStreamingGenerateData();
140 
141 protected:
142 
143  /*-PROTECTED METHODS-------------------------------------------------------*/
144 
147 
149  ~TemporalProcessObject() override = default;
150 
152  void PrintSelf(std::ostream & os, Indent indent) const override;
153 
158  virtual void EnlargeOutputRequestedTemporalRegion(TemporalDataObject* output);
159 
167  virtual void GenerateOutputRequestedTemporalRegion(TemporalDataObject* output);
168 
180  virtual void GenerateInputRequestedTemporalRegion();
181 
190  virtual std::vector<TemporalRegion> SplitRequestedTemporalRegion();
191 
197  }
198 
204  }
205 
209  virtual TemporalRegion GenerateDefaultLargestPossibleTemporalRegion();
210 
211  itkSetMacro(UnitInputNumberOfFrames, SizeValueType);
212  itkSetMacro(UnitOutputNumberOfFrames, SizeValueType);
213  itkSetMacro(FrameSkipPerOutput, OffsetValueType);
214  itkSetMacro(InputStencilCurrentFrameIndex, SizeValueType);
215  itkGetMacro(InputStencilCurrentFrameIndex, SizeValueType);
216 
217  /*-PROTECTED MEMBERS-------------------------------------------------------*/
218 
221  SizeValueType m_UnitInputNumberOfFrames{1};
222  SizeValueType m_UnitOutputNumberOfFrames{1};
223 
227  OffsetValueType m_FrameSkipPerOutput{1};
228 
234  SizeValueType m_InputStencilCurrentFrameIndex{0};
235 }; // end class TemporalProcessObject
236 
237 } // end namespace itk
238 
239 #endif
Light weight base class for most itk classes.
unsigned long SizeValueType
Definition: itkIntTypes.h:83
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
virtual void BeforeTemporalStreamingGenerateData()
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
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.
signed long OffsetValueType
Definition: itkIntTypes.h:94
Base class for all data objects in ITK.