13 #ifndef mitkContourModelLiveWireInteractor_h
14 #define mitkContourModelLiveWireInteractor_h
42 itkFactorylessNewMacro(Self);
#define MITKSEGMENTATION_EXPORT
Interactor for editing contour model vertices by mouse interaction.
LiveWire-based contour model interactor for editing contour segments.
void SetRepulsivePoints(const mitk::ContourModel::VertexType *nextPoint, mitk::ContourModel *contour, int timestep)
Set repulsive points which should not be changed during editing of the contour.
mitk::ContourModel::VertexIterator m_NextActiveVertexDownIter
ContourModelLiveWireInteractor()
mitkClassMacro(ContourModelLiveWireInteractor, ContourModelInteractor)
void OnMovePoint(StateMachineAction *, InteractionEvent *interactionEvent) override
Update contour when point is moved.
bool OnCheckPointClick(const InteractionEvent *interactionEvent) override
Select/ add and select vertex to modify contour and prepare for modification of contour.
mitk::ContourModel::VertexIterator m_NextActiveVertexUpIter
virtual void SetWorkingImage(mitk::Image *_arg)
Sets the working image used for LiveWire cost computation.
mitk::ContourModel::Pointer m_ContourLeft
~ContourModelLiveWireInteractor() override
mitk::ContourModel::Pointer m_ContourRight
mitk::Point3D m_NextActiveVertexUp
void OnAddPoint(StateMachineAction *, InteractionEvent *interactionEvent) override
Add a new control point.
void OnDeletePoint(StateMachineAction *, InteractionEvent *interactionEvent) override
Delete selected vertex and recompute contour.
mitk::Point3D m_NextActiveVertexDown
void SplitContourFromSelectedVertex(mitk::ContourModel *srcContour, const mitk::ContourModel::VertexType *nextPoint, const mitk::ContourModel::VertexType *previousPoint, int timestep)
Split contour into a part before the selected vertex and after the selected vertex.
std::vector< itk::Index< 2 > > m_ContourBeingModified
mitk::ImageLiveWireContourModelFilter::Pointer m_LiveWireFilter
void OnFinishEditing(StateMachineAction *, InteractionEvent *interactionEvent) override
Finish modification of contour.
void ConnectActionsAndFunctions() override
mitk::Image::Pointer m_WorkingSlice
A time-resolved contour representation consisting of linked vertices in 3D space.
ContourElement::VertexIterator VertexIterator
Image class for storing multi-dimensional medical image data.
Base class for all interaction events in MITK.
Represents an action that is executed after a certain event in the state machine mechanism.
Find image slices visible on a given plane.
Represents a single vertex of a contour.