SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmmvis::ui::InletSceneBuilder Class Reference

Pure scene factory for one inlet design. More...

#include <inletdrawingview.h>

Collaboration diagram for openswmmvis::ui::InletSceneBuilder:

Static Public Member Functions

static QGraphicsScene * build (const openswmmvis::inlet::InletProvider &design, const UnitSystem *units, const InletTheme &theme, const QVector< QPointF > &customCurve={})
 Build the plan + section (or, for CUSTOM, the plotted curve) for design.
 

Static Public Attributes

static constexpr int CalloutRole = 0
 QGraphicsItem::data() key marking a dimension-callout label. The stored value is the label text.
 

Detailed Description

Pure scene factory for one inlet design.

Member Function Documentation

◆ build()

QGraphicsScene * openswmmvis::ui::InletSceneBuilder::build ( const openswmmvis::inlet::InletProvider design,
const UnitSystem units,
const InletTheme theme,
const QVector< QPointF > &  customCurve = {} 
)
static

Build the plan + section (or, for CUSTOM, the plotted curve) for design.

Parameters
designThe inlet whose parameters are drawn.
unitsUnit system used for the callout suffixes; may be null, in which case US units (ft, ft/s) are used.
themeColours.
customCurvePoints of the referenced capture curve, supplied by the host from the curve registry. Only read for a CUSTOM design; an empty list draws empty axes.
Returns
A new, unparented scene — the caller takes ownership.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ CalloutRole

constexpr int openswmmvis::ui::InletSceneBuilder::CalloutRole = 0
staticconstexpr

QGraphicsItem::data() key marking a dimension-callout label. The stored value is the label text.


The documentation for this class was generated from the following files: