void pcl::visualization::PCLVisualizerInteractorStyle::OnRightButtonDown () { int x = this->Interactor->GetEventPosition()[0]; int y = this->Interactor->GetEventPosition()[1]; if (Interactor->GetRepeatCount () == 0) { MouseEvent event (MouseEvent::MouseButtonPress, MouseEvent::RightButton, x, y, Interactor->GetAltKey (), Interactor->GetControlKey (), Interactor->GetShiftKey (), Superclass::CurrentMode); mouse_signal_ (event); } else { MouseEvent event (MouseEvent::MouseDblClick, MouseEvent::RightButton, x, y, Interactor->GetAltKey (), Interactor->GetControlKey (), Interactor->GetShiftKey (), Superclass::CurrentMode); mouse_signal_ (event); } Superclass::OnRightButtonDown (); }
void pcl::visualization::PCLVisualizerInteractorStyle::OnRightButtonUp () { int x = this->Interactor->GetEventPosition()[0]; int y = this->Interactor->GetEventPosition()[1]; MouseEvent event (MouseEvent::MouseButtonRelease, MouseEvent::RightButton, x, y, Interactor->GetAltKey (), Interactor->GetControlKey (), Interactor->GetShiftKey ()); mouse_signal_ (event); Superclass::OnRightButtonUp (); }
void pcl::visualization::PCLVisualizerInteractorStyle::OnMouseMove () { int x = this->Interactor->GetEventPosition()[0]; int y = this->Interactor->GetEventPosition()[1]; MouseEvent event (MouseEvent::MouseMove, MouseEvent::NoButton, x, y, Interactor->GetAltKey (), Interactor->GetControlKey (), Interactor->GetShiftKey (), Superclass::CurrentMode); mouse_signal_ (event); Superclass::OnMouseMove (); }