Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkTubeGraphDataInteractor.h>
Public Types | |
enum | ActivationMode { None, Single, ToRoot, ToPeriphery, Points, Multiple } |
enum | ActionMode { AttributationMode, AnnotationMode, EditMode, RootMode, InformationMode } |
![]() | |
typedef DataInteractor | Self |
typedef EventStateMachine | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
![]() | |
typedef EventStateMachine | Self |
typedef InteractionEventHandler | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef std::map< std::string, TActionFunctor * > | ActionFunctionsMapType |
typedef itk::SmartPointer< StateMachineState > | StateMachineStateType |
![]() | |
typedef InteractionEventHandler | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
mitkClassMacro (TubeGraphDataInteractor, DataInteractor) | |
void | SetActivationMode (const ActivationMode &activationMode) |
ActivationMode | GetActivationMode () |
void | SetActionMode (const ActionMode &actionMode) |
ActionMode | GetActionMode () |
void | ResetPickedTubes () |
mitk::Point3D | GetLastPickedPosition () |
![]() | |
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 const char * | GetStaticNameOfClass () |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
![]() | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
TubeGraphDataInteractor () | |
~TubeGraphDataInteractor () override | |
void | ConnectActionsAndFunctions () override |
void | DataNodeChanged () override |
virtual bool | CheckOverTube (const InteractionEvent *) |
virtual void | SelectTube (StateMachineAction *, InteractionEvent *) |
virtual void | DeselectTube (StateMachineAction *, InteractionEvent *) |
void | SelectTubesByActivationModus () |
void | UpdateActivation () |
![]() | |
DataInteractor () | |
~DataInteractor () override | |
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 () |
Additional Inherited Members | |
![]() | |
static const std::string | IntDeactivateMe |
static const std::string | IntLeaveWidget |
static const std::string | IntEnterWidget |
![]() | |
typedef MessageAbstractDelegate2< StateMachineAction *, InteractionEvent *, void > | ActionFunctionDelegate |
typedef MessageAbstractDelegate1< const InteractionEvent *, bool > | ConditionFunctionDelegate |
![]() | |
bool | m_IsActive |
UndoController * | m_UndoController |
bool | m_UndoEnabled |
Definition at line 35 of file mitkTubeGraphDataInteractor.h.
Enumerator | |
---|---|
AttributationMode | |
AnnotationMode | |
EditMode | |
RootMode | |
InformationMode |
Definition at line 62 of file mitkTubeGraphDataInteractor.h.
Describes, which activation modes are available based on the currently picked tube:
Enumerator | |
---|---|
None | |
Single | |
ToRoot | |
ToPeriphery | |
Points | |
Multiple |
Definition at line 52 of file mitkTubeGraphDataInteractor.h.
|
protected |
Definition at line 27 of file mitkTubeGraphDataInteractor.cpp.
References mitk::None.
|
overrideprotected |
Definition at line 35 of file mitkTubeGraphDataInteractor.cpp.
|
protectedvirtual |
Initializes the movement, stores starting position.
Definition at line 67 of file mitkTubeGraphDataInteractor.cpp.
References mitk::TubeGraph::ErrorId.
Referenced by ConnectActionsAndFunctions().
|
overrideprotectedvirtual |
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::DataInteractor.
Definition at line 37 of file mitkTubeGraphDataInteractor.cpp.
References CheckOverTube(), CONNECT_CONDITION, CONNECT_FUNCTION, DeselectTube(), and SelectTube().
|
overrideprotectedvirtual |
This function is called when a DataNode has been set/changed.
Reimplemented from mitk::DataInteractor.
Definition at line 48 of file mitkTubeGraphDataInteractor.cpp.
References mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), and MITK_ERROR.
|
protectedvirtual |
Definition at line 110 of file mitkTubeGraphDataInteractor.cpp.
References mitk::StatusBar::DisplayText(), mitk::StatusBar::GetInstance(), mitk::RenderingManager::GetInstance(), Multiple, Points, and mitk::RenderingManager::RequestUpdateAll().
Referenced by ConnectActionsAndFunctions().
mitk::TubeGraphDataInteractor::ActionMode mitk::TubeGraphDataInteractor::GetActionMode | ( | ) |
Definition at line 143 of file mitkTubeGraphDataInteractor.cpp.
mitk::TubeGraphDataInteractor::ActivationMode mitk::TubeGraphDataInteractor::GetActivationMode | ( | ) |
Definition at line 133 of file mitkTubeGraphDataInteractor.cpp.
mitk::Point3D mitk::TubeGraphDataInteractor::GetLastPickedPosition | ( | ) |
Definition at line 279 of file mitkTubeGraphDataInteractor.cpp.
References mitk::TubeElement::GetCoordinates().
mitk::TubeGraphDataInteractor::mitkClassMacro | ( | TubeGraphDataInteractor | , |
DataInteractor | |||
) |
|
static |
void mitk::TubeGraphDataInteractor::ResetPickedTubes | ( | ) |
Definition at line 273 of file mitkTubeGraphDataInteractor.cpp.
References mitk::TubeGraph::ErrorId.
|
protectedvirtual |
Definition at line 91 of file mitkTubeGraphDataInteractor.cpp.
References mitk::StatusBar::DisplayText(), mitk::StatusBar::GetInstance(), mitk::RenderingManager::GetInstance(), None, mitk::RenderingManager::RequestUpdateAll(), and SelectTubesByActivationModus().
Referenced by ConnectActionsAndFunctions().
|
protected |
Definition at line 148 of file mitkTubeGraphDataInteractor.cpp.
References mitk::TubeGraph::ErrorId, and UpdateActivation().
Referenced by SelectTube().
void mitk::TubeGraphDataInteractor::SetActionMode | ( | const ActionMode & | actionMode | ) |
Definition at line 138 of file mitkTubeGraphDataInteractor.cpp.
void mitk::TubeGraphDataInteractor::SetActivationMode | ( | const ActivationMode & | activationMode | ) |
Definition at line 125 of file mitkTubeGraphDataInteractor.cpp.
References mitk::TubeGraph::ErrorId, and UpdateActivation().
|
protected |
Definition at line 156 of file mitkTubeGraphDataInteractor.cpp.
References mitk::TubeGraph::ErrorId, mitk::RenderingManager::GetInstance(), MITK_WARN, Multiple, None, Points, mitk::RenderingManager::RequestUpdateAll(), RootMode, Single, ToPeriphery, and ToRoot.
Referenced by SelectTubesByActivationModus(), and SetActivationMode().