Loading...
Searching...
No Matches
meshcellparams.h File Reference

Registry of the per-cell (per-triangle) 2D mesh parameters the user can prescribe interactively, plus the read/write dispatch every editing surface shares. More...

#include "meshinfil.h"
#include "meshresult.h"
#include <QByteArray>
#include <QString>
#include <QStringList>
#include <QVector>
Include dependency graph for meshcellparams.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mesh::CellParamSpec
 Describes one editable per-cell parameter: how to label it, how to configure a numeric editor for it, and whether it is live yet. More...
 

Namespaces

namespace  mesh
 The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and cell attributes, the mesh generator, quad regions, matching and cleanup, mesh statistics, and the INP and 2DM mesh codecs.
 

Functions

const QVector< CellParamSpec > & mesh::cellParamSpecs ()
 Return the immutable shared registry of mesh cell parameter/editor specifications.
 
const CellParamSpec * mesh::cellParamSpec (const QByteArray &key)
 Find a registry specification by its case-sensitive stable byte key.
 
QString mesh::cellParamLabel (const QByteArray &key, const QString &depthUnitLabel)
 Build a display label using the registry and an optional project depth-unit suffix.
 
double mesh::cellParamValue (const MeshResult &mesh, int tri, const QByteArray &key)
 Read a stored or inheritance-resolved cell parameter without substituting editor defaults.
 
QByteArray mesh::initialConditionCounterpart (const QByteArray &key)
 Name the alternative initial-condition key of key.
 

Detailed Description

Registry of the per-cell (per-triangle) 2D mesh parameters the user can prescribe interactively, plus the read/write dispatch every editing surface shares.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License
Apache-2.0

Registry of the per-cell (per-triangle) 2D mesh parameters the user can prescribe interactively, plus the read/write dispatch every editing surface shares.

One table drives the mesh-editing toolbar's parameter selector, the Cell Data assignment dialog's target selector, and the undo command's value plumbing, so a new parameter is added in exactly one place.

This header is deliberately read-only and layer-free. Writes live in map/meshcommands.h, where they funnel through SWMM2DMeshLayer::applyMeshTriangle* (which emits attributeChanged, the signal that keeps the toolbar, the properties panel and the map in sync no matter which surface made the edit) and onto the undo stack.

Groundwater parameters use a separate assignment workflow. Their entries remain disabled in this generic mesh-field selector and direct users to it.