void
NavigateAxisArray::EndLeftButtonAction()
{
    EndPan();

    IssueViewCallback();
}
示例#2
0
void
NavigateCurve::EndLeftButtonAction()
{
    EndPan();

    IssueViewCallback();
}
void
Zoom3D::AbortLeftButtonAction()
{
    if (ctrlOrShiftPushed)
    {
        EndBoundingBox();
        EndPan();
    }
    else
    {
        EndRubberBand();
        EndZoom();
    }
}
示例#4
0
void
Zoom3D::AbortLeftButtonAction()
{
    if (shiftPressed)
    {
        EndBoundingBox();
        EndPan();
        shiftPressed = false;
    }
    else
    {
        EndRubberBand();
        EndZoom();
    }
}
示例#5
0
void
FlyThrough::EndLeftButtonAction()
{
    //
    // We must issue the proper end state for either pan or rotate depending
    // on whether the shift or ctrl button was pushed.
    //
    if (ctrlOrShiftPushed)
    {
        EndPan();
    }
    else
    {
        EndRotate();

        EnableSpinMode();
    }

    EndBoundingBox();

    IssueViewCallback();
}
示例#6
0
void
Zoom3D::EndLeftButtonAction()
{
    // We must issue the proper end state for either pan or rotate
    // depending on whether the shift or ctrl button was pushed.  The
    // shift left mouse pan action matches the Navigate2D/3D modes.
    if (shiftPressed)
    {
        EndBoundingBox();
        EndPan();
        shiftPressed = false;
    }
    else
    {
        EndRubberBand();
        ZoomCamera();
        EndZoom();
    }

    EnableSpinMode();

    IssueViewCallback();
}
void vtkInteractorStyleQuench::OnLeftButtonUp()
{
	vtkRenderWindowInteractor *rwi = this->Interactor;
	int x = rwi->GetEventPosition()[0];
	int y = rwi->GetEventPosition()[1];

	if(_interaction_mode == INTERACTION_DRAW_GESTURE)
	{
	  _interaction_mode = INTERACTION_IDLE;
		_GestureInteractor->EndSelect(x,y,false);
		bool pathwayVisiblity = _pathwayViz->PathwayVisibility();
		bool pointsVisiblity  = _pathwayViz->PointsVisibility();
		bool bfalse = false; _pathwayViz->SetPathwayVisibility(bfalse); _pathwayViz->SetPointsVisibility(bfalse);

		PRAPID_model model;
		if (_pathwayViz->Mode() == qPathwayViz::TOUCH_MODE) {
			model = _GestureInteractor->PruneGesture2RAPIDModel();
		} else if (_pathwayViz->Mode() == qPathwayViz::SURFACE_MODE) {
			model = _GestureInteractor->SurfaceIntersectionGesture2RAPIDModel();
		} else {
			cerr << "WARNING: Don't recognize gesture mode." << endl;
		}

		_pathwayViz->SetPathwayVisibility(pathwayVisiblity); 
		_pathwayViz->SetPointsVisibility(pointsVisiblity);

		NotifyAllListeners(PEvent ( new EventFilterPathwaysByGesture(model) ) );

		//_renderer->GetRenderWindow()->Render();
		return;
	}
	_left_button_down=0;

	_interaction_mode = INTERACTION_IDLE;
	if (!_mouse_moved)
	  _voiViz->OnClick(x,y);

	if(_interaction_mode == INTERACTION_ROI_EDIT)
	  {
	    _interaction_mode = INTERACTION_IDLE;
	    return;
	  }

	switch (this->State)  
	{
	case QIS_BEGIN_ROI_MESH:
		//	frame->EndROIMeshCreation();
		//	break;
	case VTKIS_DOLLY:
		EndDolly();
		break;
	case VTKIS_PAN:
		EndPan();
		break;
	case VTKIS_SPIN:
		EndSpin();
		break;
	case VTKIS_ROTATE:
		// only happens in mouse mode.
		EndRotate();
		break;
		//case QIS_SELECT_VIS_PANEL:
		//	break;
		//case QIS_SELECT_STATE:
		//	this->EndSelect();
		//	break;
		break;
	}
	State = VTKIS_NONE;
	_interaction_mode = INTERACTION_IDLE;
	//this->frame->RefreshViz();
}