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
MeshTrianglePropertyAdapter Class Reference

#include <meshtrianglepropertyadapter.h>

Inheritance diagram for MeshTrianglePropertyAdapter:
Collaboration diagram for MeshTrianglePropertyAdapter:

Public Slots

void setMannings (double n)
 
void setInitDepth (double d)
 
void setTag (const QString &tag)
 
void refresh ()
 

Signals

void changed ()
 

Public Member Functions

 MeshTrianglePropertyAdapter (SWMM2DMeshLayer *layer, int triIdx, QObject *parent=nullptr)
 
int index () const
 
int v0 () const
 
int v1 () const
 
int v2 () const
 
double mannings () const
 
double initDepth () const
 
QString tag () const
 
Q_INVOKABLE QString displayLabelFor (const QString &property) const
 Same display-label convention as SWMM*PropertyAdapter. Length properties carry the project's depth unit (see setDepthUnitLabel).
 
void setCanvas (MapCanvas *canvas)
 Canvas whose undo stack numeric edits are pushed onto. Without one the edits still apply, just unundoably.
 
void setDepthUnitLabel (const QString &label)
 Project depth unit ("ft" / "m") shown in length labels; defaults to "m".
 

Properties

int index
 
int v0
 
int v1
 
int v2
 
double mannings
 
double initDepth
 
QString tag
 

Constructor & Destructor Documentation

◆ MeshTrianglePropertyAdapter()

MeshTrianglePropertyAdapter::MeshTrianglePropertyAdapter ( SWMM2DMeshLayer layer,
int  triIdx,
QObject *  parent = nullptr 
)
Here is the call graph for this function:

Member Function Documentation

◆ changed

void MeshTrianglePropertyAdapter::changed ( )
signal
Here is the caller graph for this function:

◆ displayLabelFor()

QString MeshTrianglePropertyAdapter::displayLabelFor ( const QString &  property) const

Same display-label convention as SWMM*PropertyAdapter. Length properties carry the project's depth unit (see setDepthUnitLabel).

Here is the call graph for this function:

◆ index()

int MeshTrianglePropertyAdapter::index ( ) const
inline

◆ initDepth()

double MeshTrianglePropertyAdapter::initDepth ( ) const

◆ mannings()

double MeshTrianglePropertyAdapter::mannings ( ) const

◆ refresh

void MeshTrianglePropertyAdapter::refresh ( )
inlineslot
Here is the call graph for this function:

◆ setCanvas()

void MeshTrianglePropertyAdapter::setCanvas ( MapCanvas canvas)
inline

Canvas whose undo stack numeric edits are pushed onto. Without one the edits still apply, just unundoably.

◆ setDepthUnitLabel()

void MeshTrianglePropertyAdapter::setDepthUnitLabel ( const QString &  label)
inline

Project depth unit ("ft" / "m") shown in length labels; defaults to "m".

◆ setInitDepth

void MeshTrianglePropertyAdapter::setInitDepth ( double  d)
slot

◆ setMannings

void MeshTrianglePropertyAdapter::setMannings ( double  n)
slot

◆ setTag

void MeshTrianglePropertyAdapter::setTag ( const QString &  tag)
slot

◆ tag()

QString MeshTrianglePropertyAdapter::tag ( ) const

◆ v0()

int MeshTrianglePropertyAdapter::v0 ( ) const

◆ v1()

int MeshTrianglePropertyAdapter::v1 ( ) const

◆ v2()

int MeshTrianglePropertyAdapter::v2 ( ) const

Property Documentation

◆ index

int MeshTrianglePropertyAdapter::index
read

◆ initDepth

double MeshTrianglePropertyAdapter::initDepth
readwrite

◆ mannings

double MeshTrianglePropertyAdapter::mannings
readwrite

◆ tag

QString MeshTrianglePropertyAdapter::tag
readwrite

◆ v0

int MeshTrianglePropertyAdapter::v0
read

◆ v1

int MeshTrianglePropertyAdapter::v1
read

◆ v2

int MeshTrianglePropertyAdapter::v2
read

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