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
visibilityboolean.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 Boolean : public AbstractViewshedAlgorithm
13 {
14
15 public:
16 Boolean( double visible = 1, double invisible = 0, double pointValue = 1 );
17
18 double result( std::shared_ptr<LoSImportantValues> losValues, std::shared_ptr<AbstractLoS> los ) override;
19
20 double pointValue() override { return mPointValue; };
21
22 const std::string name() override;
23
24 private:
25 double mVisibile;
26 double mInvisibile;
27 double mPointValue;
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 boolean.cpp:12
double pointValue() override
Value at important point, either view point for viewshed or target point for inverse viewshed.
Definition visibilityboolean.h:20
double pointValue() override
Value at important point, either view point for viewshed or target point for inverse viewshed.
Definition visibilityboolean.h:20