ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkProgressTransformer.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 itkProgressTransformer_h
19 #define itkProgressTransformer_h
20 
21 #include "itkProcessObject.h"
22 #include "itkCommand.h"
23 
24 namespace itk
25 {
41 class ITKCommon_EXPORT ProgressTransformer
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN( ProgressTransformer );
46 
47  ProgressTransformer(float start, float end, ProcessObject* targetFilter);
48 
50  {
51  return m_Dummy.GetPointer();
52  }
53 
54  void UpdateProgress();
55 
57 
58 private:
59  float m_Start;
60  float m_End;
61 
63 
65 
68 
69  unsigned long m_ProgressTag;
70 };
71 } // end namespace itk
72 #endif // itkProgressTransformer_h
ProcessObject * GetProcessObject()
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Transforms progress updates from [0%, 100%] to desired scale.
ProcessObject::Pointer m_Dummy
A Command subclass that calls a pointer to a member function.
Definition: itkCommand.h:232
CommandType::Pointer m_ProgressCommand