#include <kindrendererpanel.h>
◆ KindRendererPanel() [1/3]
- Parameters
-
| hostLayer | Either a SWMMModelLayer or a SWMMResultsLayer. The panel uses the layer's kindRenderer / setKindRenderer / resetKindRendererToDefaults API to read and write per-kind renderers. |
◆ KindRendererPanel() [2/3]
Slice B.6a — Rule-aware constructor. The panel reads/writes the Rule's owned IFeatureRenderer directly. rule must outlive the panel; the panel does not take ownership.
◆ KindRendererPanel() [3/3]
Rule-aware constructor that ALSO knows which kind of which layer the Rule mirrors.
The renderer still reads and writes through rule (it takes priority in currentRenderer / installRenderer / resetToDefaults, so behaviour is unchanged). The extra context exists for the controls that are NOT renderer state and therefore cannot be reached through a Rule at all — today that is the flow-direction-arrow group, which lives on the layer's per-kind channel (SWMMElementSymbol for model layers, LineFeatureSublayerStyle for results layers).
Without this, the rule-only constructor left the panel with a null host and a CatJunctions sentinel category, so isLinkKind() was false and the arrow group stayed hidden for every rule-backed kind — which is every kind on a results layer.
◆ ~KindRendererPanel()
| openswmmvis::ui::KindRendererPanel::~KindRendererPanel |
( |
| ) |
|
|
overridedefault |
◆ refreshFromModel()
| void openswmmvis::ui::KindRendererPanel::refreshFromModel |
( |
| ) |
|
Re-read the current renderer from the host layer and update the panel's controls. Called by the dialog after a Cancel rollback.
The documentation for this class was generated from the following files: