Documentation
¶
Overview ¶
Package views renders SysML v2 views, for the sysml-view macro (requirement MC-21): OpenSysML writes a view in process with sysml.Model.RenderView — DOT for a diagram, columns and rows for a table — and Graphviz's dot lays the DOT out as SVG. A table needs no program.
reg.SetViews(&views.InProcess{Model: m}) // reg from macros.Register
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InProcess ¶
type InProcess struct {
// Model is the parsed model whose views these are, open while rendering.
Model *sysml.Model
// Dot is Graphviz's dot command, which lays a diagram out; "" runs "dot"
// from PATH. Only a diagram needs it: a table is written from the rows
// the rendering gives.
Dot string
// contains filtered or unexported fields
}
InProcess renders views with OpenSysML's RenderView, in process, once per view: it is a macros.Views. Renderings are kept, failures included, so a view shown on several pages is rendered once. Safe for concurrent use.