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
meshassignmentsampling.cpp File Reference

Shared raster and vector sampling for mesh parameter assignments. More...

#include "assignment/meshassignmentsampling.h"
#include "mesh/dtmsampler.h"
#include <gdal_priv.h>
#include <ogr_geometry.h>
#include <ogr_spatialref.h>
#include <ogrsf_frmts.h>
#include <QFileInfo>
#include <QHash>
#include <QVariant>
#include <QObject>
#include <algorithm>
#include <cmath>
#include <limits>
#include <memory>
#include <stdexcept>
#include <utility>
#include <vector>
Include dependency graph for meshassignmentsampling.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::assignment
 

Functions

MeshAssignmentSampling::SampleResult openswmmvis::assignment::sampleMeshAssignment (const MeshAssignmentSampling::Job &job, std::function< bool()> cancelled={}, std::function< void(int, int)> progress={})
 Run a self-contained raster/vector sampling job on the calling thread.
 
void openswmmvis::assignment::runMeshAssignmentSampling (QPromise< MeshAssignmentSampling::SampleResult > &promise, MeshAssignmentSampling::Job job)
 Adapt synchronous sampling to a Qt concurrent promise.
 

Detailed Description

Shared raster and vector sampling for mesh parameter assignments.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
GPL-3.0-or-later

Variable Documentation

◆ bestKey

QString bestKey

◆ bestV

double bestV = std::numeric_limits<double>::quiet_NaN()

◆ bestValid

bool bestValid = false

◆ bestW

double bestW = 0.0

largest single share seen

◆ cancel

std::function<bool()> cancel

◆ ds

GDALDataset* ds = nullptr

◆ report

std::function<void(int, int)> report

◆ sum

double sum = 0.0

Σ weight · value.

◆ total

int total = 0

◆ wsum

double wsum = 0.0

Σ weight.