Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkContourModelLiveWireInteractor.h>
Public Member Functions | |
mitkClassMacro (ContourModelLiveWireInteractor, ContourModelInteractor) static Pointer New() | |
Pointer | Clone () const |
virtual void | SetEditingContourModelNode (mitk::DataNode *_arg) |
virtual void | SetWorkingImage (mitk::Image *_arg) |
virtual void | ConnectActionsAndFunctions () override |
Public Member Functions inherited from mitk::ContourModelInteractor | |
mitkClassMacro (ContourModelInteractor, DataInteractor) static Pointer New() | |
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 |
DataNode * | GetDataNode () 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... | |
Protected Member Functions | |
ContourModelLiveWireInteractor () | |
virtual | ~ContourModelLiveWireInteractor () |
virtual bool | OnCheckPointClick (const InteractionEvent *interactionEvent) override |
virtual bool | IsHovering (const InteractionEvent *interactionEvent) override |
virtual void | OnMovePoint (StateMachineAction *, InteractionEvent *interactionEvent) override |
virtual void | OnDeletePoint (StateMachineAction *, InteractionEvent *interactionEvent) override |
virtual 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 () | |
virtual | ~ContourModelInteractor () |
virtual void | OnMoveContour (StateMachineAction *, InteractionEvent *interactionEvent) |
Protected Member Functions inherited from mitk::DataInteractor | |
DataInteractor () | |
virtual | ~DataInteractor () |
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 () | |
virtual | ~EventStateMachine () |
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... | |
Protected Member Functions inherited from mitk::InteractionEventHandler | |
InteractionEventHandler () | |
virtual | ~InteractionEventHandler () |
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 |
UndoController * | m_UndoController |
bool | m_UndoEnabled |
Definition at line 41 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 29 of file mitkContourModelLiveWireInteractor.cpp.
References m_LiveWireFilter, m_NextActiveVertexDown, m_NextActiveVertexUp, and mitk::ImageLiveWireContourModelFilter::New().
|
protectedvirtual |
Definition at line 37 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 41 of file mitkContourModelLiveWireInteractor.cpp.
References CONNECT_CONDITION, and CONNECT_FUNCTION.
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 315 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::RenderingManager::GetInstance(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::BaseRenderer::GetRenderWindow(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::ContourModel::IsNearContour(), and mitk::RenderingManager::RequestUpdate().
mitk::ContourModelLiveWireInteractor::mitkClassMacro | ( | ContourModelLiveWireInteractor | , |
ContourModelInteractor | |||
) |
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 51 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::ContourModel::Deselect(), mitk::RenderingManager::GetInstance(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::BaseRenderer::GetRenderWindow(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::ContourModel::IteratorBegin(), mitk::ContourModel::IteratorEnd(), MITK_ERROR, mitk::ContourModel::New(), mitk::RenderingManager::RequestUpdate(), mitk::ContourModel::SelectVertexAt(), and mitk::ContourModel::SetSelectedVertexAsControlPoint().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 149 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::RenderingManager::GetInstance(), mitk::ContourModel::GetNumberOfVertices(), mitk::BaseRenderer::GetRenderWindow(), mitk::ContourModel::GetSelectedVertex(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::BaseData::GetTimeSteps(), mitk::ContourModel::IsClosed(), mitk::ContourModel::IsEmpty(), MITK_ERROR, mitk::ContourModel::New(), mitk::ContourModel::RemoveVertexAt(), and mitk::RenderingManager::RequestUpdate().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 477 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::ContourModel::Clear(), mitk::RenderingManager::GetInstance(), mitk::BaseRenderer::GetRenderWindow(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), and mitk::RenderingManager::RequestUpdate().
|
overrideprotectedvirtual |
Reimplemented from mitk::ContourModelInteractor.
Definition at line 202 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::RenderingManager::GetInstance(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::BaseRenderer::GetRenderWindow(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::BaseData::GetTimeSteps(), mitk::ContourModel::IsClosed(), MITK_ERROR, mitk::ContourModel::New(), and mitk::RenderingManager::RequestUpdate().
|
virtual |
Definition at line 132 of file mitkContourModelLiveWireInteractor.cpp.
|
virtual |
Definition at line 140 of file mitkContourModelLiveWireInteractor.cpp.
|
protected |
Definition at line 348 of file mitkContourModelLiveWireInteractor.cpp.
References mitk::ContourModel::AddVertex(), mitk::ContourModel::GetSelectedVertex(), mitk::ContourModel::IteratorBegin(), and mitk::ContourModel::IteratorEnd().
|
protected |
Definition at line 78 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 81 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 82 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 80 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 69 of file mitkContourModelLiveWireInteractor.h.
Referenced by ContourModelLiveWireInteractor().
|
protected |
Definition at line 72 of file mitkContourModelLiveWireInteractor.h.
Referenced by ContourModelLiveWireInteractor().
|
protected |
Definition at line 75 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 73 of file mitkContourModelLiveWireInteractor.h.
Referenced by ContourModelLiveWireInteractor().
|
protected |
Definition at line 76 of file mitkContourModelLiveWireInteractor.h.
|
protected |
Definition at line 70 of file mitkContourModelLiveWireInteractor.h.