handles all global Events More...
#include <mitkGlobalInteraction.h>
Public Types | |
typedef GlobalInteraction | Self |
typedef StateMachine | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
typedef std::vector < StateMachine::Pointer > | StateMachineList |
typedef std::vector < StateMachine * > | StateMachineCPointerList |
typedef StateMachineList::iterator | StateMachineListIter |
typedef StateMachineCPointerList::iterator | StateMachineCPointerListIter |
typedef std::vector < Interactor::Pointer > | InteractorList |
typedef InteractorList::iterator | InteractorListIter |
typedef std::multimap< float, Interactor::Pointer, std::greater< double > > | InteractorMap |
typedef InteractorMap::iterator | InteractorMapIter |
Public Member Functions | |
virtual const char * | GetClassName () const |
void | AddInteractor (Interactor *interactor) |
add an Interactor to the list of all interactors that are asked for handling an event | |
bool | RemoveInteractor (Interactor *interactor) |
remove a certain Interactor from the set of interactors that are asked for handling an event | |
bool | InteractorRegistered (Interactor *interactor) |
returns true, if the given interactor is already added to the Interactor-List | |
void | AddListener (StateMachine *listener) |
add a Listener to the list of all Listeners that are informed of an event | |
bool | RemoveListener (StateMachine *listener) |
remove a certain Listener from the set of Listeners that are informed of an event | |
bool | ListenerRegistered (Interactor *interactor) |
returns true, if the given interactor is already added to the Listener-List | |
bool | AddFocusElement (FocusManager::FocusElement *element) |
adds an element in the list in FocusManager | |
bool | RemoveFocusElement (FocusManager::FocusElement *element) |
Removes an element in FocusManager. | |
FocusManager::FocusElement * | GetFocus () |
Returns the focused Element in FocusManager. | |
bool | SetFocus (FocusManager::FocusElement *element) |
Sets the given Element to focused. | |
FocusManager * | GetFocusManager () |
Returns the pointer to the FocusManager. | |
EventMapper * | GetEventMapper () |
Returns the pointer to the EventMapper. | |
StateMachineFactory * | GetStateMachineFactory () |
Return StateMachineFactory. | |
State * | GetStartState (const char *type) |
Returns the StartState of the StateMachine with the name type;. | |
bool | Initialize (const char *globalInteractionName, const std::string XMLBehaviorInput="") |
Initializes the global (singleton) instance of GlobalInteraction via an XML string. Must! be done before usage. Can be done only once. Can be used with an empty string (default), a file name with path, or the actual XML content as string. | |
bool | IsInitialized () |
Check if GlobalInteraction has already been initialized. Init must! be done before usage. | |
Static Public Member Functions | |
static Pointer | New () |
static GlobalInteraction * | GetInstance () |
Returns the global (singleton) instance of GlobalInteraction. Create it, if it does not exist. | |
Protected Member Functions | |
GlobalInteraction () | |
Default Constructor with type to load the StateMachinePattern of the StateMachine. | |
~GlobalInteraction () | |
Default destructor. | |
virtual bool | ExecuteAction (Action *action, mitk::StateEvent const *stateEvent) |
Method called in HandleEvent after Statechange. | |
virtual bool | AddToSelectedInteractors (Interactor *interactor) |
virtual bool | RemoveFromSelectedInteractors (Interactor *interactor) |
Friends | |
class | Interactor |
handles all global Events
superior statemachine, that spreads the events to all other interactors
Initialization Attention: GlobalInteraction must be initialized by the Initialize() method before usage by giving it an XML scheme. Possibilities are giving it an empty string (default), the filename of an XML file or the actual XML content as std::string. If an empty string is given, the content is tried to be loaded from the default file location.
Concept of sending events: In this concept of interaction, the statemachines can be divided into two main statemachines: Listeners and interactors. Listeners only receive the event to process it, but don't change any data. They want to listen to all events. Interactors do change data according to the received event. They do not need to receive all events, only those they are interested in.
To divide these two types of statemachine this class holds three lists and one map: m_ListenerList, m_InteractorList, m_SelectedList and m_JurisdictionMap The list m_ListenerList holds all listeners. m_InteractorList holds all interactors, and the List m_SelectedList holds all machines, that were set to SELECTED or SUBSELECTED. m_JurisdictionMap maps values returned from CanHandleEvent to the asked Interactors. Through this map stepping through interactors, that were not selected and could handle that event, can be done.
First the listeners are informed with the event. Then the selected or subselected interactors are asked if they can handle that event. They can handle it, if the mode of the interactor after HandleEvent(..) is still in SMSELECTED or SMSUBSELECTED. They can't handle it, if the mode changed to SMDESELECTED. Then the interactor is removed from the selected-list. In that case, all interactors are asked to calculate and return their area of jurisdiction. An iterator is held on one interactor in the map. With the iterator, the map can be looped through so so that several geometric objects, that lie on top of each other, can be selected.
Definition at line 65 of file mitkGlobalInteraction.h.
typedef itk::SmartPointer<const Self> mitk::GlobalInteraction::ConstPointer |
Reimplemented from mitk::StateMachine.
Definition at line 68 of file mitkGlobalInteraction.h.
typedef std::vector<Interactor::Pointer> mitk::GlobalInteraction::InteractorList |
Definition at line 75 of file mitkGlobalInteraction.h.
typedef InteractorList::iterator mitk::GlobalInteraction::InteractorListIter |
Definition at line 76 of file mitkGlobalInteraction.h.
typedef std::multimap<float, Interactor::Pointer, std::greater<double> > mitk::GlobalInteraction::InteractorMap |
Definition at line 77 of file mitkGlobalInteraction.h.
typedef InteractorMap::iterator mitk::GlobalInteraction::InteractorMapIter |
Definition at line 78 of file mitkGlobalInteraction.h.
typedef itk::SmartPointer<Self> mitk::GlobalInteraction::Pointer |
Reimplemented from mitk::StateMachine.
Definition at line 68 of file mitkGlobalInteraction.h.
Reimplemented from mitk::StateMachine.
Definition at line 68 of file mitkGlobalInteraction.h.
typedef std::vector<StateMachine*> mitk::GlobalInteraction::StateMachineCPointerList |
Definition at line 72 of file mitkGlobalInteraction.h.
typedef StateMachineCPointerList::iterator mitk::GlobalInteraction::StateMachineCPointerListIter |
Definition at line 74 of file mitkGlobalInteraction.h.
typedef std::vector<StateMachine::Pointer> mitk::GlobalInteraction::StateMachineList |
Definition at line 69 of file mitkGlobalInteraction.h.
typedef StateMachineList::iterator mitk::GlobalInteraction::StateMachineListIter |
Definition at line 73 of file mitkGlobalInteraction.h.
Reimplemented from mitk::StateMachine.
Definition at line 68 of file mitkGlobalInteraction.h.
mitk::GlobalInteraction::GlobalInteraction | ( | ) | [protected] |
Default Constructor with type to load the StateMachinePattern of the StateMachine.
XMLbehaviorFile | the file which contains the statemachine and event patterns |
type | the name of the statemachine pattern this class shall use |
Definition at line 30 of file mitkGlobalInteraction.cpp.
: StateMachine(NULL) , m_StateMachineFactory(NULL) , m_EventMapper(NULL) , m_CurrentlyInInformListenersLoop(false) , m_CurrentlyInInformInteractorsLoop(false) , m_IsInitialized(false) { }
mitk::GlobalInteraction::~GlobalInteraction | ( | ) | [protected] |
Default destructor.
Definition at line 40 of file mitkGlobalInteraction.cpp.
{ //s_GlobalInteraction doesn't have to be set = NULL; // StateMachineFactory and EventMapper have to be deleted explicitly, as they inherit from Vtk if (this->IsInitialized()) { m_StateMachineFactory->Delete(); m_StateMachineFactory = NULL; m_EventMapper->Delete(); m_EventMapper = NULL; } m_ListenerList.clear(); m_InteractorList.clear(); m_SelectedList.clear(); m_JurisdictionMap.clear(); m_FocusManager = NULL; }
bool mitk::GlobalInteraction::AddFocusElement | ( | FocusManager::FocusElement * | element ) |
adds an element in the list in FocusManager
true if success, false if the element is already in list
Definition at line 263 of file mitkGlobalInteraction.cpp.
{
return m_FocusManager->AddElement(element);
}
void mitk::GlobalInteraction::AddInteractor | ( | mitk::Interactor * | interactor ) |
add an Interactor to the list of all interactors that are asked for handling an event
returns true in case of success
Definition at line 123 of file mitkGlobalInteraction.cpp.
References mitk::Interactor::GetMode(), and mitk::Interactor::SMSELECTED.
Referenced by mitk::DataNode::SetInteractorEnabled().
{ if(interactor == NULL) return; if ( std::find(m_InteractorList.begin(), m_InteractorList.end(),interactor) == m_InteractorList.end() ) { m_InteractorList.push_back(interactor); //if Interactor already selected, then add to selected list if (interactor->GetMode()==Interactor::SMSELECTED) this->AddToSelectedInteractors(interactor); } }
void mitk::GlobalInteraction::AddListener | ( | mitk::StateMachine * | listener ) |
add a Listener to the list of all Listeners that are informed of an event
returns true in case of success
Definition at line 74 of file mitkGlobalInteraction.cpp.
References MITK_WARN.
Referenced by mitk::ToolManager::ActivateTool(), QmitkStdMultiWidget::EnableNavigationControllerEventListening(), QmitkStdMultiWidget::EnablePositionTracking(), mitk::ToolManager::RegisterClient(), mitk::SpaceNavigatorActivator::RegisterInputDevice(), QmitkStdMultiWidget::SetWidgetPlaneMode(), and mitk::TDMouseVtkCameraController::TDMouseVtkCameraController().
{ if(listener == NULL) return; if(dynamic_cast<Interactor*>(listener)!=NULL) { MITK_WARN << "Trying to add an Interactor (" << listener->GetNameOfClass() << ") as a listener. " << "This will probably cause problems"; } if ( std::find(m_ListenerList.begin(), m_ListenerList.end(),listener) == m_ListenerList.end() ) { m_ListenerList.push_back(listener); } }
bool mitk::GlobalInteraction::AddToSelectedInteractors | ( | mitk::Interactor * | interactor ) | [protected, virtual] |
Definition at line 353 of file mitkGlobalInteraction.cpp.
Referenced by mitk::Interactor::OnModeSelect().
{ InteractorListIter position = std::find(m_SelectedList.begin(), m_SelectedList.end(),interactor); if (position != m_SelectedList.end()) { //already added so don't add once more! return true; } else m_SelectedList.push_back(interactor); return true; }
bool mitk::GlobalInteraction::ExecuteAction | ( | Action * | action, |
mitk::StateEvent const * | stateEvent | ||
) | [protected, virtual] |
Method called in HandleEvent after Statechange.
look up which object method is associated to the given action and call the method
Each statechange has actions, which can be assigned by it's number. If you are developing a new statemachine, declare all your operations here and send them to Undo-Controller and to the Data. Object- and group-EventId can also be accessed through static methods from OperationEvent
Reimplemented from mitk::StateMachine.
Definition at line 299 of file mitkGlobalInteraction.cpp.
References mitk::AcASKINTERACTORS, mitk::AcDONOTHING, mitk::AcINFORMLISTENERS, and mitk::Action::GetActionId().
{ bool ok = false; ok = false; switch (action->GetActionId()) { case AcDONOTHING: ok = true; break; case AcINFORMLISTENERS: InformListeners(stateEvent); ok = true; break; case AcASKINTERACTORS: if (! AskSelected(stateEvent))//no interactor selected anymore { //fill the jurisdictionMap to ask them bit by bit. //currentInteractor is set here to the beginning FillJurisdictionMap(stateEvent, 0); //ask the Interactors to handle that event AskCurrentInteractor(stateEvent); } ok = true; break; default: ok = true; } return ok; }
virtual const char* mitk::GlobalInteraction::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::StateMachine.
mitk::EventMapper * mitk::GlobalInteraction::GetEventMapper | ( | ) |
Returns the pointer to the EventMapper.
to add an addon
Definition at line 288 of file mitkGlobalInteraction.cpp.
References MITK_FATAL.
{ if (!this->IsInitialized()) { MITK_FATAL <<"Global Interaction needs initialization!\n"; return NULL; } return m_EventMapper; }
mitk::FocusManager::FocusElement * mitk::GlobalInteraction::GetFocus | ( | ) |
Returns the focused Element in FocusManager.
Definition at line 273 of file mitkGlobalInteraction.cpp.
References mitk::BaseRenderer::GetFocused().
Referenced by mitk::AffineInteractor::ConvertDisplayEventToWorldPosition(), mitk::SpaceNavigatorVtkCameraController::OnSpaceNavigatorEvent(), and mitk::TDMouseVtkCameraController::OnTDMouseEvent().
{
return m_FocusManager->GetFocused();
}
mitk::FocusManager * mitk::GlobalInteraction::GetFocusManager | ( | ) |
Returns the pointer to the FocusManager.
to add the observer for an event
Definition at line 283 of file mitkGlobalInteraction.cpp.
{
return m_FocusManager.GetPointer();
}
mitk::GlobalInteraction * mitk::GlobalInteraction::GetInstance | ( | ) | [static] |
Returns the global (singleton) instance of GlobalInteraction. Create it, if it does not exist.
Definition at line 332 of file mitkGlobalInteraction.cpp.
References New().
Referenced by QmitkMovieMaker::Activated(), QmitkMeasurement::Activated(), mitk::ToolManager::ActivateTool(), QmitkImageCropper::AddBoundingObjectToNode(), mitk::AffineInteractor::ConvertDisplayEventToWorldPosition(), QmitkStdMultiWidgetEditor::CreateQtPartControl(), QmitkViewInitializationView::Deactivated(), QmitkMovieMaker::Deactivated(), QmitkMeasurement::Deactivated(), QmitkStdMultiWidget::DisableNavigationControllerEventListening(), QmitkStdMultiWidget::DisablePositionTracking(), QmitkStdMultiWidget::EnableNavigationControllerEventListening(), QmitkStdMultiWidget::EnablePositionTracking(), mitk::StateMachine::ExpandStartStateVector(), QmitkMovieMaker::FocusChange(), mitk::WiiMoteAddOn::ForwardEvent(), mitk::SpaceNavigatorAddOn::ForwardEvent(), QmitkMovieMaker::GenerateScreenshot(), Step6::Initialize(), mitk::StateMachine::InitializeStartStates(), QmitkStdMultiWidget::InitializeWidget(), QmitkViewInitializationView::InitRenderWindowSelector(), mitk::DataNode::IsInteractorEnabled(), mitk::TDMouseEventThrower::KeyDown(), main(), mitk::EventMapper::MapEvent(), mitk::ConferenceEventMapper::MapEvent(), mitkCameraVisualizationTest(), mitkContourMapper2DTest(), mitkDataNodeExtTest(), mitkDataNodeTest(), mitkEventTest(), mitkFocusManagerTest(), mitkGlobalInteractionTest(), mitkInteractorTest(), mitkPointSetInteractorTest(), mitkStateMachineTest(), mitkToolManagerTest(), QmitkMeasurement::NodeAddedInDataStorage(), QmitkPointListWidget::ObserveNewNode(), QmitkPointListWidget::OnBtnAddPoint(), mitk::Interactor::OnModeDeselect(), mitk::Interactor::OnModeSelect(), QmitkSimpleMeasurement::OnSelectionChanged(), mitk::SpaceNavigatorVtkCameraController::OnSpaceNavigatorEvent(), mitk::TDMouseVtkCameraController::OnTDMouseEvent(), QmitkRegisterClasses(), mitk::ToolManager::RegisterClient(), mitk::SpaceNavigatorActivator::RegisterInputDevice(), QmitkImageCropper::RemoveBoundingObjectFromNode(), mitk::StateMachine::ResetStatemachineToStartState(), QmitkBoundingObjectWidget::SelectionChanged(), mitk::TDMouseEventThrower::SensorInput(), mitk::DataNode::SetInteractorEnabled(), QmitkMovieMaker::SetStepperWindow(), Step8::SetupWidgets(), QmitkStdMultiWidget::SetWidgetPlaneMode(), QmitkCommonActivator::Start(), mitk::TDMouseVtkCameraController::TDMouseVtkCameraController(), mitkPointSetInteractorTestClass::TestOnlyMovePointSetInteractor(), mitkPointSetInteractorTestClass::TestPointSetInteractor(), mitkPointSetInteractorTestClass::TestSeedPointSetInteractor(), mitkPointSetInteractorTestClass::TestSinglePointSetInteractorWithoutShiftClick(), mitk::ToolManager::UnregisterClient(), mitk::SpaceNavigatorActivator::UnRegisterInputDevice(), QmitkViewInitializationView::UpdateRendererList(), QmitkSlicesInterpolator::UpdateVisibleSuggestion(), mitk::DataNode::~DataNode(), QmitkPointListWidget::~QmitkPointListWidget(), mitk::RenderingManager::~RenderingManager(), and mitk::ToolManager::~ToolManager().
{ static mitk::GlobalInteraction::Pointer s_GlobalInteraction; if (s_GlobalInteraction.IsNull()) { s_GlobalInteraction = mitk::GlobalInteraction::New(); } return s_GlobalInteraction; }
mitk::State * mitk::GlobalInteraction::GetStartState | ( | const char * | type ) |
Returns the StartState of the StateMachine with the name type;.
Asks member StateMachineFactory for the StartState. Returns NULL if no entry with name type is found.
Definition at line 344 of file mitkGlobalInteraction.cpp.
References MITK_FATAL.
Referenced by mitk::StateMachine::ExpandStartStateVector(), mitk::StateMachine::InitializeStartStates(), and mitk::StateMachine::ResetStatemachineToStartState().
{ if ( this->IsInitialized() ) return m_StateMachineFactory->GetStartState(type); MITK_FATAL << "Fatal Error in mitkGlobalInteraction.cpp: GlobalInteraction not initialized!\n"; return NULL; }
mitk::StateMachineFactory * mitk::GlobalInteraction::GetStateMachineFactory | ( | ) |
Return StateMachineFactory.
Definition at line 382 of file mitkGlobalInteraction.cpp.
{
return m_StateMachineFactory;
}
bool mitk::GlobalInteraction::Initialize | ( | const char * | globalInteractionName, |
const std::string | XMLBehaviorInput = "" |
||
) |
Initializes the global (singleton) instance of GlobalInteraction via an XML string. Must! be done before usage. Can be done only once. Can be used with an empty string (default), a file name with path, or the actual XML content as string.
Definition at line 387 of file mitkGlobalInteraction.cpp.
References MITK_FATAL, MITK_WARN, mitk::EventMapper::New(), mitk::StateMachineFactory::New(), and mitk::FocusManager::New().
{ if (this->IsInitialized()) { MITK_WARN <<"Global Interaction has already been initialized.\n"; return false; } m_FocusManager = FocusManager::New(); // instantiates m_StateMachineFactory and load interaction patterns from XML string //if factory has been initialized before, delete it and initialize once more to not add patterns if (m_StateMachineFactory) m_StateMachineFactory->Delete(); m_StateMachineFactory = StateMachineFactory::New(); //if EventMapper was initialized before, delete it and initialize once more // to create new event descriptions and not to add them if (m_EventMapper) m_EventMapper->Delete(); m_EventMapper = EventMapper::New(); bool success = true; if (XMLBehaviorInput == "") { //load default behavior success &= m_StateMachineFactory->LoadStandardBehavior(); success &= m_EventMapper->LoadStandardBehavior(); } else if (itksys::SystemTools::FileExists(XMLBehaviorInput.c_str()) ) { // load standard behavior from file success &= m_StateMachineFactory->LoadBehavior(XMLBehaviorInput); success &= m_EventMapper->LoadBehavior(XMLBehaviorInput); } else { //load standard behavior from XML string success &= m_StateMachineFactory->LoadBehaviorString(XMLBehaviorInput); success &= m_EventMapper->LoadBehaviorString(XMLBehaviorInput); } if(!success) { MITK_FATAL << "Error initializing global interaction!\n"; return false; } //now instantiate what could not be done in InitializeStateStates because StateMachineFactory was not up yet: // (Re-) Initialize Superclass (StateMachine), because type was not given at time of construction m_Type = globalInteractionName; //get the start state of the pattern State::Pointer startState = m_StateMachineFactory->GetStartState(globalInteractionName); if (startState.IsNull()) { MITK_FATAL << "Fatal Error in mitkGlobalInteraction.cpp: No StartState recieved from StateMachineFactory!\n"; return false; } //clear the vector m_CurrentStateVector.clear(); //add the start state pointer for the first time step to the list m_CurrentStateVector.push_back(startState); m_IsInitialized = true; return true; }
bool mitk::GlobalInteraction::InteractorRegistered | ( | mitk::Interactor * | interactor ) |
returns true, if the given interactor is already added to the Interactor-List
Definition at line 136 of file mitkGlobalInteraction.cpp.
Referenced by mitk::DataNode::IsInteractorEnabled().
{ if ( std::find(m_InteractorList.begin(), m_InteractorList.end(), interactor) == m_InteractorList.end() ) return false; else return true; }
bool mitk::GlobalInteraction::IsInitialized | ( | ) | [inline] |
Check if GlobalInteraction has already been initialized. Init must! be done before usage.
Definition at line 172 of file mitkGlobalInteraction.h.
{return m_IsInitialized;};
bool mitk::GlobalInteraction::ListenerRegistered | ( | mitk::Interactor * | interactor ) |
returns true, if the given interactor is already added to the Listener-List
Definition at line 144 of file mitkGlobalInteraction.cpp.
{ if ( std::find(m_ListenerList.begin(), m_ListenerList.end(), interactor) == m_ListenerList.end() ) return false; else return true; }
static Pointer mitk::GlobalInteraction::New | ( | ) | [static] |
Referenced by GetInstance(), mitkGlobalInteractionTest(), and mitkRenderingManagerTest().
bool mitk::GlobalInteraction::RemoveFocusElement | ( | FocusManager::FocusElement * | element ) |
Removes an element in FocusManager.
true if success, false if the element was not in the list
Definition at line 268 of file mitkGlobalInteraction.cpp.
{
return m_FocusManager->RemoveElement(element);
}
bool mitk::GlobalInteraction::RemoveFromSelectedInteractors | ( | mitk::Interactor * | interactor ) | [protected, virtual] |
Definition at line 367 of file mitkGlobalInteraction.cpp.
Referenced by mitk::Interactor::OnModeDeselect().
{ if (interactor == NULL) return false; InteractorListIter position = std::find(m_SelectedList.begin(), m_SelectedList.end(),interactor); if (position != m_SelectedList.end()) { position = m_SelectedList.erase(position); return true; } else return false; }
bool mitk::GlobalInteraction::RemoveInteractor | ( | mitk::Interactor * | interactor ) |
remove a certain Interactor from the set of interactors that are asked for handling an event
returns true in case of success
Definition at line 152 of file mitkGlobalInteraction.cpp.
Referenced by mitk::DataNode::SetInteractorEnabled(), and mitk::DataNode::~DataNode().
{ InteractorListIter position = std::find(m_InteractorList.begin(), m_InteractorList.end(),interactor); if (position == m_InteractorList.end()) return false; position = m_InteractorList.erase(position); //check if the interactor is also held in SelectedList this->RemoveFromSelectedInteractors(interactor); //check if in JurisdictionMap for (InteractorMapIter it = m_JurisdictionMap.begin(); it != m_JurisdictionMap.end(); it++) { if ((*it).second == interactor) { if (m_CurrentInteractorIter == it) m_CurrentInteractorIter = m_JurisdictionMap.end(); m_JurisdictionMap.erase(it); break; } } return true; }
bool mitk::GlobalInteraction::RemoveListener | ( | mitk::StateMachine * | listener ) |
remove a certain Listener from the set of Listeners that are informed of an event
returns true in case of success
Definition at line 91 of file mitkGlobalInteraction.cpp.
Referenced by mitk::ToolManager::ActivateTool(), QmitkStdMultiWidget::DisableNavigationControllerEventListening(), QmitkStdMultiWidget::DisablePositionTracking(), QmitkStdMultiWidget::SetWidgetPlaneMode(), mitk::ToolManager::UnregisterClient(), mitk::SpaceNavigatorActivator::UnRegisterInputDevice(), and mitk::ToolManager::~ToolManager().
{ // Defers removal to a time after the current event handling is finished. Otherwise the implementation of InformListeners would crash sometimes. m_ListenersFlaggedForRemoval.push_back(listener); StateMachineListIter position = std::find(m_ListenerList.begin(), m_ListenerList.end(),listener); bool removePossible = (position != m_ListenerList.end()); RemoveFlaggedListeners(); return removePossible; }
bool mitk::GlobalInteraction::SetFocus | ( | FocusManager::FocusElement * | element ) |
Sets the given Element to focused.
returns true if the given element was found and focused
Definition at line 278 of file mitkGlobalInteraction.cpp.
{
return m_FocusManager->SetFocused(element);
}
friend class Interactor [friend] |
Definition at line 172 of file mitkGlobalInteraction.h.