For lines, how the dashes are laid out: 0 anchored to the line (the
default), 1 screen-locked (a constant length in pixels, following the
line on screen), 2 a fixed length of the line (strips): length scene
units for the pattern, or if 0 its length on screen when first drawn.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(LineChain), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | mode |
0 anchored, 1 screen-locked, 2 fixed length |
||
| real(kind=wp), | intent(in) | :: | length |
(2) the pattern's length (scene units; 0: from the first view) |
subroutine set_dash_mode(self, mode, length) class(LineChain), intent(inout) :: self integer, intent(in) :: mode !! 0 anchored, 1 screen-locked, 2 fixed length real(wp), intent(in) :: length !! (2) the pattern's length (scene units; 0: from the first view) integer :: j self%dash_mode = mode self%dash_length = length do j = 1, self%n_chunks call apply_style(self, self%chunks(j)%line) end do end subroutine set_dash_mode