13 #ifndef mitkPointSetDataInteractor_h
14 #define mitkPointSetDataInteractor_h
16 #include "itkObject.h"
17 #include "itkObjectFactory.h"
18 #include "itkSmartPointer.h"
67 itkFactorylessNewMacro(
Self);
BaseGeometry Describes the geometry of a data object.
Base class from with interactors that handle DataNodes are to be derived.
Implementation of the PointSetInteractor.
virtual void UnSelectPointAtPosition(StateMachineAction *, InteractionEvent *)
virtual bool CanAddPoint(const InteractionEvent *interactionEvent)
void DataNodeChanged() override
void ConnectActionsAndFunctions() override
PointSet::Pointer m_PointSet
virtual void FinishMove(StateMachineAction *, InteractionEvent *)
virtual int GetPointIndexByPosition(Point3D position, unsigned int time=0, float accuracy=-1)
Return index in PointSet of the point that is within given accuracy to the provided position.
void UnselectAll(unsigned int timeStep, ScalarType timeInMs)
virtual bool CheckSelection(const InteractionEvent *interactionEvent)
float m_SelectionAccuracy
virtual void AddPoint(StateMachineAction *, InteractionEvent *event)
Vector3D m_SumVec
summ-vector for Movement
virtual void InitMove(StateMachineAction *, InteractionEvent *interactionEvent)
virtual void UpdatePointSet(StateMachineAction *stateMachineAction, InteractionEvent *)
UpdatePointSet Updates the member variable that holds the point set, evaluating the time step of the ...
virtual void KeyDelete(StateMachineAction *, InteractionEvent *)
~PointSetDataInteractor() override
virtual void MovePoint(StateMachineAction *, InteractionEvent *)
void SelectPoint(int position, unsigned int timeStep, ScalarType timeInMS)
virtual void RemovePoint(StateMachineAction *, InteractionEvent *interactionEvent)
virtual void UnSelectAll(StateMachineAction *, InteractionEvent *)
void Enable3DPointPlacement(bool enabled=true)
void EnableMovement(bool enabled=true)
void SetBounds(BaseGeometry *geometry)
Sets the boundaries within which points can be placed.
virtual void SelectPoint(StateMachineAction *, InteractionEvent *)
mitk::BaseGeometry::Pointer m_Bounds
virtual void IsClosedContour(StateMachineAction *, InteractionEvent *)
void SetAccuracy(float accuracy)
void SetMaxPoints(unsigned int maxNumber=0)
SetMaxPoints Sets the maximal number of points for the pointset Default is zero, which result in infi...
bool m_Is3DPointPlacementEnabled
void EnableRemoval(bool enabled=true)
virtual void Abort(StateMachineAction *, InteractionEvent *)
Point3D m_LastPoint
to calculate a direction vector from last point and actual point
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
#define mitkClassMacro(className, SuperClassName)
Find image slices visible on a given plane.