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

Method PrepareForRendering

Views/Infovis/vtkRenderedTreeAreaRepresentation.cxx:922–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920}
921
922void vtkRenderedTreeAreaRepresentation::PrepareForRendering(vtkRenderView* view)
923{
924#if 0
925 // Make hover highlight up to date
926 int pos[2] = {0, 0};
927 if (view->GetInteractorStyle() && view->GetInteractorStyle()->GetInteractor())
928 {
929 view->GetInteractorStyle()->GetInteractor()->GetEventPosition(pos);
930 this->UpdateHoverHighlight(view, pos[0], pos[1]);
931 }
932#ifdef VTK_USE_QT
933 vtkQtTreeRingLabelMapper* mapper =
934 vtkQtTreeRingLabelMapper::SafeDownCast(this->AreaLabelMapper);
935 if (mapper)
936 {
937 mapper->SetRenderer(view->GetRenderer());
938 }
939 //view->GetRenderer()->AddActor(this->AreaLabelActor);
940#endif
941#endif
942
943 // Make sure all the graphs are registered.
944 for (size_t i = 0; i < this->Implementation->Graphs.size(); ++i)
945 {
946 this->Implementation->Graphs[i]->RegisterProgress(view);
947 }
948
949 this->Superclass::PrepareForRendering(view);
950}
951
952void vtkRenderedTreeAreaRepresentation::ApplyViewTheme(vtkViewTheme* theme)
953{

Callers

nothing calls this directly

Calls 7

UpdateHoverHighlightMethod · 0.95
GetInteractorStyleMethod · 0.45
GetInteractorMethod · 0.45
SetRendererMethod · 0.45
GetRendererMethod · 0.45
sizeMethod · 0.45
RegisterProgressMethod · 0.45

Tested by

no test coverage detected