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

Method SetInteractor

Views/Core/vtkRenderViewBase.cxx:101–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void vtkRenderViewBase::SetInteractor(vtkRenderWindowInteractor* interactor)
102{
103 if (interactor == this->GetInteractor())
104 {
105 return;
106 }
107
108 vtkSmartPointer<vtkInteractorObserver> style =
109 this->GetInteractor() ? this->GetInteractor()->GetInteractorStyle() : nullptr;
110 this->RenderWindow->SetInteractor(interactor);
111
112 if (this->GetInteractor())
113 {
114 this->GetInteractor()->SetInteractorStyle(style);
115 }
116 else if (style && this->RenderWindow)
117 {
118 vtkGenericRenderWindowInteractor* iren = vtkGenericRenderWindowInteractor::New();
119 this->RenderWindow->SetInteractor(iren);
120 iren->SetInteractorStyle(style);
121 iren->Delete();
122 }
123}
124
125void vtkRenderViewBase::Render()
126{

Callers 5

vtkRenderViewBaseMethod · 0.95
OnKeyPressMethod · 0.45
OnKeyReleaseMethod · 0.45
ConstructMouseEventMethod · 0.45
SetRenderWindowMethod · 0.45

Calls 5

GetInteractorMethod · 0.95
DeleteMethod · 0.65
NewFunction · 0.50
GetInteractorStyleMethod · 0.45
SetInteractorStyleMethod · 0.45

Tested by

no test coverage detected