Create the chain of buffers (sized for the points now) and the trace
tail under group.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ChainArtist), | intent(inout) | :: | self | |||
| type(c_ptr), | intent(in) | :: | viewer |
compiles what is made later (null: nothing to) |
||
| type(c_ptr), | intent(in) | :: | group |
the artist's group |
subroutine chain_build(self, viewer, group) class(ChainArtist), intent(inout) :: self type(c_ptr), intent(in) :: viewer !! compiles what is made later (null: nothing to) type(c_ptr), intent(in) :: group !! the artist's group self%group = group self%compile = .false. call self%init_chain() call self%chain%reserve(chain_points_per_point(self) * self%points()) ! compiled with the group self%compile = c_associated(viewer) call self%chain%set_compile(self%compile) self%tail = self%new_tail() ! (white unless the points' colors are drawn) if (c_associated(self%tail)) call check_status(vkf_node_add_child(group, self%tail), 'trajectory artists') call self%apply_style() self%seen_generation = -1 end subroutine chain_build