The chain of separate segments with a color per point, under group.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CustomLineSegments), | intent(inout) | :: | self | |||
| type(c_ptr), | intent(in) | :: | viewer |
a window's viewer handle (null: headless) |
||
| type(c_ptr), | intent(in) | :: | group |
the group node to draw under |
subroutine segments_build_contents(self, viewer, group) class(CustomLineSegments), intent(inout) :: self type(c_ptr), intent(in) :: viewer !! a window's viewer handle (null: headless) type(c_ptr), intent(in) :: group !! the group node to draw under call self%chain%init(group, CHAIN_SEGMENTS, colored=.true.) call apply_style(self) call self%chain%reserve(max(2, 2 * self%n)) ! (compiled with the scene) call self%chain%set_compile(c_associated(viewer)) self%changed = .true. end subroutine segments_build_contents