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

Method SetInteractor

Views/Infovis/vtkInteractorStyleTreeMapHover.cxx:116–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114vtkCxxSetObjectMacro(vtkInteractorStyleTreeMapHover, TreeMapToPolyData, vtkTreeMapToPolyData);
115
116void vtkInteractorStyleTreeMapHover::SetInteractor(vtkRenderWindowInteractor* rwi)
117{
118 // See if we already had one
119 vtkRenderWindowInteractor* mrwi = this->GetInteractor();
120 vtkRenderer* ren;
121 if (mrwi && mrwi->GetRenderWindow())
122 {
123 this->FindPokedRenderer(0, 0);
124 ren = this->CurrentRenderer;
125 if (ren)
126 {
127 ren->RemoveActor(SelectionActor);
128 ren->RemoveActor(HighlightActor);
129 }
130 }
131 vtkInteractorStyleImage::SetInteractor(rwi);
132 if (rwi && rwi->GetRenderWindow())
133 {
134 this->FindPokedRenderer(0, 0);
135 ren = this->CurrentRenderer;
136 if (ren)
137 {
138 ren->AddActor(SelectionActor);
139 ren->AddActor(HighlightActor);
140 }
141 }
142}
143
144//------------------------------------------------------------------------------
145

Callers

nothing calls this directly

Calls 6

SetInteractorFunction · 0.85
RemoveActorMethod · 0.80
GetInteractorMethod · 0.45
GetRenderWindowMethod · 0.45
FindPokedRendererMethod · 0.45
AddActorMethod · 0.45

Tested by

no test coverage detected