Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitk::ContourModelLiveWireInteractor Class Reference

#include <mitkContourModelLiveWireInteractor.h>

Inheritance diagram for mitk::ContourModelLiveWireInteractor:
Collaboration diagram for mitk::ContourModelLiveWireInteractor:

Public Member Functions

 mitkClassMacro (ContourModelLiveWireInteractor, ContourModelInteractor)
 
Pointer Clone () const
 
virtual void SetEditingContourModelNode (mitk::DataNode *_arg)
 
virtual void SetWorkingImage (mitk::Image *_arg)
 
void ConnectActionsAndFunctions () override
 
- Public Member Functions inherited from mitk::ContourModelInteractor
 mitkClassMacro (ContourModelInteractor, DataInteractor)
 
Pointer Clone () const
 
- Public Member Functions inherited from mitk::DataInteractor
virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
DataNodeGetDataNode () const
 
virtual void SetDataNode (DataNode *dataNode)
 
int GetLayer () const
 
ProcessEventMode GetMode () const
 
- Public Member Functions inherited from mitk::EventStateMachine
bool LoadStateMachine (const std::string &filename, const us::Module *module=nullptr)
 Loads XML resource. More...
 
bool HandleEvent (InteractionEvent *event, DataNode *dataNode)
 
void EnableUndo (bool enable)
 Enables or disabled Undo. More...
 
void EnableInteraction (bool enable)
 Enables/disables the state machine. In un-enabled state it won't react to any events. More...
 
- Public Member Functions inherited from mitk::InteractionEventHandler
bool SetEventConfig (const std::string &filename, const us::Module *module=nullptr)
 Loads a configuration from an XML resource. More...
 
bool SetEventConfig (const EventConfig &config)
 Loads a configuration from an EventConfig object. More...
 
EventConfig GetEventConfig () const
 Returns the current configuration. More...
 
bool AddEventConfig (const std::string &filename, const us::Module *module=nullptr)
 This method extends the configuration. More...
 
bool AddEventConfig (const EventConfig &config)
 This method extends the configuration. The configuration from the EventConfig object is loaded and only the ones conflicting are replaced by the new one. This way several configurations can be combined. More...
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::ContourModelInteractor
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::DataInteractor
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::EventStateMachine
static const char * GetStaticNameOfClass ()
 
- Static Public Member Functions inherited from mitk::InteractionEventHandler
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 ContourModelLiveWireInteractor ()
 
 ~ContourModelLiveWireInteractor () override
 
bool OnCheckPointClick (const InteractionEvent *interactionEvent) override
 
bool IsHovering (const InteractionEvent *interactionEvent) override
 
void OnMovePoint (StateMachineAction *, InteractionEvent *interactionEvent) override
 
void OnDeletePoint (StateMachineAction *, InteractionEvent *interactionEvent) override
 
void OnFinishEditing (StateMachineAction *, InteractionEvent *interactionEvent) override
 
int SplitContourFromSelectedVertex (mitk::ContourModel *srcContour, mitk::ContourModel *destContour, bool fromSelectedUpwards, int timestep)
 
- Protected Member Functions inherited from mitk::ContourModelInteractor
 ContourModelInteractor ()
 
 ~ContourModelInteractor () override
 
virtual void OnMoveContour (StateMachineAction *, InteractionEvent *interactionEvent)
 
- Protected Member Functions inherited from mitk::DataInteractor
 DataInteractor ()
 
 ~DataInteractor () override
 
virtual void DataNodeChanged ()
 Is called when a DataNode is initially set or changed To be implemented by sub-classes for initialization code which require a DataNode. More...
 
virtual void NotifyStart ()
 Sends StartInteraction event via the mitk::DataNode. More...
 
virtual void NotifyResultReady ()
 NotifyResultReady Sends ResultReady event via the mitk::DataNode. More...
 
- Protected Member Functions inherited from mitk::EventStateMachine
 EventStateMachine ()
 
 ~EventStateMachine () override
 
void AddActionFunction (const std::string &action, TActionFunctor *functor)
 
