Create the chain of line buffers (sized for the segments now) under group.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SegmentArtist), | intent(inout) | :: | self | |||
| type(c_ptr), | intent(in) | :: | viewer |
compiles nodes made later (may be null); the parent group |
||
| type(c_ptr), | intent(in) | :: | group |
compiles nodes made later (may be null); the parent group |
subroutine segment_build(self, viewer, group) class(SegmentArtist), intent(inout) :: self type(c_ptr), intent(in) :: viewer, group !! compiles nodes made later (may be null); the parent group call self%chain%init(group, CHAIN_SEGMENTS) call self%chain%set_style(self%color_, self%width_) call self%chain%set_pattern(self%pattern_factor, self%pattern_) call self%chain%reserve(2 * segment_count(self)) ! compiled with the group call self%chain%set_compile(c_associated(viewer)) self%seen_generation = -1 end subroutine segment_build