Medical Imaging Interaction Toolkit  2018.4.99-65942676
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 (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 mitkCorrectorTool2D_h_Included
14 #define mitkCorrectorTool2D_h_Included
15 
16 #include "mitkCommon.h"
19 
20 namespace us
21 {
22  class ModuleResource;
23 }
24 
25 namespace mitk
26 {
27  class Image;
28  class StateMachineAction;
29  class InteractionEvent;
30 
53  {
54  public:
56  itkFactorylessNewMacro(Self);
57  itkCloneMacro(Self);
58 
59  const char **GetXPM() const override;
60  us::ModuleResource GetCursorIconResource() const override;
61  us::ModuleResource GetIconResource() const override;
62 
63  const char *GetName() const override;
64 
65  protected:
66  CorrectorTool2D(int paintingPixelValue = 1); // purposely hidden
67  ~CorrectorTool2D() override;
68 
69  void ConnectActionsAndFunctions() override;
70 
71  void Activated() override;
72  void Deactivated() override;
73 
74  virtual void OnMousePressed(StateMachineAction *, InteractionEvent *);
75  virtual void OnMouseMoved(StateMachineAction *, InteractionEvent *);
76  virtual void OnMouseReleased(StateMachineAction *, InteractionEvent *);
78 
80  };
81 
82 } // namespace
83 
84 #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...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Corrector tool for 2D binary segmentations.
Base class for tools that use a contour for feedback.
Image::Pointer m_WorkingSlice
Super-class that provides the functionality of a StateMachine to DataInteractors. ...