Set data source k (1: x, 2: y, 3: z), redrawing the markers; returns whether the trajectory has the data.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(MarkerArtist), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | k |
the component (1: x, 2: y, 3: z) |
||
| type(DataSource), | intent(in) | :: | src |
its data source |
logical function set_marker_source(self, k, src) result(valid) class(MarkerArtist), intent(inout) :: self integer, intent(in) :: k !! the component (1: x, 2: y, 3: z) type(DataSource), intent(in) :: src !! its data source self%sources_(k) = src self%default_data = .false. call redraw_markers(self) valid = .true. if (associated(self%traj)) valid = self%traj%verify_data(self%sources_) end function set_marker_source