Class that represents important point for viewshed - view point, or inverse viewshed - target point. The point is specified by cell position in raster coordinates, world coordinates, elevation at point, offset from elevation and cell size.
More...
#include <point.h>
|
|
| Point () |
| | Construct a new Point object which is empty.
|
| | Point (int row_, int col_, double elevation, double offset, double cellSize) |
| | Construct a new Point object by manually specifying all the necessary information.
|
| | Point (OGRPoint point, std::shared_ptr< SingleBandRaster > dem, double offsetAtPoint=OBSERVER_OFFSET) |
| | Construct a new Point object from OGRPoint, SingleBandRaster and offset.
|
| double | totalElevation () |
| | Combination of elevation plus offset;.
|
| double | distance (std::shared_ptr< Point > point) |
| | Distance from another point.
|
| bool | isValid () |
| | Check if the point is valid.
|
|
|
double | mX = 0 |
|
double | mY = 0 |
|
double | mElevation = 0 |
|
double | mOffset = 0 |
|
double | mCellSize = 0 |
|
int | mRow = -1 |
|
int | mCol = -1 |
|
|
void | setUp (OGRPoint point, std::shared_ptr< SingleBandRaster > dem) |
|
void | setUp (int row, int col, std::shared_ptr< SingleBandRaster > dem) |
Class that represents important point for viewshed - view point, or inverse viewshed - target point. The point is specified by cell position in raster coordinates, world coordinates, elevation at point, offset from elevation and cell size.
◆ Point() [1/2]
| Point::Point |
( |
int | row_, |
|
|
int | col_, |
|
|
double | elevation, |
|
|
double | offset, |
|
|
double | cellSize ) |
Construct a new Point object by manually specifying all the necessary information.
- Parameters
-
| row | |
| col | |
| elevation | |
| offset | |
| cellSize | |
◆ Point() [2/2]
| Point::Point |
( |
OGRPoint | point, |
|
|
std::shared_ptr< SingleBandRaster > | dem, |
|
|
double | offsetAtPoint = OBSERVER_OFFSET ) |
Construct a new Point object from OGRPoint, SingleBandRaster and offset.
- Parameters
-
| point | |
| dem | |
| offsetAtPoint | |
| rasterBand | |
◆ distance()
Distance from another point.
- Parameters
-
- Returns
- double
◆ isValid()
Check if the point is valid.
- Returns
- true
-
false
◆ totalElevation()
Combination of elevation plus offset;.
- Returns
- double
The documentation for this class was generated from the following files:
- /home/runner/work/cpp-viewshed-library/cpp-viewshed-library/include/viewshed/point.h
- /home/runner/work/cpp-viewshed-library/cpp-viewshed-library/src/library/structures/point.cpp