Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkContourModelLiveWireInteractor.h>
Public Member Functions | |
mitkClassMacro (ContourModelLiveWireInteractor, ContourModelInteractor) | |
Pointer | Clone () const |
virtual void | SetEditingContourModelNode (mitk::DataNode *_arg) |
virtual void | SetWorkingImage (mitk::Image *_arg) |
void | ConnectActionsAndFunctions () override |
![]() | |
mitkClassMacro (ContourModelInteractor, DataInteractor) | |
Pointer | Clone () const |
![]() | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
DataNode * | GetDataNode () const |
virtual void | SetDataNode (DataNode *dataNode) |
int | GetLayer () const |
ProcessEventMode | GetMode () const |
![]() | |
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... | |
![]() | |
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 Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
![]() | |
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) |
![]() | |
ContourModelInteractor () | |
~ContourModelInteractor () override | |
virtual void | OnMoveContour (StateMachineAction *, InteractionEvent *interactionEvent) |
![]() | |
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... | |
![]() | |
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) |
StateMachineState * | GetCurrentState () 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... | |
StateMachineTransition * | GetExecutableTransition (InteractionEvent *event) |
Returns the executable transition for the given event. More... | |
![]() | |
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 |
![]() | |
mitk::Point3D | m_lastMousePosition |
![]() | |
bool | m_IsActive |
UndoController * | m_UndoController |
bool | m_UndoEnabled |
Definition at line 37 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 25 of file mitkContourModelLiveWireInteractor.cpp.
References m_LiveWireFilter, m_NextActiveVertexDown, m_NextActiveVertexUp, and mitk::ImageLiveWireContourModelFilter::New().
|
overrideprotected |
Definition at line 33 of file mitkContourModelLiveWireInteractor.cpp.
Pointer mitk::ContourModelLiveWireInteractor::Clone | ( | ) | const |
|
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().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 311 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::DataNode::GetBoolProperty(), mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::RenderingManager::RequestUpdate(), and mitk::DataNode::SetBoolProperty().
Referenced by ConnectActionsAndFunctions().
mitk::ContourModelLiveWireInteractor::mitkClassMacro | ( | ContourModelLiveWireInteractor | , |
ContourModelInteractor | |||
) |
|
static |
Referenced by mitk::LiveWireTool2D::ClearSegmentation().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 47 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), m_ContourBeingModified, m_ContourLeft, m_ContourRight, m_LiveWireFilter, m_NextActiveVertexDown, m_NextActiveVertexDownIter, m_NextActiveVertexUp, m_NextActiveVertexUpIter, m_WorkingSlice, MITK_ERROR, mitk::ContourModel::New(), mitk::RenderingManager::RequestUpdate(), and SplitContourFromSelectedVertex().
Referenced by ConnectActionsAndFunctions().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 145 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::ContourModel::GetNumberOfVertices(), mitk::BaseRenderer::GetRenderWindow(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::ContourModel::IsEmpty(), m_ContourLeft, m_ContourRight, m_LiveWireFilter, m_NextActiveVertexDown, m_NextActiveVertexUp, MITK_ERROR, mitk::ContourModel::New(), mitk::ContourModel::RemoveVertexAt(), mitk::RenderingManager::RequestUpdate(), and mitk::DataNode::SetData().
Referenced by ConnectActionsAndFunctions().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 473 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::ContourModel::Clear(), mitk::RenderingManager::GetInstance(), mitk::BaseRenderer::GetRenderWindow(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), m_EditingContourNode, and mitk::RenderingManager::RequestUpdate().
Referenced by ConnectActionsAndFunctions().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 198 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), m_ContourBeingModified, m_ContourLeft, m_ContourRight, m_EditingContourNode, m_LiveWireFilter, m_NextActiveVertexDown, m_NextActiveVertexUp, m_WorkingSlice, MITK_ERROR, mitk::ContourModel::New(), mitk::RenderingManager::RequestUpdate(), and mitk::DataNode::SetData().
Referenced by ConnectActionsAndFunctions().
|
virtual |
Definition at line 128 of file mitkContourModelLiveWireInteractor.cpp.
References m_EditingContourNode.
|
virtual |
Definition at line 136 of file mitkContourModelLiveWireInteractor.cpp.
References m_LiveWireFilter, and m_WorkingSlice.
|
protected |
Definition at line 344 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::ContourModel::AddVertex(), mitk::ContourModel::GetSelectedVertex(), mitk::ContourModel::IteratorBegin(), and mitk::ContourModel::IteratorEnd().
Referenced by OnCheckPointClick().
|
protected |
Definition at line 75 of file mitkContourModelLiveWireInteractor.h.
Referenced by OnCheckPointClick(), and OnMovePoint().
|
protected |
Definition at line 78 of file mitkContourModelLiveWireInteractor.h.
Referenced by OnCheckPointClick(), OnDeletePoint(), and OnMovePoint().
|
protected |
Definition at line 79 of file mitkContourModelLiveWireInteractor.h.
Referenced by OnCheckPointClick(), OnDeletePoint(), and OnMovePoint().
|
protected |
Definition at line 77 of file mitkContourModelLiveWireInteractor.h.
Referenced by OnFinishEditing(), OnMovePoint(), and SetEditingContourModelNode().
|
protected |
Definition at line 66 of file mitkContourModelLiveWireInteractor.h.
Referenced by ContourModelLiveWireInteractor(), OnCheckPointClick(), OnDeletePoint(), OnMovePoint(), and SetWorkingImage().
|
protected |
Definition at line 69 of file mitkContourModelLiveWireInteractor.h.
Referenced by ContourModelLiveWireInteractor(), OnCheckPointClick(), OnDeletePoint(), and OnMovePoint().
|
protected |
Definition at line 72 of file mitkContourModelLiveWireInteractor.h.
Referenced by OnCheckPointClick().
|
protected |
Definition at line 70 of file mitkContourModelLiveWireInteractor.h.
Referenced by ContourModelLiveWireInteractor(), OnCheckPointClick(), OnDeletePoint(), and OnMovePoint().
|
protected |
Definition at line 73 of file mitkContourModelLiveWireInteractor.h.
Referenced by OnCheckPointClick().
|
protected |
Definition at line 67 of file mitkContourModelLiveWireInteractor.h.
Referenced by OnCheckPointClick(), OnMovePoint(), and SetWorkingImage().