13 #ifndef mitkContourModelLiveWireInteractor_h
14 #define mitkContourModelLiveWireInteractor_h
41 itkFactorylessNewMacro(
Self);
#define MITKSEGMENTATION_EXPORT
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)
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
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
ContourElement::VertexIterator VertexIterator
Image class for storing images.
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Find image slices visible on a given plane.
Represents a single vertex of a contour.