Medical Imaging Interaction Toolkit
2024.06.99-c70462f2
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
14
#define mitkContourTool_h
15
16
#include "
mitkCommon.h
"
17
#include "
mitkFeedbackContourTool.h
"
18
#include <
MitkSegmentationExports.h
>
19
20
namespace
mitk
21
{
22
class
Image
;
23
class
StateMachineAction;
24
class
InteractionEvent;
25
46
class
MITKSEGMENTATION_EXPORT
ContourTool
:
public
FeedbackContourTool
47
{
48
public
:
49
mitkClassMacro
(
ContourTool
,
FeedbackContourTool
);
50
51
protected
:
52
ContourTool
(
int
paintingPixelValue = 1);
// purposely hidden
53
~
ContourTool
()
override
;
54
55
void
Activated()
override
;
56
void
Deactivated()
override
;
57
58
virtual
void
OnMousePressed(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
59
virtual
void
OnMouseMoved(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
60
virtual
void
OnMouseReleased(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
61
virtual
void
OnInvertLogic(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
62
63
void
ConnectActionsAndFunctions()
override
;
64
65
int
m_PaintingPixelValue
;
66
};
67
68
}
// namespace
69
70
#endif
mitkFeedbackContourTool.h
mitk::InteractionEvent
Definition:
mitkInteractionEvent.h:26
mitk::ContourTool::m_PaintingPixelValue
int m_PaintingPixelValue
Definition:
mitkContourTool.h:65
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::ContourTool
Simple contour filling tool.
Definition:
mitkContourTool.h:46
mitk::FeedbackContourTool
Base class for tools that use a contour for feedback.
Definition:
mitkFeedbackContourTool.h:49
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition:
MitkSegmentationExports.h:15
mitk::StateMachineAction
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Definition:
mitkStateMachineAction.h:30
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
itk::Image
class ITK_EXPORT Image
Definition:
mitkGeometryClipImageFilter.h:25
MitkSegmentationExports.h
src
MITK
Modules
Segmentation
Interactions
mitkContourTool.h
Generated on Thu Oct 31 2024 02:18:04 for Medical Imaging Interaction Toolkit by
1.8.17