LineSegmentsCallback Derived Type

type, public, abstract :: LineSegmentsCallback

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).


Inherited by

type~~linesegmentscallback~~InheritedByGraph type~linesegmentscallback LineSegmentsCallback type~customlinesegments CustomLineSegments type~customlinesegments->type~linesegmentscallback callback

Type-Bound Procedures

procedure(segments_compute), public, deferred :: compute

  • subroutine segments_compute(self, segments, t) Prototype

    Set segments' segments for simulation time t (with set_segments).

    Arguments

    Type IntentOptional 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)

Source Code

    type, abstract, public :: LineSegmentsCallback
    contains
        procedure(segments_compute), deferred :: compute
    end type LineSegmentsCallback