A window in a raster including pixels in [xStart, xStop) and [yStart, yStop).
More...
#include <viewshed.h>
|
int | xSize () const |
| Window size in the X direction.
|
|
int | ySize () const |
| Window size in the Y direction.
|
|
bool | containsX (int nX) const |
| Determine if the X window contains the index. More...
|
|
bool | containsY (int nY) const |
| Determine if the Y window contains the index. More...
|
|
bool | contains (int nX, int nY) const |
| Determine if the window contains the index. More...
|
|
int | clampX (int nX) const |
| Clamp the argument to be in the window in the X dimension. More...
|
|
int | clampY (int nY) const |
| Clamp the argument to be in the window in the Y dimension. More...
|
|
void | shiftX (int nShift) |
| Shift the X dimension by nShift. More...
|
|
|
int | xStart {} |
| X start position.
|
|
int | xStop {} |
| X end position.
|
|
int | yStart {} |
| Y start position.
|
|
int | yStop {} |
| Y end position.
|
|
A window in a raster including pixels in [xStart, xStop) and [yStart, yStop).
◆ clampX()
int gdal::Viewshed::Window::clampX |
( |
int |
nX | ) |
const |
|
inline |
Clamp the argument to be in the window in the X dimension.
- Parameters
-
- Returns
- Clamped value.
◆ clampY()
int gdal::Viewshed::Window::clampY |
( |
int |
nY | ) |
const |
|
inline |
Clamp the argument to be in the window in the Y dimension.
- Parameters
-
- Returns
- Clamped value.
◆ contains()
bool gdal::Viewshed::Window::contains |
( |
int |
nX, |
|
|
int |
nY |
|
) |
| const |
|
inline |
Determine if the window contains the index.
- Parameters
-
nX | X coordinate of the index to check |
nY | Y coordinate of the index to check |
- Returns
- True if the index is contained, false otherwise.
◆ containsX()
bool gdal::Viewshed::Window::containsX |
( |
int |
nX | ) |
const |
|
inline |
Determine if the X window contains the index.
- Parameters
-
- Returns
- True if the index is contained, false otherwise.
◆ containsY()
bool gdal::Viewshed::Window::containsY |
( |
int |
nY | ) |
const |
|
inline |
Determine if the Y window contains the index.
- Parameters
-
- Returns
- True if the index is contained, false otherwise.
◆ shiftX()
void gdal::Viewshed::Window::shiftX |
( |
int |
nShift | ) |
|
|
inline |
Shift the X dimension by nShift.
- Parameters
-
The documentation for this struct was generated from the following file: