void Zoom3D::StartLeftButtonAction() { DisableSpinMode(); // If shift is pressed, pan, otherwise rubber band zoom. The pan // action matches the Navigate2D/3D modes. Save which one we did so // we can issue the proper "End.." statement when the button is // released. if (Interactor->GetShiftKey()) { StartBoundingBox(); StartPan(); shiftPressed = true; } // NOTE: the shift and ctrl go into the rubberband zoom and affect // whether one gets a rectangle (shift) or zooms out (ctrl). At // this point the shift is intercepted above to pan which matches // the Navigate2D/3D modes. else { int x, y; Interactor->GetEventPosition(x, y); StartZoom(); StartRubberBand(x, y); } }
void Zoom3D::StartLeftButtonAction() { DisableSpinMode(); // // If ctrl or shift is pushed, pan, otherwise zoom. Save which one we // did so we can issue the proper "End.." statement when the button is // released. // if (Interactor->GetControlKey() || Interactor->GetShiftKey()) { StartBoundingBox(); StartPan(); ctrlOrShiftPushed = true; } else { int x, y; Interactor->GetEventPosition(x, y); StartZoom(); StartRubberBand(x, y); ctrlOrShiftPushed = false; } }
void vtkInteractorStyleQuench::OnMiddleButtonDown() { _mouse_moved = false; FindPokedRenderer(Interactor->GetEventPosition()[0], Interactor->GetEventPosition()[1]); if (CurrentRenderer == NULL) return; StartPan(); }
void FlyThrough::StartLeftButtonAction() { DisableSpinMode(); StartBoundingBox(); // // If ctrl or shift is pushed, pan, otherwise rotate. Save which one we // did so we can issue the proper "End.." statement when the button is // released. // if (Interactor->GetControlKey()|| Interactor->GetShiftKey()) { StartPan(); ctrlOrShiftPushed = true; } else { StartRotate(); ctrlOrShiftPushed = false; } }
void vtkInteractorStyleQuench::OnLeftButtonDown() { _mouse_moved = false; _left_button_down=1; FindPokedRenderer(Interactor->GetEventPosition()[0], Interactor->GetEventPosition()[1]); _mousedown_x = this->Interactor->GetEventPosition()[0]; _mousedown_y = abs(this->Interactor->GetEventPosition()[1]); if(_voiEditor->GetEditingROIMode() && _voiEditor->ClickInsideTomogram(_mousedown_x, _mousedown_y)) { _voiEditor->OnLeftDown(_mousedown_x, _mousedown_y); _interaction_mode = INTERACTION_ROI_EDIT; return; } if(_pathwayViz->OnLeftDown(_mousedown_x, _mousedown_y)) { _interaction_mode = INTERACTION_PATHWAYS; return; } if (this->Interactor->GetControlKey() || ((wxVTKRenderWindowInteractor*)Interactor)->bCmdDwn) { _GestureInteractor->BeginSelect(_mousedown_x, _mousedown_y); //NotifyAllListeners(PEvent ( new EventRefreshViz(true) ) ); //_renderer->GetRenderWindow()->Render(); _interaction_mode = INTERACTION_DRAW_GESTURE; return; } // xxxdla trying to fix bug with interactions //if( _voiViz->OnLeftDown(_mousedown_x, _mousedown_y) ) // return ; Interactor->GetShiftKey()?StartPan():StartRotate(); }
void NavigateCurve::StartLeftButtonAction() { StartPan(); }
void NavigateAxisArray::StartLeftButtonAction() { StartPan(); }
void Navigate2D::StartLeftButtonAction() { StartPan(); }