Esempio n. 1
0
void
NavigateCurve::EndMiddleButtonAction()
{
    EndDolly();

    IssueViewCallback();
}
void
NavigateAxisArray::EndMiddleButtonAction()
{
    EndDolly();

    IssueViewCallback();
}
Esempio n. 3
0
void
NavigateCurve::EndLeftButtonAction()
{
    EndPan();

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

    IssueViewCallback();
}
Esempio n. 5
0
void
NavigateCurve::OnMouseWheelBackward()
{
    StartZoom();
    ZoomCamera(MotionFactor * -0.2 * this->MouseWheelMotionFactor);
    EndZoom();
    IssueViewCallback(true);
}
void
Navigate2D::OnMouseWheelForward()
{
    StartZoom();
    ZoomCamera2D(MotionFactor * 0.2 * this->MouseWheelMotionFactor);
    EndZoom();
    IssueViewCallback(true);
}
Esempio n. 7
0
void
Zoom3D::OnMouseWheelBackward()
{
    StartZoom();
    ZoomImage3D(MotionFactor * -0.2 * this->MouseWheelMotionFactor);
    EndZoom();
    IssueViewCallback(true);
}
void
ZoomCurve::EndLeftButtonAction()
{
    EndRubberBand();
    ZoomCamera();
    EndZoom();
    IssueViewCallback();
}
Esempio n. 9
0
void
Zoom3D::OnTimer(void)
{
    if (!rubberBandMode)
    {
        vtkRenderWindowInteractor *rwi = Interactor;

        int Pos[2];
        rwi->GetEventPosition(Pos);

        bool matchedUpState = true;
        switch (State)
        {
        case VTKIS_PAN:
          PanImage3D(Pos[0], Pos[1]);
          
          rwi->CreateTimer(VTKI_TIMER_UPDATE);
          break;
          
        case VTKIS_ZOOM:
          ZoomImage3D(Pos[0], Pos[1]);
          
          rwi->CreateTimer(VTKI_TIMER_UPDATE);
          break;
          
        default:
          matchedUpState = false;
          break;
        }
        
        if (!matchedUpState && shouldSpin)
        {
            VisWindow *vw = proxy;
            if(!vw->GetSpinModeSuspended())
            {
                if (vw->GetSpinMode())
                {
                  OldX = spinOldX;
                  OldY = spinOldY;
                  RotateAboutFocus3D(spinNewX, spinNewY, false);
                  IssueViewCallback(true);
                  rwi->CreateTimer(VTKI_TIMER_UPDATE);
                }
                else
                {
                    DisableSpinMode();
                }
            }
            else if(vw->GetSpinMode())
            {
              // Don't mess with the camera, just create another timer so
              // we keep getting into this method until spin mode is no
              // longer suspended.
              rwi->CreateTimer(VTKI_TIMER_UPDATE);
            }
        }
    }
}
Esempio n. 10
0
void
Zoom3D::EndMiddleButtonAction()
{
    EndZoom();

    EndBoundingBox();

    IssueViewCallback();
}
Esempio n. 11
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();
}
Esempio n. 12
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
ZoomCurve::EndMiddleButtonAction()
{
    EndZoom();
    IssueViewCallback();
}