void AddActionFunction (const std::string &action, const ActionFunctionDelegate &delegate)
 
void AddConditionFunction (const std::string &condition, const ConditionFunctionDelegate &delegate)
 
StateMachineStateGetCurrentState () const
 
void ResetToStartState ()
 ResetToStartState Reset state machine to it initial starting state. More...
 
virtual bool CheckCondition (const StateMachineCondition &condition, const InteractionEvent *interactionEvent)
 
virtual void ExecuteAction (StateMachineAction *action, InteractionEvent *interactionEvent)
 
virtual bool FilterEvents (InteractionEvent *interactionEvent, DataNode *dataNode)
 
void SetMouseCursor (const char *xpm[], int hotspotX, int hotspotY)
 Sets the specified mouse cursor. More...
 
void ResetMouseCursor ()
 Resets the mouse cursor (if modified by the SlicesCoordinator) to its original state. More...
 
StateMachineTransitionGetExecutableTransition (InteractionEvent *event)
 Returns the executable transition for the given event. More...
 
- Protected Member Functions inherited from mitk::InteractionEventHandler
 InteractionEventHandler ()
 
 ~InteractionEventHandler () override
 
PropertyList::Pointer GetAttributes () const
 
std::string MapToEventVariant (InteractionEvent *interactionEvent)
 
virtual void ConfigurationChanged ()
 

Protected Attributes

mitk::ImageLiveWireContourModelFilter::Pointer m_LiveWireFilter
 
mitk::Image::Pointer m_WorkingSlice
 
mitk::Point3D m_NextActiveVertexDown
 
mitk::Point3D m_NextActiveVertexUp
 
mitk::ContourModel::VertexIterator m_NextActiveVertexDownIter
 
mitk::ContourModel::VertexIterator m_NextActiveVertexUpIter
 
std::vector< itk::Index< 2 > > m_ContourBeingModified
 
mitk::DataNode::Pointer m_EditingContourNode
 
mitk::ContourModel::Pointer m_ContourLeft
 
mitk::ContourModel::Pointer m_ContourRight
 
- Protected Attributes inherited from mitk::ContourModelInteractor
mitk::Point3D m_lastMousePosition
 
- Protected Attributes inherited from mitk::EventStateMachine
bool m_IsActive
 
UndoControllerm_UndoController
 
bool m_UndoEnabled
 

Additional Inherited Members

- Public Types inherited from mitk::DataInteractor
typedef DataInteractor Self
 
typedef EventStateMachine Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::EventStateMachine
typedef EventStateMachine Self
 
typedef InteractionEventHandler Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::map< std::string, TActionFunctor * > ActionFunctionsMapType
 
typedef itk::SmartPointer< StateMachineStateStateMachineStateType
 
- Public Types inherited from mitk::InteractionEventHandler
typedef InteractionEventHandler Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Static Public Attributes inherited from mitk::DataInteractor
static const std::string IntDeactivateMe
 
static const std::string IntLeaveWidget
 
static const std::string IntEnterWidget
 
- Protected Types inherited from mitk::EventStateMachine
typedef MessageAbstractDelegate2< StateMachineAction *, InteractionEvent *, void > ActionFunctionDelegate
 
typedef MessageAbstractDelegate1< const InteractionEvent *, bool > ConditionFunctionDelegate
 

Detailed Description

See also
Interactor
ContourModelInteractor
Warning
Make sure the working image is properly set, otherwise the algorithm for computing livewire contour segments will not work!

Definition at line 37 of file mitkContourModelLiveWireInteractor.h.

Constructor & Destructor Documentation

◆ ContourModelLiveWireInteractor()

mitk::ContourModelLiveWireInteractor::ContourModelLiveWireInteractor ( )
protected

◆ ~ContourModelLiveWireInteractor()

mitk::ContourModelLiveWireInteractor::~ContourModelLiveWireInteractor ( )
overrideprotected

Definition at line 33 of file mitkContourModelLiveWireInteractor.cpp.

