コード例 #1
0
ファイル: Zoom3D.C プロジェクト: burlen/visit_vtk_7_src
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);
    }
}
コード例 #2
0
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;
    }
}
コード例 #3
0
void vtkInteractorStyleQuench::OnMiddleButtonDown()
{
  _mouse_moved = false;
	FindPokedRenderer(Interactor->GetEventPosition()[0], Interactor->GetEventPosition()[1]);
	if (CurrentRenderer == NULL)
	  return;
	StartPan();
}
コード例 #4
0
ファイル: FlyThrough.C プロジェクト: burlen/visit_vtk_7_src
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;
    }
}
コード例 #5
0
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();
}
コード例 #6
0
void
NavigateCurve::StartLeftButtonAction()
{
    StartPan();
}
コード例 #7
0
void
NavigateAxisArray::StartLeftButtonAction()
{
    StartPan();
}
コード例 #8
0
void
Navigate2D::StartLeftButtonAction()
{
    StartPan();
}