Write the points added (all of them on a redraw), and draw them all, or in trace mode those passed and the tail to the point at time t, or with a trail the window about time t.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CurveArtist), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | t |
the current time |
subroutine curve_update(self, t) class(CurveArtist), intent(inout) :: self real(wp), intent(in) :: t !! the current time logical :: changed if (.not. write_changed(self, changed)) return if (self%trail_%on) then ! a trail: the window about time t if (.not. changed .and. t == self%tail_time) return call draw_trail(self, t) self%tail_time = t return end if call draw_written(self, t, changed) end subroutine curve_update