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
objectdefaultsapplier.h File Reference

Applies PreferencesManager::ObjectDefaults to a freshly created engine object. Called by the Add*Commands (draw tools) and the GIS feature importer — the two creation choke points — BEFORE any geometry-derived overrides (auto-length, auto-area, terrain inverts) so the more specific value wins. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ObjectDefaultsApplier
 

Typedefs

typedef void * SWMM_Engine
 

Functions

void ObjectDefaultsApplier::applyNodeDefaults (SWMM_Engine engine, int idx, int nodeType)
 
void ObjectDefaultsApplier::applyLinkDefaults (SWMM_Engine engine, int idx, int linkType, bool skipLength)
 
void ObjectDefaultsApplier::applySubcatchDefaults (SWMM_Engine engine, int idx, bool skipArea)
 
void ObjectDefaultsApplier::applyGageDefaults (SWMM_Engine engine, int idx)
 Rain gage defaults (format, interval, snow catch factor).
 

Detailed Description

Applies PreferencesManager::ObjectDefaults to a freshly created engine object. Called by the Add*Commands (draw tools) and the GIS feature importer — the two creation choke points — BEFORE any geometry-derived overrides (auto-length, auto-area, terrain inverts) so the more specific value wins.

Deliberately NOT called from SWMMModelLayer::applyXxxAdd: those are the replay primitives for undo-of-delete and must stay defaults-free so restored objects keep their captured properties.

Plan: workplans/OBJECT_CREATION_DEFAULTS_PLAN_2026-08-03.md

Typedef Documentation

◆ SWMM_Engine

typedef void* SWMM_Engine