view_set_camera Subroutine

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

The camera (view-frame coordinates) to show the next time the view is drawn (at once if it is shown: the window's set_camera can also fly there). It replaces a pending reset.

Type Bound

View

Arguments

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

the camera (view-frame coordinates)

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

the camera (view-frame coordinates)

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

the camera (view-frame coordinates)


Called by

proc~~view_set_camera~~CalledByGraph proc~view_set_camera View%view_set_camera proc~set_camera WindowProxy%set_camera proc~set_camera->proc~view_set_camera

Source Code

    subroutine view_set_camera(self, eye, center, up)
        class(View), intent(inout) :: self
        real(wp), intent(in) :: eye(3), center(3), up(3)    !! the camera (view-frame coordinates)
        self%pending(:, 1) = eye
        self%pending(:, 2) = center
        self%pending(:, 3) = up
        self%camera_pending = .true.
        self%reset_pending = .false.
    end subroutine view_set_camera