Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryNullProgressMonitor.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRY_NULLPROGRESSMONITOR_H
18 #define BERRY_NULLPROGRESSMONITOR_H
19 
20 #include <string>
21 #include "berryIProgressMonitor.h"
22 
23 namespace berry
24 {
25 
37 {
38 
39 public:
40 
42 
47 
55  virtual void BeginTask(const std::string& name, int totalWork) override;
56 
64  virtual void Done() override;
65 
72  virtual void InternalWorked(double work) override;
73 
83  virtual bool IsCanceled() override;
84 
93  virtual void SetCanceled(bool cancelled) override;
94 
102  virtual void SetTaskName(const std::string& name) override;
103 
111  virtual void SubTask(const std::string& name) override;
112 
120  virtual void Worked(int work) override;
121 
122 private:
123 
127  bool m_cancelled;
128 
129 };
130 
131 }
132 
133 #endif /* BERRY_NULLPROGRESSMONITOR_H */
virtual void SubTask(const std::string &name) override
virtual void InternalWorked(double work) override
virtual void SetTaskName(const std::string &name) override
virtual void BeginTask(const std::string &name, int totalWork) override
virtual void SetCanceled(bool cancelled) override
virtual bool IsCanceled() override
virtual void Worked(int work) override
berryObjectMacro(NullProgressMonitor)