Computes a CustomLineSegments' segments each frame: extend it with a
compute procedure, which calls segments%set_segments (OpenFrames'
CustomLineSegments::Callback). The program owns the callback object (it
must stay alive while set).
Set segments' segments for simulation time t (with set_segments).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(LineSegmentsCallback), | intent(inout) | :: | self | |||
| class(CustomLineSegments), | intent(inout) | :: | segments |
the line segments the callback is set on |
||
| real(kind=wp), | intent(in) | :: | t |
simulation time (s) |
type, abstract, public :: LineSegmentsCallback contains procedure(segments_compute), deferred :: compute end type LineSegmentsCallback