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
meshobjectref.h
Go to the documentation of this file.
1
21#ifndef OPENSWMMVIS_MESH_MESHOBJECTREF_H
22#define OPENSWMMVIS_MESH_MESHOBJECTREF_H
23
25
26#include <QString>
27
28namespace mesh {
29
31{
32public:
35 static QString layerKey(const QString &sourcePath);
36
39 static SWMMObjectRef vertex(const QString &sourcePath, int vertexIdx);
40
43 static SWMMObjectRef edge(const QString &sourcePath, int triIdx, int edgeLocal);
44
47 static SWMMObjectRef cell(const QString &sourcePath, int triIdx);
48
52 static bool parseVertex(const SWMMObjectRef &ref,
53 QString *outLayerKey,
54 int *outVertexIdx);
55
57 static bool parseEdge(const SWMMObjectRef &ref,
58 QString *outLayerKey,
59 int *outTriIdx,
60 int *outEdgeLocal);
61
63 static bool parseCell(const SWMMObjectRef &ref,
64 QString *outLayerKey,
65 int *outTriIdx);
66};
67
68} // namespace mesh
69
70#endif // OPENSWMMVIS_MESH_MESHOBJECTREF_H
Definition meshobjectref.h:31
static QString layerKey(const QString &sourcePath)
"mesh::<basename>" for the given source path (extension stripped). Empty path → "mesh::<unsaved>".
Definition meshobjectref.cpp:14
static bool parseCell(const SWMMObjectRef &ref, QString *outLayerKey, int *outTriIdx)
Parse a cell ref name.
Definition meshobjectref.cpp:44
static SWMMObjectRef edge(const QString &sourcePath, int triIdx, int edgeLocal)
Build a SelectionManager ref naming an edge on the layer whose source file is at sourcePath.
Definition meshobjectref.cpp:28
static bool parseEdge(const SWMMObjectRef &ref, QString *outLayerKey, int *outTriIdx, int *outEdgeLocal)
Parse an edge ref name.
Definition meshobjectref.cpp:78
static SWMMObjectRef vertex(const QString &sourcePath, int vertexIdx)
Build a SelectionManager ref naming a vertex on the layer whose source file is at sourcePath.
Definition meshobjectref.cpp:21
static bool parseVertex(const SWMMObjectRef &ref, QString *outLayerKey, int *outVertexIdx)
Parse a vertex ref name. Returns true and fills the outs on success; false (and leaves outs untouched...
Definition meshobjectref.cpp:61
std::vector< int > cell
Definition mesh2dresultsexport.cpp:609
Definition meshcommands.h:302
EdgeRef ref
Definition pslgminsize.cpp:377
Identifies a single SWMM object.
Definition selectionmanager.h:32