| 99 | } |
| 100 | |
| 101 | void vtkRenderViewBase::SetInteractor(vtkRenderWindowInteractor* interactor) |
| 102 | { |
| 103 | if (interactor == this->GetInteractor()) |
| 104 | { |
| 105 | return; |
| 106 | } |
| 107 | |
| 108 | vtkSmartPointer<vtkInteractorObserver> style = |
| 109 | this->GetInteractor() ? this->GetInteractor()->GetInteractorStyle() : nullptr; |
| 110 | this->RenderWindow->SetInteractor(interactor); |
| 111 | |
| 112 | if (this->GetInteractor()) |
| 113 | { |
| 114 | this->GetInteractor()->SetInteractorStyle(style); |
| 115 | } |
| 116 | else if (style && this->RenderWindow) |
| 117 | { |
| 118 | vtkGenericRenderWindowInteractor* iren = vtkGenericRenderWindowInteractor::New(); |
| 119 | this->RenderWindow->SetInteractor(iren); |
| 120 | iren->SetInteractorStyle(style); |
| 121 | iren->Delete(); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void vtkRenderViewBase::Render() |
| 126 | { |
no test coverage detected