Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::TubeGraphDataInteractor Class Reference

#include <mitkTubeGraphDataInteractor.h>

Inheritance diagram for mitk::TubeGraphDataInteractor:
Collaboration diagram for mitk::TubeGraphDataInteractor:

Public Types

enum  ActivationMode {
  None, Single, ToRoot, ToPeriphery,
  Points, Multiple
}
 
enum  ActionMode {
  AttributationMode, AnnotationMode, EditMode, RootMode,
  InformationMode
}
 
- 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
 

Public Member Functions

 mitkClassMacro (TubeGraphDataInteractor, DataInteractor)
 
void SetActivationMode (const ActivationMode &activationMode)
 
ActivationMode GetActivationMode ()
 
void SetActionMode (const ActionMode &actionMode)
 
ActionMode GetActionMode ()
 
void ResetPickedTubes ()
 
- 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::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

 TubeGraphDataInteractor ()
 
virtual ~TubeGraphDataInteractor ()
 
virtual void ConnectActionsAndFunctions () override
 
virtual void DataNodeChanged () override
 
virtual bool CheckOverTube (const InteractionEvent *)
 
virtual void SelectTube (StateMachineAction *, InteractionEvent *)
 
virtual void DeselectTube (StateMachineAction *, InteractionEvent *)
 
void SelectTubesByActivationModus ()
 
void UpdateActivation ()
 
- Protected Member Functions inherited from mitk::DataInteractor
 DataInteractor ()
 
virtual ~DataInteractor ()
 
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)
 
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 ()
 
virtual ~InteractionEventHandler ()
 
PropertyList::Pointer GetAttributes () const
 
std::string MapToEventVariant (InteractionEvent *interactionEvent)
 
virtual void ConfigurationChanged ()
 

Additional Inherited Members

- 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
 
- Protected Attributes inherited from mitk::EventStateMachine
bool m_IsActive
 
UndoControllerm_UndoController
 
bool m_UndoEnabled
 

Detailed Description

Definition at line 39 of file mitkTubeGraphDataInteractor.h.

Constructor & Destructor Documentation

mitk::TubeGraphDataInteractor::TubeGraphDataInteractor ( )
protected

Definition at line 31 of file mitkTubeGraphDataInteractor.cpp.

mitk::TubeGraphDataInteractor::~TubeGraphDataInteractor ( )
protectedvirtual

Definition at line 39 of file mitkTubeGraphDataInteractor.cpp.

Member Function Documentation

bool mitk::TubeGraphDataInteractor::CheckOverTube ( const InteractionEvent interactionEvent)
protectedvirtual
void mitk::TubeGraphDataInteractor::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 43 of file mitkTubeGraphDataInteractor.cpp.

References CONNECT_CONDITION, and CONNECT_FUNCTION.

void mitk::TubeGraphDataInteractor::DataNodeChanged ( )
overrideprotectedvirtual

This function is called when a DataNode has been set/changed.

Reimplemented from mitk::DataInteractor.

Definition at line 54 of file mitkTubeGraphDataInteractor.cpp.

References GetData(), and MITK_ERROR.

mitk::TubeGraphDataInteractor::ActionMode mitk::TubeGraphDataInteractor::GetActionMode ( )

Definition at line 146 of file mitkTubeGraphDataInteractor.cpp.

mitk::TubeGraphDataInteractor::ActivationMode mitk::TubeGraphDataInteractor::GetActivationMode ( )

Definition at line 136 of file mitkTubeGraphDataInteractor.cpp.

mitk::TubeGraphDataInteractor::mitkClassMacro ( TubeGraphDataInteractor  ,
DataInteractor   
)
static Pointer mitk::TubeGraphDataInteractor::New ( )
static
void mitk::TubeGraphDataInteractor::ResetPickedTubes ( )

Definition at line 276 of file mitkTubeGraphDataInteractor.cpp.

References mitk::TubeGraph::ErrorId.

void mitk::TubeGraphDataInteractor::SelectTubesByActivationModus ( )
protected

Definition at line 151 of file mitkTubeGraphDataInteractor.cpp.

References mitk::TubeGraph::ErrorId.

void mitk::TubeGraphDataInteractor::SetActionMode ( const ActionMode actionMode)

Definition at line 141 of file mitkTubeGraphDataInteractor.cpp.

void mitk::TubeGraphDataInteractor::SetActivationMode ( const ActivationMode activationMode)

Definition at line 128 of file mitkTubeGraphDataInteractor.cpp.

References mitk::TubeGraph::ErrorId.

void mitk::TubeGraphDataInteractor::UpdateActivation ( )
protected

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