Viewshed 6.1.0
A C++ library for calculation of viewshed, inverse viewshed and visibility indices for both of those analyses.
Loading...
Searching...
No Matches
visibilityhorizonscount.h
1#pragma once
2#include "viewshed_export.h"
3
4#include <limits>
5
6#include "abstractviewshedalgorithm.h"
7
8namespace viewshed
9{
10 namespace visibilityalgorithm
11 {
12 class DLL_API HorizonsCount : public AbstractViewshedAlgorithm
13 {
14
15 public:
16 HorizonsCount( bool beforeTarget = true, bool onlyVisible = false, double invisibleValue = -1 );
17
18 double result( std::shared_ptr<LoSImportantValues> losValues, std::shared_ptr<AbstractLoS> los ) override;
19
20 double pointValue() override { return 0; };
21
22 const std::string name() override;
23
24 private:
25 bool mBeforeTarget = true;
26 bool mOnlyVisible = false;
27 int mInvisibleValue = -1;
28 };
29 } // namespace visibilityalgorithm
30} // namespace viewshed
Base class for all Viewshed Algorithms.
Definition abstractviewshedalgorithm.h:19
double result(std::shared_ptr< LoSImportantValues > losValues, std::shared_ptr< AbstractLoS > los) override
Extract resulting value based on LoSImportantValues and specific los.
Definition horizonscount.cpp:13
double pointValue() override
Value at important point, either view point for viewshed or target point for inverse viewshed.
Definition visibilityhorizonscount.h:20