| 254 | } |
| 255 | |
| 256 | void vtkRenderView::SetRenderWindow(vtkRenderWindow* win) |
| 257 | { |
| 258 | vtkSmartPointer<vtkRenderWindowInteractor> irenOld = this->GetInteractor(); |
| 259 | this->Superclass::SetRenderWindow(win); |
| 260 | vtkRenderWindowInteractor* irenNew = this->GetInteractor(); |
| 261 | if (irenOld != irenNew) |
| 262 | { |
| 263 | if (irenOld) |
| 264 | { |
| 265 | irenOld->RemoveObserver(this->GetObserver()); |
| 266 | } |
| 267 | if (irenNew) |
| 268 | { |
| 269 | this->SetInteractor(irenNew); |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | void vtkRenderView::Render() |
| 275 | { |