private function new_marker_artist(traj, markers, size, color) result(a)
A marker artist for traj (optional; without one, or with all data
sources zero, a start marker at the origin: in a DrawableTrajectory that
follows a trajectory, or is a child of a frame that does, it marks the
current position, as in OpenFrames), drawing markers (an ior
of MARKER_START, MARKER_INTERMEDIATE, MARKER_END; default start and end)
of size window units (default 10) in color (all markers; default red
start and end, white intermediate).
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
function new_marker_artist(traj,markers,size,color)result(a)type(Trajectory),intent(in),target,optional::traj!! the trajectory to draw (not owned)integer,intent(in),optional::markers!! an ior of MARKER_* flags (default start and end)real(wp),intent(in),optional::size,color(:)!! window units (default 10); [r, g, b] or [r, g, b, a]type(MarkerArtist)::aa%sources_=position_sources(3)a%image_file=''if(present(traj))call a%set_trajectory(traj)if(present(markers))a%markers_=markersif(present(size))a%size_=sizeif(present(color))call a%set_marker_color(ior(ior(MARKER_START,MARKER_INTERMEDIATE),MARKER_END),color)end function new_marker_artist