32 if (m_DataNode.IsNotNull())
34 if (m_DataNode->GetDataInteractor() ==
this)
35 m_DataNode->SetDataInteractor(
nullptr);
46 if (dataNode == m_DataNode)
49 if (m_DataNode.IsNotNull())
50 m_DataNode->SetDataInteractor(
nullptr);
52 m_DataNode = dataNode;
54 if (dataNode !=
nullptr)
64 if (m_DataNode.IsNotNull())
65 m_DataNode->GetIntProperty(
"layer", layer);
72 MITK_WARN <<
"DataInteractor::ConnectActionsAndFunctions() is not implemented.";
77 auto mode = this->GetCurrentState()->GetMode();
79 if (mode ==
"PREFER_INPUT")
82 if (mode ==
"GRAB_INPUT")
90 this->GetDataNode()->InvokeEvent(StartInteraction());
95 this->GetDataNode()->InvokeEvent(ResultReady());
static const std::string IntLeaveWidget
virtual void DataNodeChanged()
Is called when a DataNode is initially set or changed To be implemented by sub-classes for initializa...
virtual void DataNodeChanged() override
Called when a DataNode has been set/changed.
static const std::string IntDeactivateMe
virtual ~DataInteractor()
ProcessEventMode GetMode() const
virtual void NotifyStart()
Sends StartInteraction event via the mitk::DataNode.
virtual void ConnectActionsAndFunctions() override
Overwrite this function to connect actions from StateMachine description with functions.
DataNode * GetDataNode() const
virtual void SetDataNode(DataNode *dataNode)
virtual void NotifyResultReady()
NotifyResultReady Sends ResultReady event via the mitk::DataNode.
virtual void SetDataInteractor(const DataInteractor::Pointer interactor)
Set the Interactor.
static const std::string IntEnterWidget
Class for nodes of the DataTree.