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
ZPolicy Struct Reference

How a layer's vertex Z values are obtained (PLAN §4.1). More...

#include <featurelayer.h>

Collaboration diagram for ZPolicy:

Public Types

enum class  Source {
  None = 0 ,
  Constant ,
  Raster ,
  Mesh
}
 

Public Member Functions

bool isThreeD () const
 
QJsonObject toJson () const
 
bool operator== (const ZPolicy &o) const
 
bool operator!= (const ZPolicy &o) const
 

Static Public Member Functions

static ZPolicy fromJson (const QJsonObject &o)
 

Public Attributes

Source source = Source::None
 
QString sourceLayerId
 OpenSWMMVisLayer::layerId() of the raster or mesh.
 
int rasterBand = 1
 
double constant = 0.0
 
double densifySpacing = 0.0
 
double zScale = 1.0
 
bool resampleOnEdit = true
 

Detailed Description

How a layer's vertex Z values are obtained (PLAN §4.1).

source == None means the layer is 2D: its GeoPackage table is created without the 25D flag and FeatureLayer::isThreeD is false. Because that decides the OGR geometry type it is fixed at creation; the SOURCE may be changed afterwards and followed by a Resample Z.

Member Enumeration Documentation

◆ Source

enum class ZPolicy::Source
strong
Enumerator
None 
Constant 
Raster 
Mesh 

Member Function Documentation

◆ fromJson()

ZPolicy ZPolicy::fromJson ( const QJsonObject &  o)
static
Here is the caller graph for this function:

◆ isThreeD()

bool ZPolicy::isThreeD ( ) const
inline
Here is the caller graph for this function:

◆ operator!=()

bool ZPolicy::operator!= ( const ZPolicy o) const
inline

◆ operator==()

bool ZPolicy::operator== ( const ZPolicy o) const

◆ toJson()

QJsonObject ZPolicy::toJson ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ constant

double ZPolicy::constant = 0.0

◆ densifySpacing

double ZPolicy::densifySpacing = 0.0

Insert vertices every densifySpacing map units before sampling, so a breakline drawn with three clicks follows the terrain instead of chording it. <= 0 disables. Must stay >= the mesh minimum cell size or the constraint segments come out sub-cell — the dock warns.

◆ rasterBand

int ZPolicy::rasterBand = 1

◆ resampleOnEdit

bool ZPolicy::resampleOnEdit = true

Re-sample a vertex's Z when it is moved or inserted.

◆ source

Source ZPolicy::source = Source::None

◆ sourceLayerId

QString ZPolicy::sourceLayerId

OpenSWMMVisLayer::layerId() of the raster or mesh.

◆ zScale

double ZPolicy::zScale = 1.0

Vertical unit conversion applied to every sample (raster feet → model metres, etc.). Seeded from GISRasterLayer::detectVerticalUnit.


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