GDAL
Classes | Public Member Functions | Friends | List of all members
gdal::viewshed::Cumulative Class Reference

Generates a cumulative viewshed from a matrix of observers. More...

#include <cumulative.h>

Public Member Functions

 Cumulative (const Options &opts)
 Constructor. More...
 
 ~Cumulative ()
 Destructor.
 
bool run (const std::string &srcFilename, GDALProgressFunc pfnProgress=GDALDummyProgress, void *pProgressArg=nullptr)
 Compute the cumulative viewshed of a raster band. More...
 

Friends

class Combiner
 

Detailed Description

Generates a cumulative viewshed from a matrix of observers.

Constructor & Destructor Documentation

◆ Cumulative()

gdal::viewshed::Cumulative::Cumulative ( const Options opts)
explicit

Constructor.

Parameters
optsOptions for viewshed generation.

Member Function Documentation

◆ run()

bool gdal::viewshed::Cumulative::run ( const std::string &  srcFilename,
GDALProgressFunc  pfnProgress = GDALDummyProgress,
void *  pProgressArg = nullptr 
)

Compute the cumulative viewshed of a raster band.

Parameters
srcFilenameSource filename.
pfnProgressPointer to the progress function. Can be null.
pProgressArgArgument passed to the progress function
Returns
True on success, false otherwise.

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