ITK  5.2.0
Insight Toolkit
itkLightProcessObject.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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
116  UpdateProgress(float amount);
117 
119  virtual void
120  UpdateOutputData();
121 
122 protected:
124  ~LightProcessObject() override;
125  void
126  PrintSelf(std::ostream & os, Indent indent) const override;
127 
129  virtual void
131  {}
132 
133 private:
138  float m_Progress;
139 };
140 } // end namespace itk
141 
142 #endif
itkObjectFactory.h
itk::LightProcessObject
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Definition: itkLightProcessObject.h:72
itk::LightProcessObject::m_AbortGenerateData
bool m_AbortGenerateData
Definition: itkLightProcessObject.h:137
itk::LightProcessObject::GenerateData
virtual void GenerateData()
Definition: itkLightProcessObject.h:130
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itkObject.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:60
itk::LightProcessObject::m_Progress
float m_Progress
Definition: itkLightProcessObject.h:138