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

Method AddToView

Views/Infovis/vtkRenderedGraphRepresentation.cxx:932–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932bool 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
971bool vtkRenderedGraphRepresentation::RemoveFromView(vtkView* view)
972{

Callers 1

AddRepresentationMethod · 0.45

Calls 11

GetScalarBarActorMethod · 0.80
AddLabelsMethod · 0.80
SetInteractorMethod · 0.45
GetInteractorMethod · 0.45
GetRenderWindowMethod · 0.45
SetRendererMethod · 0.45
GetRendererMethod · 0.45
SetViewportMethod · 0.45
AddActorMethod · 0.45
GetOutputPortMethod · 0.45
RegisterProgressMethod · 0.45

Tested by

no test coverage detected