| 930 | } |
| 931 | |
| 932 | bool vtkRenderedGraphRepresentation::AddToView(vtkView* view) |
| 933 | { |
| 934 | this->Superclass::AddToView(view); |
| 935 | vtkRenderView* rv = vtkRenderView::SafeDownCast(view); |
| 936 | if (rv) |
| 937 | { |
| 938 | this->VertexScalarBar->SetInteractor(rv->GetRenderWindow()->GetInteractor()); |
| 939 | this->EdgeScalarBar->SetInteractor(rv->GetRenderWindow()->GetInteractor()); |
| 940 | this->VertexGlyph->SetRenderer(rv->GetRenderer()); |
| 941 | this->OutlineGlyph->SetRenderer(rv->GetRenderer()); |
| 942 | this->VertexIconTransform->SetViewport(rv->GetRenderer()); |
| 943 | rv->GetRenderer()->AddActor(this->OutlineActor); |
| 944 | rv->GetRenderer()->AddActor(this->VertexActor); |
| 945 | rv->GetRenderer()->AddActor(this->EdgeActor); |
| 946 | rv->GetRenderer()->AddActor(this->VertexScalarBar->GetScalarBarActor()); |
| 947 | rv->GetRenderer()->AddActor(this->EdgeScalarBar->GetScalarBarActor()); |
| 948 | rv->GetRenderer()->AddActor(this->VertexIconActor); |
| 949 | rv->AddLabels(this->VertexLabelHierarchy->GetOutputPort()); |
| 950 | rv->AddLabels(this->EdgeLabelHierarchy->GetOutputPort()); |
| 951 | // rv->AddIcons(this->VertexIconPriority->GetOutputPort()); |
| 952 | // rv->AddIcons(this->EdgeIconPriority->GetOutputPort()); |
| 953 | rv->RegisterProgress(this->Layout); |
| 954 | rv->RegisterProgress(this->EdgeCenters); |
| 955 | rv->RegisterProgress(this->GraphToPoints); |
| 956 | rv->RegisterProgress(this->VertexLabelHierarchy); |
| 957 | rv->RegisterProgress(this->EdgeLabelHierarchy); |
| 958 | rv->RegisterProgress(this->Layout); |
| 959 | rv->RegisterProgress(this->EdgeLayout); |
| 960 | rv->RegisterProgress(this->GraphToPoly); |
| 961 | rv->RegisterProgress(this->EdgeMapper); |
| 962 | rv->RegisterProgress(this->VertexGlyph); |
| 963 | rv->RegisterProgress(this->VertexMapper); |
| 964 | rv->RegisterProgress(this->OutlineGlyph); |
| 965 | rv->RegisterProgress(this->OutlineMapper); |
| 966 | return true; |
| 967 | } |
| 968 | return false; |
| 969 | } |
| 970 | |
| 971 | bool vtkRenderedGraphRepresentation::RemoveFromView(vtkView* view) |
| 972 | { |
no test coverage detected