---------------------------------------------------------------------------- This adds the keypress event observer and the delete event observer
| 131 | //---------------------------------------------------------------------------- |
| 132 | // This adds the keypress event observer and the delete event observer |
| 133 | void 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 | //---------------------------------------------------------------------------- |
| 149 | void mitk::vtkEventProvider::ProcessEvents(vtkObject *object, |
no test coverage detected