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

Method UnInstallPipeline

Interaction/Image/vtkImageViewer2.cxx:593–615  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

591
592//------------------------------------------------------------------------------
593void vtkImageViewer2::UnInstallPipeline()
594{
595 if (this->ImageActor)
596 {
597 this->ImageActor->GetMapper()->SetInputConnection(nullptr);
598 }
599
600 if (this->Renderer && this->ImageActor)
601 {
602 this->Renderer->RemoveViewProp(this->ImageActor);
603 }
604
605 if (this->RenderWindow && this->Renderer)
606 {
607 this->RenderWindow->RemoveRenderer(this->Renderer);
608 }
609
610 if (this->Interactor)
611 {
612 this->Interactor->SetInteractorStyle(nullptr);
613 this->Interactor->SetRenderWindow(nullptr);
614 }
615}
616
617//------------------------------------------------------------------------------
618void vtkImageViewer2::Render()

Callers 3

SetupInteractorMethod · 0.95
SetRenderWindowMethod · 0.95
SetRendererMethod · 0.95

Calls 6

GetMapperMethod · 0.80
SetInputConnectionMethod · 0.45
RemoveViewPropMethod · 0.45
RemoveRendererMethod · 0.45
SetInteractorStyleMethod · 0.45
SetRenderWindowMethod · 0.45

Tested by

no test coverage detected