save_state Subroutine

private subroutine save_state(self, eye, center, up)

Keep the trackball state while another view is shown.

Type Bound

View

Arguments

Type IntentOptional Attributes Name
class(View), intent(inout) :: self
real(kind=wp), intent(in) :: eye(3)

the trackball state (view-frame coordinates)

real(kind=wp), intent(in) :: center(3)

the trackball state (view-frame coordinates)

real(kind=wp), intent(in) :: up(3)

the trackball state (view-frame coordinates)


Called by

proc~~save_state~~CalledByGraph proc~save_state View%save_state proc~place_camera place_camera proc~place_camera->proc~save_state proc~frame WindowProxy%frame proc~frame->proc~place_camera proc~resize WindowProxy%resize proc~resize->proc~frame proc~run WindowProxy%run proc~run->proc~frame

Source Code

    subroutine save_state(self, eye, center, up)
        class(View), intent(inout) :: self
        real(wp), intent(in) :: eye(3), center(3), up(3)    !! the trackball state (view-frame coordinates)
        self%eye = eye
        self%center = center
        self%up = up
        self%has_state = .true.
    end subroutine save_state