ITK  4.8.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 
29 class Region;
30 class TemporalDataObject;
31 
66 class ITKVideoCore_EXPORT TemporalProcessObject : public ProcessObject
67 {
68 public:
69 
70  /*-TYPEDEFS----------------------------------------------------------------*/
71 
77 
79  itkTypeMacro(TemporalProcessObject, ProcessObject);
80 
81  /*-PUBLIC METHODS----------------------------------------------------------*/
82 
85  virtual void EnlargeOutputRequestedRegion(DataObject* output) ITK_OVERRIDE;
86 
87  virtual void GenerateOutputRequestedRegion(DataObject* output) ITK_OVERRIDE;
88 
89  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
90 
94  itkGetMacro(UnitInputNumberOfFrames, SizeValueType);
95 
99  itkGetMacro(UnitOutputNumberOfFrames, SizeValueType);
100 
106  virtual void UpdateOutputInformation() ITK_OVERRIDE;
107 
119  virtual void UpdateOutputData(DataObject* output) ITK_OVERRIDE;
120 
131  virtual void GenerateData() ITK_OVERRIDE;
132 
139  virtual void TemporalStreamingGenerateData();
140 
141 protected:
142 
143  /*-PROTECTED METHODS-------------------------------------------------------*/
144 
147 
149  virtual ~TemporalProcessObject(){
150  }
151 
153  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
154 
159  virtual void EnlargeOutputRequestedTemporalRegion(TemporalDataObject* output);
160 
168  virtual void GenerateOutputRequestedTemporalRegion(TemporalDataObject* output);
169 
181  virtual void GenerateInputRequestedTemporalRegion();
182 
191  virtual std::vector<TemporalRegion> SplitRequestedTemporalRegion();
192 
198  }
199 
205  }
206 
210  virtual TemporalRegion GenerateDefaultLargestPossibleTemporalRegion();
211 
212  itkSetMacro(UnitInputNumberOfFrames, SizeValueType);
213  itkSetMacro(UnitOutputNumberOfFrames, SizeValueType);
214  itkSetMacro(FrameSkipPerOutput, OffsetValueType);
215  itkSetMacro(InputStencilCurrentFrameIndex, SizeValueType);
216  itkGetMacro(InputStencilCurrentFrameIndex, SizeValueType);
217 
218  /*-PROTECTED MEMBERS-------------------------------------------------------*/
219 
224 
229 
236 
237 private:
238  TemporalProcessObject(const Self &); //purposely not implemented
239  void operator=(const Self &); //purposely not implemented
240 
241 }; // end class TemporalProcessObject
242 
243 } // end namespace itk
244 
245 #endif
Light weight base class for most itk classes.
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.