Medical Imaging Interaction Toolkit  2018.4.99-fa2b431b
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 (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 mitkContourTool_h_Included
14 #define mitkContourTool_h_Included
15 
16 #include "mitkCommon.h"
19 
20 namespace mitk
21 {
22  class Image;
23  class StateMachineAction;
24  class InteractionEvent;
25 
48  {
49  public:
51 
52  protected:
53  ContourTool(int paintingPixelValue = 1); // purposely hidden
54  ~ContourTool() override;
55 
56  void Activated() override;
57  void Deactivated() override;
58 
59  virtual void OnMousePressed(StateMachineAction *, InteractionEvent *interactionEvent);
60  virtual void OnMouseMoved(StateMachineAction *, InteractionEvent *interactionEvent);
61  virtual void OnMouseReleased(StateMachineAction *, InteractionEvent *interactionEvent);
62  virtual void OnInvertLogic(StateMachineAction *, InteractionEvent *interactionEvent);
63 
64  void ConnectActionsAndFunctions() override;
65 
68  };
69 
70 } // namespace
71 
72 #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
Base class for tools that use a contour for feedback.
Simple contour filling tool.