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

Method RemoveFromView

Views/Infovis/vtkRenderedGraphRepresentation.cxx:971–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971bool vtkRenderedGraphRepresentation::RemoveFromView(vtkView* view)
972{
973 this->Superclass::RemoveFromView(view);
974 vtkRenderView* rv = vtkRenderView::SafeDownCast(view);
975 if (rv)
976 {
977 this->VertexGlyph->SetRenderer(nullptr);
978 this->OutlineGlyph->SetRenderer(nullptr);
979 rv->GetRenderer()->RemoveActor(this->VertexActor);
980 rv->GetRenderer()->RemoveActor(this->OutlineActor);
981 rv->GetRenderer()->RemoveActor(this->EdgeActor);
982 rv->GetRenderer()->RemoveActor(this->VertexScalarBar->GetScalarBarActor());
983 rv->GetRenderer()->RemoveActor(this->EdgeScalarBar->GetScalarBarActor());
984 rv->GetRenderer()->RemoveActor(this->VertexIconActor);
985 rv->RemoveLabels(this->VertexLabelHierarchy->GetOutputPort());
986 rv->RemoveLabels(this->EdgeLabelHierarchy->GetOutputPort());
987 // rv->RemoveIcons(this->VertexIcons->GetOutputPort());
988 // rv->RemoveIcons(this->EdgeIcons->GetOutputPort());
989 rv->UnRegisterProgress(this->Layout);
990 rv->UnRegisterProgress(this->EdgeCenters);
991 rv->UnRegisterProgress(this->GraphToPoints);
992 rv->UnRegisterProgress(this->VertexLabelHierarchy);
993 rv->UnRegisterProgress(this->EdgeLabelHierarchy);
994 rv->UnRegisterProgress(this->Layout);
995 rv->UnRegisterProgress(this->EdgeLayout);
996 rv->UnRegisterProgress(this->GraphToPoly);
997 rv->UnRegisterProgress(this->EdgeMapper);
998 rv->UnRegisterProgress(this->VertexGlyph);
999 rv->UnRegisterProgress(this->VertexMapper);
1000 rv->UnRegisterProgress(this->OutlineGlyph);
1001 rv->UnRegisterProgress(this->OutlineMapper);
1002 return true;
1003 }
1004 return false;
1005}
1006
1007void vtkRenderedGraphRepresentation::PrepareForRendering(vtkRenderView* view)
1008{

Callers 1

RemoveRepresentationMethod · 0.45

Calls 7

RemoveActorMethod · 0.80
GetScalarBarActorMethod · 0.80
RemoveLabelsMethod · 0.80
UnRegisterProgressMethod · 0.80
SetRendererMethod · 0.45
GetRendererMethod · 0.45
GetOutputPortMethod · 0.45

Tested by

no test coverage detected