Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkCorrectorTool2D.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,
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 mitkCorrectorTool2D_h_Included
18 #define mitkCorrectorTool2D_h_Included
19 
20 #include "mitkCommon.h"
23 
24 namespace us
25 {
26  class ModuleResource;
27 }
28 
29 namespace mitk
30 {
31  class Image;
32  class StateMachineAction;
33  class InteractionEvent;
34 
57  {
58  public:
60  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
61 
62  virtual const char **GetXPM() const override;
63  virtual us::ModuleResource GetCursorIconResource() const override;
64  us::ModuleResource GetIconResource() const override;
65 
66  virtual const char *GetName() const override;
67 
68  protected:
69  CorrectorTool2D(int paintingPixelValue = 1); // purposely hidden
70  virtual ~CorrectorTool2D();
71 
72  void ConnectActionsAndFunctions() override;
73 
74  virtual void Activated() override;
75  virtual void Deactivated() override;
76 
77  virtual void OnMousePressed(StateMachineAction *, InteractionEvent *);
78  virtual void OnMouseMoved(StateMachineAction *, InteractionEvent *);
79  virtual void OnMouseReleased(StateMachineAction *, InteractionEvent *);
81 
83  };
84 
85 } // namespace
86 
87 #endif
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
class ITK_EXPORT Image
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
virtual void ConnectActionsAndFunctions() override
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Corrector tool for 2D binary segmentations.
Base class for tools that use a contour for feedback.
static std::string GetName(std::string fileName, std::string suffix)
Image::Pointer m_WorkingSlice
Super-class that provides the functionality of a StateMachine to DataInteractors. ...