OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
SpatialHandler.cpp File Reference

Section handlers for [MAP], [VERTICES], [POLYGONS], [SYMBOLS]. More...

#include "SpatialHandler.hpp"
#include "../Tokenizer.hpp"
#include "../../core/SimulationContext.hpp"
#include "../InputParseUtils.hpp"
#include <algorithm>
Include dependency graph for SpatialHandler.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::input
 

Functions

void openswmm::input::handle_map (SimulationContext &ctx, const std::vector< std::string > &lines)
 Update map extents and map-unit metadata from recognized rows.
 
void openswmm::input::handle_vertices (SimulationContext &ctx, const std::vector< std::string > &lines)
 Rebuild each link's ordered intermediate-vertex lists.
 
void openswmm::input::handle_polygons (SimulationContext &ctx, const std::vector< std::string > &lines)
 Rebuild each subcatchment's ordered polygon coordinate lists.
 
void openswmm::input::handle_symbols (SimulationContext &ctx, const std::vector< std::string > &lines)
 Update rain-gage symbol coordinates from known-name rows.
 
void openswmm::input::handle_tags (SimulationContext &ctx, const std::vector< std::string > &lines)
 Assign per-object tags for known NODE, LINK and SUBCATCH rows.
 

Detailed Description

Section handlers for [MAP], [VERTICES], [POLYGONS], [SYMBOLS].

[MAP] format

[MAP]
DIMENSIONS x1 y1 x2 y2
UNITS NONE
@ NONE
None option.
Definition enums.h:1184

[VERTICES] format

;; Link X Y
C1 2735.503 6483.508
C1 2174.216 6351.033
@ Y
Definition culvert.c:39
EXTERN TLink * Link
Definition globals.h:160

[POLYGONS] format

;; Subcatchment X Y
S1 2174.216 8125.000
S1 2482.570 8125.000

[SYMBOLS] format

;; Gage X Y
RG1 1000.000 5000.000
EXTERN TGage * Gage
Definition globals.h:152
See also
SpatialHandler.hpp
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
Apache-2.0