Skip to content

foresight_backend_html ​

foresight_backend_html, interactive HTML output device.

A self-contained HTML page: the SVG document of backend_svg inline, followed by the embedded viewer script (zoom, pan, gnuplot-like hotkeys). No external resources: the page works from a local file.

Source: src/lib/foresight_backend_html.F90

Dependencies

Contents ​

Derived Types ​

backend_html ​

Interactive HTML output device.

Inheritance

Extends: backend_svg

Components ​

NameTypeAttributesDescription
themetype(theme_object)Output theme: colors the layout's ones are mapped to (foresight_theme).
titlecharacter(len=:)allocatablePage title, empty for the default.
refreshinteger(kind=I4P)Page reload period [s], 0 for none (live monitoring).

Type-Bound Procedures ​

NameAttributesDescription
begin_axespass(self)
end_axespass(self)
begin_grouppass(self)
end_grouppass(self)
rectpass(self)
polylinepass(self)
dotspass(self)
polygonpass(self)
imagepass(self)
textpass(self)
begin_plot_areapass(self)
end_plot_areapass(self)
data_polylinepass(self)
data_dotspass(self)
data_barspass(self)
data_polygonpass(self)
data_imagepass(self)
text_widthpass(self)
readoutpass(self)
readout_extentpass(self)
data_arrowspass(self)
data_labelpass(self)
close_filepass(self)Close the stream and publish the file atomically.
open_filepass(self)Open the stream on .tmp.
open_svgpass(self)Write the root `` start tag.
output_unitpass(self)Unit of the open stream.
putpass(self)Write a line.
begin_pagepass(self)
end_pagepass(self)

Subroutines ​

begin_page ​

Open the output file: HTML head, then the inline SVG root of width x height px.

fortran
subroutine begin_page(self, file, width, height, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(backend_html)inoutDevice.
filecharacter(len=*)inOutput file.
widthreal(kind=R8P)inPage width [px].
heightreal(kind=R8P)inPage height [px].
font_sizereal(kind=R8P)inDefault font size [px].

Call graph

end_page ​

Close the SVG, append the viewer script, close the page and publish it atomically.

fortran
subroutine end_page(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(backend_html)inoutDevice.

Call graph