Give the chain's style (color, width or size, pattern, highlight, marker shape) to the node line.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(LineChain), | intent(in) | :: | self | |||
| type(c_ptr), | intent(in) | :: | line |
line or marker node |
subroutine apply_style(self, line) type(LineChain), intent(in) :: self type(c_ptr), intent(in) :: line !! line or marker node if (self%kind == CHAIN_MARKERS) then call check_status(marker_set_style(line, self%color, self%width, self%shape, self%radius), 'trajectory artists') else call check_status(line_set_style(line, self%color, self%width), 'trajectory artists') call check_status(line_set_pattern(line, self%pattern_factor, self%pattern), 'trajectory artists') if (self%kind /= CHAIN_RIBBON) & call check_status(vkf_line_set_highlight(line, self%highlight), 'trajectory artists') if (self%kind == CHAIN_STRIP) call check_status(vkf_line_set_trail(line, self%trail), 'trajectory artists') if (self%kind /= CHAIN_RIBBON) call check_status(vkf_line_set_dash_mode(line, & int(self%dash_mode, c_int), real(self%dash_length, c_double)), & 'trajectory artists') end if end subroutine apply_style