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

Method SetInteractor

Views/Infovis/vtkInteractorStyleAreaSelectHover.cxx:75–99  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

73
74//------------------------------------------------------------------------------
75void vtkInteractorStyleAreaSelectHover::SetInteractor(vtkRenderWindowInteractor* rwi)
76{
77 // See if we already had one
78 vtkRenderWindowInteractor* mrwi = this->GetInteractor();
79 vtkRenderer* ren;
80 if (mrwi && mrwi->GetRenderWindow())
81 {
82 this->FindPokedRenderer(0, 0);
83 ren = this->CurrentRenderer;
84 if (ren)
85 {
86 ren->RemoveActor(HighlightActor);
87 }
88 }
89 vtkInteractorStyleRubberBand2D::SetInteractor(rwi);
90 if (rwi && rwi->GetRenderWindow())
91 {
92 this->FindPokedRenderer(0, 0);
93 ren = this->CurrentRenderer;
94 if (ren)
95 {
96 ren->AddActor(HighlightActor);
97 }
98 }
99}
100
101//------------------------------------------------------------------------------
102void vtkInteractorStyleAreaSelectHover::PrintSelf(ostream& os, vtkIndent indent)

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