ITK  6.0.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 * https://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
24namespace itk
25{
72class ITKCommon_EXPORT LightProcessObject : public Object
73{
74public:
75 ITK_DISALLOW_COPY_AND_MOVE(LightProcessObject);
76
82
84 itkNewMacro(Self);
85
87 itkOverrideGetNameOfClassMacro(LightProcessObject);
88
91 itkSetMacro(AbortGenerateData, bool);
92
95 itkGetConstReferenceMacro(AbortGenerateData, bool);
96
98 itkBooleanMacro(AbortGenerateData);
99
103 itkSetClampMacro(Progress, float, 0.0f, 1.0f);
109 itkGetConstReferenceMacro(Progress, float);
115 void
116 UpdateProgress(float amount);
117
119 virtual void
121
122protected:
125 void
126 PrintSelf(std::ostream & os, Indent indent) const override;
127
129 virtual void
131 {}
132
133private:
137 bool m_AbortGenerateData{};
138 float m_Progress{};
139};
140} // end namespace itk
141
142#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
~LightProcessObject() override
void PrintSelf(std::ostream &os, Indent indent) const override
void UpdateProgress(float amount)
virtual void UpdateOutputData()
Base class for most ITK classes.
Definition: itkObject.h:62
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....