Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkToolCommand.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkToolCommand_h
14 #define mitkToolCommand_h
15 
16 #include "itkCommand.h"
17 #include "mitkCommon.h"
19 
20 namespace mitk
21 {
28  class MITKSEGMENTATION_EXPORT ToolCommand : public itk::Command
29  {
30  public:
31  typedef ToolCommand Self;
32  typedef itk::Command Superclass;
34  itkFactorylessNewMacro(Self);
35  itkCloneMacro(Self);
36 
41  void Execute(itk::Object *caller, const itk::EventObject &event) override;
42 
47  void Execute(const itk::Object *object, const itk::EventObject &event) override;
48 
53  void AddStepsToDo(int steps);
54 
59  void SetProgress(int steps);
60 
65  double GetCurrentProgressValue();
66 
71  void SetStopProcessing(bool value);
72 
73  protected:
74  ToolCommand();
75 
76  private:
77  double m_ProgressValue;
78  bool m_StopProcessing;
79  };
80 
81 } // namespace mitk
82 
83 #endif
mitk::ToolCommand::Self
ToolCommand Self
Definition: mitkToolCommand.h:31
mitk::ToolCommand::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkToolCommand.h:33
itk::SmartPointer< Self >
mitk::ToolCommand
A command to get tool process feedback.
Definition: mitkToolCommand.h:28
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitk::ToolCommand::Superclass
itk::Command Superclass
Definition: mitkToolCommand.h:32
MitkSegmentationExports.h