6#ifndef VIEWSHED_TYPES_H_INCLUDED
7#define VIEWSHED_TYPES_H_INCLUDED
20using DatasetPtr = std::unique_ptr<GDALDataset>;
104 return static_cast<size_t>(
xSize()) *
ySize();
String list class designed around our use of C "char**" string lists.
Definition: cpl_string.h:436
Options for viewshed generation.
Definition: viewshed_types.h:58
Point observer
x, y, and z of the observer
Definition: viewshed_types.h:59
double targetHeight
target height above the DEM surface
Definition: viewshed_types.h:65
double outOfRangeVal
raster output value for pixels outside of max distance.
Definition: viewshed_types.h:62
CPLStringList creationOpts
options for output raster creation
Definition: viewshed_types.h:73
double curveCoeff
coefficient for atmospheric refraction
Definition: viewshed_types.h:68
double invisibleVal
raster output value for non-visible pixels.
Definition: viewshed_types.h:61
double nodataVal
raster output value for pixels with no data
Definition: viewshed_types.h:64
uint8_t numJobs
Relative number of jobs in cumulative mode.
Definition: viewshed_types.h:76
std::string outputFormat
output raster format
Definition: viewshed_types.h:71
OutputMode outputMode
Output information.
Definition: viewshed_types.h:69
std::string outputFilename
output raster filename
Definition: viewshed_types.h:72
double maxDistance
maximum distance from observer to compute value
Definition: viewshed_types.h:66
double visibleVal
raster output value for visible pixels.
Definition: viewshed_types.h:60
CellMode cellMode
Mode of cell height calculation.
Definition: viewshed_types.h:74
int observerSpacing
Observer spacing in cumulative mode.
Definition: viewshed_types.h:75
A point.
Definition: viewshed_types.h:48
double y
Y value.
Definition: viewshed_types.h:50
double x
X value.
Definition: viewshed_types.h:49
double z
Z value.
Definition: viewshed_types.h:51
A window in a raster including pixels in [xStart, xStop) and [yStart, yStop).
Definition: viewshed_types.h:83
void shiftX(int nShift)
Shift the X dimension by nShift.
Definition: viewshed_types.h:150
int xStart
X start position.
Definition: viewshed_types.h:84
int clampX(int nX) const
Clamp the argument to be in the window in the X dimension.
Definition: viewshed_types.h:135
bool containsX(int nX) const
Determine if the X window contains the index.
Definition: viewshed_types.h:110
int yStop
Y end position.
Definition: viewshed_types.h:87
int xStop
X end position.
Definition: viewshed_types.h:85
int yStart
Y start position.
Definition: viewshed_types.h:86
int clampY(int nY) const
Clamp the argument to be in the window in the Y dimension.
Definition: viewshed_types.h:143
size_t size() const
Number of cells.
Definition: viewshed_types.h:102
int ySize() const
Window size in the Y direction.
Definition: viewshed_types.h:96
bool containsY(int nY) const
Determine if the Y window contains the index.
Definition: viewshed_types.h:118
bool contains(int nX, int nY) const
Determine if the window contains the index.
Definition: viewshed_types.h:127
int xSize() const
Window size in the X direction.
Definition: viewshed_types.h:90