Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkContourTool.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 mitkContourTool_h_Included
18 #define mitkContourTool_h_Included
19 
20 #include "mitkCommon.h"
23 
24 namespace mitk
25 {
26  class Image;
27  class StateMachineAction;
28  class InteractionEvent;
29 
52  {
53  public:
55 
56  protected:
57  ContourTool(int paintingPixelValue = 1); // purposely hidden
58  virtual ~ContourTool();
59 
60  virtual void Activated() override;
61  virtual void Deactivated() override;
62 
63  virtual void OnMousePressed(StateMachineAction *, InteractionEvent *interactionEvent);
64  virtual void OnMouseMoved(StateMachineAction *, InteractionEvent *interactionEvent);
65  virtual void OnMouseReleased(StateMachineAction *, InteractionEvent *interactionEvent);
66  virtual void OnInvertLogic(StateMachineAction *, InteractionEvent *interactionEvent);
67 
68  void ConnectActionsAndFunctions() override;
69 
72  };
73 
74 } // namespace
75 
76 #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
Base class for tools that use a contour for feedback.
Simple contour filling tool.