Create artist k's node (compiled now if the frame is already shown).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(DrawableTrajectory), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | k |
the artist (1 to n_artists) |
||
| logical, | intent(in) | :: | compile |
true: compiled now (if the frame is shown) |
subroutine build_artist(self, k, compile) type(DrawableTrajectory), intent(inout) :: self integer, intent(in) :: k !! the artist (1 to n_artists) logical, intent(in) :: compile !! true: compiled now (if the frame is shown) type(c_ptr) :: group group = vkf_switch_create() if (.not. c_associated(group)) return ! (built for a window that exists now, if shown; compiled for the windows running) call self%artists(k)%p%build(merge(vkf_viewer_any(), c_null_ptr, self%shown), group) if (compile .and. self%shown) call check_status(vkf_compile_node(group), 'trajectory artists') call check_status(vkf_node_add_child(self%contents_group, group), 'trajectory artists') self%artists(k)%group = group end subroutine build_artist