Remove an artist (it stops being drawn; it can be added again, also to another frame).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(DrawableTrajectory), | intent(inout) | :: | self | |||
| class(TrajectoryArtist), | intent(in), | target | :: | a |
the artist to remove |
subroutine remove_artist(self, a) class(DrawableTrajectory), intent(inout) :: self class(TrajectoryArtist), intent(in), target :: a !! the artist to remove integer :: k do k = 1, self%n_artists if (associated(self%artists(k)%p, a)) then if (c_associated(self%artists(k)%group)) then call check_status(vkf_node_remove_child(self%contents_group, self%artists(k)%group), 'trajectory artists') call vkf_node_delete(self%artists(k)%group) call self%artists(k)%p%release() end if self%artists(k:self%n_artists-1) = self%artists(k+1:self%n_artists) self%n_artists = self%n_artists - 1 return end if end do end subroutine remove_artist