MCPcopy Create free account
hub / github.com/Kitware/VTK / SetRenderWindow

Method SetRenderWindow

Views/Infovis/vtkRenderView.cxx:256–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256void 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
274void vtkRenderView::Render()
275{

Callers 6

TestHeatmapItemFunction · 0.45
TestQtLabelStrategyFunction · 0.45
TestDendrogramItemFunction · 0.45
TestTanglegramItemFunction · 0.45
TestTreeHeatmapItemFunction · 0.45

Calls 4

SetInteractorMethod · 0.95
GetObserverMethod · 0.80
GetInteractorMethod · 0.45
RemoveObserverMethod · 0.45

Tested by 6

TestHeatmapItemFunction · 0.36
TestQtLabelStrategyFunction · 0.36
TestDendrogramItemFunction · 0.36
TestTanglegramItemFunction · 0.36
TestTreeHeatmapItemFunction · 0.36