Draw points i1 .. i2 only (chain indices; none if i2 < i1): e.g. a trace of decreasing times, its last points.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(LineChain), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | i1 |
first and last points drawn (chain indices) |
||
| integer, | intent(in) | :: | i2 |
first and last points drawn (chain indices) |
subroutine draw_range(self, i1, i2) class(LineChain), intent(in) :: self integer, intent(in) :: i1, i2 !! first and last points drawn (chain indices) integer :: j, lo, hi do j = 1, self%n_chunks associate (c => self%chunks(j)) lo = max(i1, c%first) hi = min(i2, c%first + c%capacity - 1) if (hi >= lo) then call check_status(vkf_line_set_range(c%line, int(lo - c%first + 1, c_int), int(hi - lo + 1, c_int)), & 'trajectory artists') else call check_status(vkf_line_set_range(c%line, 1_c_int, 0_c_int), 'trajectory artists') end if end associate end do end subroutine draw_range