Keep the trackball state while another view is shown.
| Type | Intent | Optional | 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) |
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