Implementation of the per-cell 2D infiltration value types, resolution and token grammar declared in meshinfil.h. More...
#include "mesh/meshinfil.h"#include "mesh/meshresult.h"#include <QCoreApplication>#include <QFile>#include <QFileInfo>#include <QSaveFile>#include <QTextStream>#include <cmath>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 | |
| int | mesh::indexOfDefault (const MeshResult &mesh, const QString &tag) |
| Find the first exact case-sensitive default tag match. | |
| InfilRow | mesh::starDefault (const MeshResult &mesh) |
| Copy the first wildcard infiltration default, if present. | |
| ResolvedInfil | mesh::resolveInfil (const MeshResult &mesh, int tri) |
| Resolve an owned infiltration specification while preserving its authoring provenance. | |
| bool | mesh::infilUsesParam (InfilMethod method, int slot) |
| Check whether a model uses a zero-based positional parameter slot. | |
| int | mesh::infilParamCount (InfilMethod method) |
| Report serialized parameter-column width rather than number of active values. | |
| QString | mesh::infilParamLabel (InfilMethod method, int slot) |
| Translate the model-specific label for an active positional parameter. | |
| QByteArray | mesh::infilParamKey (InfilMethod method, int slot) |
| Map an active model slot to its case-sensitive shared registry key. | |
| int | mesh::infilSlotForKey (InfilMethod method, const QByteArray &key) |
| Resolve a named parameter key to its position under one model. | |
| const QVector< QByteArray > & | mesh::infilParamKeys () |
| Return the immutable union of named infiltration parameter keys in registration order. | |
| QString | mesh::infilMethodToken (InfilMethod m) |
| Encode an infiltration method using the stable uppercase file vocabulary. | |
| InfilMethod | mesh::infilMethodFromToken (const QString &token, bool *ok=nullptr) |
| Parse a trimmed case-insensitive infiltration method token. | |
| QString | mesh::infilMethodLabel (InfilMethod m) |
| Translate a display label for an infiltration method. | |
| QStringList | mesh::infilMethodLabels () |
| Build translated method labels in consecutive enum order from None through Constant. | |
| QString | mesh::infilDestToken (InfilDest d) |
| Encode a destination enum as its retained uppercase file token. | |
| InfilDest | mesh::infilDestFromToken (const QString &token, bool *ok=nullptr) |
| Parse a retained destination token independently of current engine support. | |
| QString | mesh::infilDestLabel (InfilDest d) |
| Translate the display label of a retained destination value. | |
| QStringList | mesh::infilDestLabels () |
| Build translated destination labels in enum order Lost, SubcatchAquifer, Aquifer2D. | |
| QString | mesh::infilDestHint (InfilDest d) |
| Translate destination guidance without resolving any open model. | |
| bool | mesh::saveLookupTableCsv (const InfilLookupTable &table, const QString &path, QString *err) |
| Serialize classified infiltration entries and optional fallback to a QSaveFile CSV replacement. | |
| bool | mesh::loadLookupTableCsv (InfilLookupTable *table, const QString &path, QString *err) |
| Load the permissive unquoted classified-lookup CSV format into a fresh table value. | |
Implementation of the per-cell 2D infiltration value types, resolution and token grammar declared in meshinfil.h.
Tokens, positional parameter order and destination spellings are copied from the engine's src/engine/2d/infil/Infil2D.cpp (parseInfil2DMethod / infil2DMethodToken / infil2DParamCount) — the two sides read and write the same [2D_INFILTRATION*] sections, so any divergence here is a silent data-loss bug.