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

Method OnNCMouseMove

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:635–648  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

633
634//------------------------------------------------------------------------------
635int vtkWin32RenderWindowInteractor::OnNCMouseMove(HWND, UINT nFlags, int X, int Y)
636{
637 if (!this->Enabled || !this->MouseInWindow)
638 {
639 return 0;
640 }
641
642 const int* pos = this->RenderWindow->GetPosition();
643 this->SetEventInformationFlipY(X - pos[0], Y - pos[1], nFlags & MK_CONTROL, nFlags & MK_SHIFT);
644 this->SetAltKey((GetKeyState(VK_MENU) & 0x8000) != 0);
645 const int ret = this->InvokeEvent(vtkCommand::LeaveEvent, nullptr);
646 this->MouseInWindow = 0;
647 return ret;
648}
649
650//------------------------------------------------------------------------------
651int vtkWin32RenderWindowInteractor::OnMouseWheelForward(HWND, UINT nFlags, int X, int Y)

Callers 1

vtkHandleMessage2Function · 0.80

Calls 2

InvokeEventMethod · 0.80
GetPositionMethod · 0.45

Tested by

no test coverage detected