ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLightProcessObject.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 itkLightProcessObject_h
19 #define itkLightProcessObject_h
20 
21 #include "itkObject.h"
22 #include "itkObjectFactory.h"
23 
24 namespace itk
25 {
72 class ITKCommon_EXPORT LightProcessObject:public Object
73 {
74 public:
75  ITK_DISALLOW_COPY_AND_ASSIGN(LightProcessObject);
76 
79  using Superclass = Object;
82 
84  itkNewMacro(Self);
85 
87  itkTypeMacro(LightProcessObject, Object);
88 
91  itkSetMacro(AbortGenerateData, bool);
92 
95  itkGetConstReferenceMacro(AbortGenerateData, bool);
96 
98  itkBooleanMacro(AbortGenerateData);
99 
103  itkSetClampMacro(Progress, float, 0.0f, 1.0f);
105 
109  itkGetConstReferenceMacro(Progress, float);
111 
115  void UpdateProgress(float amount);
116 
118  virtual void UpdateOutputData();
119 
120 protected:
122  ~LightProcessObject() override;
123  void PrintSelf(std::ostream & os, Indent indent) const override;
124 
126  virtual void GenerateData() {}
127 
128 private:
133  float m_Progress;
134 };
135 } // end namespace itk
136 
137 #endif
Light weight base class for most itk classes.
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60