Member Function Documentation

◆ Clone()

Pointer mitk::ContourModelLiveWireInteractor::Clone ( ) const

◆ ConnectActionsAndFunctions()

void mitk::ContourModelLiveWireInteractor::ConnectActionsAndFunctions ( )
overridevirtual

Here actions strings from the loaded state machine pattern are mapped to functions of the DataInteractor. These functions are called when an action from the state machine pattern is executed.

Reimplemented from mitk::ContourModelInteractor.

Definition at line 37 of file mitkContourModelLiveWireInteractor.cpp.

References CONNECT_CONDITION, CONNECT_FUNCTION, IsHovering(), OnCheckPointClick(), OnDeletePoint(), OnFinishEditing(), and OnMovePoint().

◆ IsHovering()

◆ mitkClassMacro()

mitk::ContourModelLiveWireInteractor::mitkClassMacro ( ContourModelLiveWireInteractor  ,
ContourModelInteractor   
)

◆ New()

static Pointer mitk::ContourModelLiveWireInteractor::New ( )
static

◆ OnCheckPointClick()

◆ OnDeletePoint()

◆ OnFinishEditing()

◆ OnMovePoint()

◆ SetEditingContourModelNode()

void mitk::ContourModelLiveWireInteractor::SetEditingContourModelNode ( mitk::DataNode _arg)
virtual

Definition at line 128 of file mitkContourModelLiveWireInteractor.cpp.

References m_EditingContourNode.

◆ SetWorkingImage()

void mitk::ContourModelLiveWireInteractor::SetWorkingImage ( mitk::Image _arg)
virtual

Definition at line 136 of file mitkContourModelLiveWireInteractor.cpp.

References m_LiveWireFilter, and m_WorkingSlice.

◆ SplitContourFromSelectedVertex()

int mitk::ContourModelLiveWireInteractor::SplitContourFromSelectedVertex ( mitk::ContourModel srcContour,
mitk::ContourModel destContour,
bool  fromSelectedUpwards,
int  timestep 
)
protected

Member Data Documentation

◆ m_ContourBeingModified

std::vector<itk::Index<2> > mitk::ContourModelLiveWireInteractor::m_ContourBeingModified
protected

Definition at line 75 of file mitkContourModelLiveWireInteractor.h.

Referenced by OnCheckPointClick(), and OnMovePoint().

◆ m_ContourLeft

mitk::ContourModel::Pointer mitk::ContourModelLiveWireInteractor::m_ContourLeft
protected

◆ m_ContourRight

mitk::ContourModel::Pointer mitk::ContourModelLiveWireInteractor::m_ContourRight
protected

◆ m_EditingContourNode

mitk::DataNode::Pointer mitk::ContourModelLiveWireInteractor::m_EditingContourNode
protected

◆ m_LiveWireFilter

mitk::ImageLiveWireContourModelFilter::Pointer mitk::ContourModelLiveWireInteractor::m_LiveWireFilter
protected

◆ m_NextActiveVertexDown

mitk::Point3D mitk::ContourModelLiveWireInteractor::m_NextActiveVertexDown
protected

◆ m_NextActiveVertexDownIter

mitk::ContourModel::VertexIterator mitk::ContourModelLiveWireInteractor::m_NextActiveVertexDownIter
protected

Definition at line 72 of file mitkContourModelLiveWireInteractor.h.

Referenced by OnCheckPointClick().

◆ m_NextActiveVertexUp

mitk::Point3D mitk::ContourModelLiveWireInteractor::m_NextActiveVertexUp
protected

◆ m_NextActiveVertexUpIter

mitk::ContourModel::VertexIterator mitk::ContourModelLiveWireInteractor::m_NextActiveVertexUpIter
protected

Definition at line 73 of file mitkContourModelLiveWireInteractor.h.

Referenced by OnCheckPointClick().

◆ m_WorkingSlice

mitk::Image::Pointer mitk::ContourModelLiveWireInteractor::m_WorkingSlice
protected

The documentation for this class was generated from the following files: