13 #ifndef mitkDisplayActionEventHandler_h
14 #define mitkDisplayActionEventHandler_h
This class serves as an event state machine while simultaneously observing interaction events....
This class simplifies the process of adding an itkEventObject-itkCommand pair as an observer of a Dis...
std::vector< OberserverTagType > m_ObserverTags
virtual void InitActionsImpl(const std::string &prefixFilter="")
Sub-classes need to implement this function to define a customized behavior for default action pre-de...
void SetObservableBroadcast(DisplayActionEventBroadcast *observableBroadcast)
Sets the display action event broadcast class that should be observed. This class receives events fro...
WeakPointer< DisplayActionEventBroadcast > m_ObservableBroadcast
OberserverTagType ConnectDisplayActionEvent(const DisplayActionEvent &displayActionEvent, const StdFunctionCommand::ActionFunction &actionFunction, const StdFunctionCommand::FilterFunction &filterFunction=[](const itk::EventObject &) { return true;})
Uses the given std::functions to customize a command: The display action event is used to define on w...
void DisconnectObserver(OberserverTagType observerTag)
Uses the given observer tag to remove the corresponding custom command as an observer of the observed...
void InitActions(std::string prefixFilter="")
This function can be used by sub-classes to initialize a set of pre-defined DisplayActionEventFunctio...
unsigned long OberserverTagType
const std::vector< OberserverTagType > & GetAllObserverTags()
virtual ~DisplayActionEventHandler()
std::function< void(const itk::EventObject &)> ActionFunction
std::function< bool(const itk::EventObject &)> FilterFunction
Find image slices visible on a given plane.