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

Method ProcessMousePress

Views/Context2D/vtkContextInteractorStyle.cxx:187–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187bool vtkContextInteractorStyle::ProcessMousePress(const vtkContextMouseEvent& event)
188{
189 bool eatEvent(false);
190 if (this->Interactor->GetRepeatCount())
191 {
192 eatEvent = this->Scene->DoubleClickEvent(event);
193 //
194 // The second ButtonRelease event seems not to be processed automatically,
195 // need manually processing here so that the following MouseMove event will
196 // not think the mouse button is still pressed down, and we don't really
197 // care about the return result from the second ButtonRelease.
198 //
199 if (eatEvent)
200 {
201 this->Scene->ButtonReleaseEvent(event);
202 }
203 }
204 else
205 {
206 eatEvent = this->Scene->ButtonPressEvent(event);
207 }
208 return eatEvent;
209}
210
211//------------------------------------------------------------------------------
212void vtkContextInteractorStyle::OnLeftButtonDown()

Callers 3

OnLeftButtonDownMethod · 0.95
OnMiddleButtonDownMethod · 0.95
OnRightButtonDownMethod · 0.95

Calls 3

DoubleClickEventMethod · 0.80
ButtonReleaseEventMethod · 0.80
ButtonPressEventMethod · 0.80

Tested by

no test coverage detected