| 185 | } |
| 186 | |
| 187 | bool 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 | //------------------------------------------------------------------------------ |
| 212 | void vtkContextInteractorStyle::OnLeftButtonDown() |
no test coverage detected