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

Method LeftButtonPressEvent

Rendering/Core/vtkRenderWindowInteractor.cxx:1096–1126  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1094
1095//------------------------------------------------------------------
1096void vtkRenderWindowInteractor::LeftButtonPressEvent()
1097{
1098 if (!this->Enabled)
1099 {
1100 return;
1101 }
1102
1103 // are we translating multitouch into gestures?
1104 if (this->RecognizeGestures)
1105 {
1106 if (!this->PointersDown[this->PointerIndex])
1107 {
1108 this->PointersDown[this->PointerIndex] = 1;
1109 this->PointersDownCount++;
1110 }
1111 // do we have multitouch
1112 if (this->PointersDownCount > 1)
1113 {
1114 // did we just transition to multitouch?
1115 if (this->PointersDownCount == 2)
1116 {
1117 this->InvokeEvent(vtkCommand::LeftButtonReleaseEvent, nullptr);
1118 }
1119 // handle the gesture
1120 this->RecognizeGesture(vtkCommand::LeftButtonPressEvent);
1121 return;
1122 }
1123 }
1124
1125 this->InvokeEvent(vtkCommand::LeftButtonPressEvent, nullptr);
1126}
1127
1128//------------------------------------------------------------------
1129void vtkRenderWindowInteractor::LeftButtonReleaseEvent()

Callers 3

MouseButtonPressEventMethod · 0.45
HandleMotionEventMethod · 0.45
ProcessEventMethod · 0.45

Calls 2

RecognizeGestureMethod · 0.95
InvokeEventMethod · 0.80

Tested by

no test coverage detected