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

Method OnMiddleButtonDown

Views/Context2D/vtkContextInteractorStyle.cxx:268–284  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

266
267//------------------------------------------------------------------------------
268void vtkContextInteractorStyle::OnMiddleButtonDown()
269{
270 this->BeginProcessingEvent();
271
272 bool eatEvent = false;
273 if (this->Scene)
274 {
275 vtkContextMouseEvent event;
276 this->ConstructMouseEvent(event, vtkContextMouseEvent::MIDDLE_BUTTON);
277 eatEvent = this->ProcessMousePress(event);
278 }
279 if (!eatEvent)
280 {
281 this->Superclass::OnMiddleButtonDown();
282 }
283 this->EndProcessingEvent();
284}
285
286//------------------------------------------------------------------------------
287void vtkContextInteractorStyle::OnMiddleButtonUp()

Callers

nothing calls this directly

Calls 4

BeginProcessingEventMethod · 0.95
ConstructMouseEventMethod · 0.95
ProcessMousePressMethod · 0.95
EndProcessingEventMethod · 0.95

Tested by

no test coverage detected