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
mesh::MeshObjectRef Class Reference

#include <meshobjectref.h>

Collaboration diagram for mesh::MeshObjectRef:

Static Public Member Functions

static QString layerKey (const QString &sourcePath)
 "mesh::<basename>" for the given source path (extension stripped). Empty path → "mesh::<unsaved>".
 
static SWMMObjectRef vertex (const QString &sourcePath, int vertexIdx)
 Build a SelectionManager ref naming a vertex on the layer whose source file is at sourcePath.
 
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.
 
static SWMMObjectRef cell (const QString &sourcePath, int triIdx)
 Build a SelectionManager ref naming a cell (triangle) on the layer whose source file is at sourcePath.
 
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) if the name is malformed or names a different kind.
 
static bool parseEdge (const SWMMObjectRef &ref, QString *outLayerKey, int *outTriIdx, int *outEdgeLocal)
 Parse an edge ref name.
 
static bool parseCell (const SWMMObjectRef &ref, QString *outLayerKey, int *outTriIdx)
 Parse a cell ref name.
 

Member Function Documentation

◆ cell()

SWMMObjectRef mesh::MeshObjectRef::cell ( const QString &  sourcePath,
int  triIdx 
)
static

Build a SelectionManager ref naming a cell (triangle) on the layer whose source file is at sourcePath.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ edge()

SWMMObjectRef mesh::MeshObjectRef::edge ( const QString &  sourcePath,
int  triIdx,
int  edgeLocal 
)
static

Build a SelectionManager ref naming an edge on the layer whose source file is at sourcePath.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ layerKey()

QString mesh::MeshObjectRef::layerKey ( const QString &  sourcePath)
static

"mesh::<basename>" for the given source path (extension stripped). Empty path → "mesh::<unsaved>".

Here is the caller graph for this function:

◆ parseCell()

bool mesh::MeshObjectRef::parseCell ( const SWMMObjectRef ref,
QString *  outLayerKey,
int *  outTriIdx 
)
static

Parse a cell ref name.

Here is the caller graph for this function:

◆ parseEdge()

bool mesh::MeshObjectRef::parseEdge ( const SWMMObjectRef ref,
QString *  outLayerKey,
int *  outTriIdx,
int *  outEdgeLocal 
)
static

Parse an edge ref name.

Here is the caller graph for this function:

◆ parseVertex()

bool mesh::MeshObjectRef::parseVertex ( const SWMMObjectRef ref,
QString *  outLayerKey,
int *  outVertexIdx 
)
static

Parse a vertex ref name. Returns true and fills the outs on success; false (and leaves outs untouched) if the name is malformed or names a different kind.

Here is the caller graph for this function:

◆ vertex()

SWMMObjectRef mesh::MeshObjectRef::vertex ( const QString &  sourcePath,
int  vertexIdx 
)
static

Build a SelectionManager ref naming a vertex on the layer whose source file is at sourcePath.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: