Medical Imaging Interaction Toolkit
2024.06.99-bf8fb9c0
Medical Imaging Interaction Toolkit
mitkContourModelInteractor.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 mitkContourModelInteractor_h
14
#define mitkContourModelInteractor_h
15
16
#include "
mitkCommon.h
"
17
#include "
mitkDataInteractor.h
"
18
#include <
MitkSegmentationExports.h
>
19
#include <
mitkContourModel.h
>
20
#include <
mitkDataNode.h
>
21
22
namespace
mitk
23
{
34
class
MITKSEGMENTATION_EXPORT
ContourModelInteractor
:
public
DataInteractor
35
{
36
public
:
37
mitkClassMacro
(
ContourModelInteractor
,
DataInteractor
);
38
itkFactorylessNewMacro(
Self
);
39
itkCloneMacro(
Self
);
40
45
void
ConnectActionsAndFunctions()
override
;
46
47
void
SetRestrictedArea(
mitk::ContourModel
* restrictedArea);
48
49
protected
:
50
ContourModelInteractor
();
51
~
ContourModelInteractor
()
override
;
52
53
virtual
bool
OnCheckPointClick(
const
InteractionEvent
*interactionEvent);
54
virtual
bool
IsHovering(
const
InteractionEvent
*interactionEvent);
55
56
virtual
void
OnAddPoint(
StateMachineAction
*,
InteractionEvent
* interactionEvent);
57
virtual
void
OnDeletePoint(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
58
virtual
void
OnMovePoint(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
59
virtual
void
OnMoveContour(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
60
virtual
void
OnFinishEditing(
StateMachineAction
*,
InteractionEvent
*interactionEvent);
61
62
const
float
eps
= 3.0;
63
mitk::Point3D
m_lastMousePosition
;
64
mitk::ContourModel::Pointer
m_RestrictedArea
;
65
};
66
67
}
// namespace
68
#endif
mitk::eps
const MITKCORE_EXPORT ScalarType eps
mitk::InteractionEvent
Definition:
mitkInteractionEvent.h:26
mitk::ContourModelInteractor::m_RestrictedArea
mitk::ContourModel::Pointer m_RestrictedArea
Definition:
mitkContourModelInteractor.h:64
itk::SmartPointer< Self >
mitk::ContourModelInteractor
Definition:
mitkContourModelInteractor.h:34
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::ContourModelInteractor::m_lastMousePosition
mitk::Point3D m_lastMousePosition
Definition:
mitkContourModelInteractor.h:63
mitkContourModel.h
mitk::Point< ScalarType, 3 >
mitk::ContourModel
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Definition:
mitkContourModel.h:47
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition:
MitkSegmentationExports.h:15
mitkDataInteractor.h
mitkDataNode.h
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
MitkSegmentationExports.h
mitk::DataInteractor
Base class from with interactors that handle DataNodes are to be derived.
Definition:
mitkDataInteractor.h:48
src
MITK
Modules
Segmentation
Interactions
mitkContourModelInteractor.h
Generated on Tue Dec 3 2024 02:18:44 for Medical Imaging Interaction Toolkit by
1.8.17