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::QuadBlockGrid Struct Reference

Local cell size on a regular grid; NaN marks unusable cells. More...

#include <quadblocks.h>

Collaboration diagram for mesh::QuadBlockGrid:

Public Member Functions

bool isValid () const
 Check the basic grid dimensions, positive pitch and exact h-vector extent.
 

Public Attributes

QPointF origin
 Lower-left corner of cell (0, 0).
 
double pitch = 0.0
 
int cols = 0
 
int rows = 0
 
QVector< float > h
 Row-major, cols x rows.
 

Detailed Description

Local cell size on a regular grid; NaN marks unusable cells.

Member Function Documentation

◆ isValid()

bool mesh::QuadBlockGrid::isValid ( ) const
inline

Check the basic grid dimensions, positive pitch and exact h-vector extent.

Returns
True when pitch>0, rows/cols>0 and h.size()==qsizetype(cols)*rows, false otherwise. Does not check finite pitch/origin, usable sample values or spatial arithmetic representability; infinity can pass the pitch test. Constant read-only query with no allocation or geometry access.

Member Data Documentation

◆ cols

int mesh::QuadBlockGrid::cols = 0

◆ h

QVector<float> mesh::QuadBlockGrid::h

Row-major, cols x rows.

◆ origin

QPointF mesh::QuadBlockGrid::origin

Lower-left corner of cell (0, 0).

◆ pitch

double mesh::QuadBlockGrid::pitch = 0.0

◆ rows

int mesh::QuadBlockGrid::rows = 0

The documentation for this struct was generated from the following file: