NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
ItkProcessObserver.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  KMaps: An image processing toolkit for DCE-MRI analysis developed
4  at the Molecular Imaging Center at University of Torino.
5 
6  See: http://www.cim.unito.it
7 
8  Author: Miklos Espak <espakm@gmail.com>
9 
10  Copyright (c) Miklos Espak
11  All Rights Reserved.
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17  ============================================================================*/
18 
19 #ifndef ItkProcessObserver_h
20 #define ItkProcessObserver_h
21 
22 namespace itk {
23 class ProcessObject;
24 }
25 
26 namespace mitk {
27 class StatusBar;
28 class ProgressBar;
29 }
30 
32 
33  itk::ProcessObject* m_ItkProcess;
34  const char* m_StatusBarMessage;
35  int m_StepsToDo;
36  int m_StepsDone;
37 
38  mitk::StatusBar* m_StatusBar;
39  mitk::ProgressBar* m_ProgressBar;
40 
41 public:
42  ItkProcessObserver(itk::ProcessObject* itkProcess, const char* statusBarMessage);
43  virtual ~ItkProcessObserver();
44 
45 private:
46  void onStartEvent();
47  void onEndEvent();
48  void onProgressEvent();
49 
50 };
51 
52 #endif /* ITKPROCESSOBSERVER_H_ */
ItkProcessObserver(itk::ProcessObject *itkProcess, const char *statusBarMessage)
Definition: ItkProcessObserver.cxx:27
Definition: ReceptorMemberCommandTest.cxx:25
Definition: niftkITKAffineResampleImage.cxx:74
virtual ~ItkProcessObserver()
Definition: ItkProcessObserver.cxx:60
Definition: ItkProcessObserver.h:31