| 969 | } |
| 970 | |
| 971 | bool 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 | |
| 1007 | void vtkRenderedGraphRepresentation::PrepareForRendering(vtkRenderView* view) |
| 1008 | { |
no test coverage detected