ITK  4.6.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 
24 namespace itk
25 {
26 
28 class Region;
29 class TemporalDataObject;
30 
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(){
149  }
150 
152  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
153 
159 
168 
181 
190  virtual std::vector<TemporalRegion> SplitRequestedTemporalRegion();
191 
197  }
198 
204  }
205 
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 
223 
228 
235 
236 private:
237  TemporalProcessObject(const Self &); //purposely not implemented
238  void operator=(const Self &); //purposely not implemented
239 
240 }; // end class TemporalProcessObject
241 
242 } // end namespace itk
243 
244 #endif
virtual std::vector< TemporalRegion > SplitRequestedTemporalRegion()
Light weight base class for most itk classes.
virtual void UpdateOutputInformation() ITK_OVERRIDE
signed long OffsetValueType
Definition: itkIntTypes.h:154
virtual TemporalRegion GenerateDefaultLargestPossibleTemporalRegion()
SmartPointer< const Self > ConstPointer
virtual void TemporalStreamingGenerateData()
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()
virtual void GenerateInputRequestedRegion() ITK_OVERRIDE
virtual void GenerateData() ITK_OVERRIDE
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
TemporalProcessObject implements a ProcessObject for the itk pipeline with the notion of a temporal r...
void operator=(const Self &)
Region subclass that holds a region in time.
virtual void GenerateInputRequestedTemporalRegion()
virtual void EnlargeOutputRequestedRegion(DataObject *output) ITK_OVERRIDE
virtual void EnlargeOutputRequestedTemporalRegion(TemporalDataObject *output)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
DataObject subclass with knowledge of temporal region.
virtual void UpdateOutputData(DataObject *output) ITK_OVERRIDE
virtual void GenerateOutputRequestedRegion(DataObject *output) ITK_OVERRIDE
Base class for all data objects in ITK.
virtual void GenerateOutputRequestedTemporalRegion(TemporalDataObject *output)