MCPcopy Create free account
hub / github.com/MITK/MITK / SetInteractor

Method SetInteractor

Modules/Core/src/Rendering/mitkVtkEventProvider.cpp:133–146  ·  view source on GitHub ↗

---------------------------------------------------------------------------- This adds the keypress event observer and the delete event observer

Source from the content-addressed store, hash-verified

131//----------------------------------------------------------------------------
132// This adds the keypress event observer and the delete event observer
133void mitk::vtkEventProvider::SetInteractor(vtkRenderWindowInteractor *i)
134{
135 if (i == this->Interactor)
136 {
137 return;
138 }
139 // if we already have an Interactor then stop observing it
140 if (this->Interactor)
141 this->SetEnabled(0); // disable the old interactor
142
143 this->Interactor = i;
144
145 this->Modified();
146}
147
148//----------------------------------------------------------------------------
149void mitk::vtkEventProvider::ProcessEvents(vtkObject *object,

Callers 4

~vtkEventProviderMethod · 0.95
RenderWindowMethod · 0.80
ReinitEventProviderMethod · 0.80
EnableMethod · 0.80

Calls 2

SetEnabledMethod · 0.95
ModifiedMethod · 0.45

Tested by

no test coverage detected