Catchea
Topographic Data Browser
Classes | Functions | Variables
catchmenter.h File Reference
#include <vector>
#include "real_tile/real_tile.h"
Include dependency graph for catchmenter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Kernel
 

Functions

bool is_local_minimum (const RealTile *tile, const int &pos_x, const int &pos_y, const Kernel &kernel)
 
void Catchmenter__color_pixel (RealTile *tile, const int &x, const int &y, const Kernel &kernel)
 
void Catchmenter__color_all (RealTile *tile, const Kernel &kernel)
 
void Catchmenter__color_all_immediate (RealTile *tile, const Kernel &kernel)
 
void Catchmenter__color_all_immediate_heightwise (RealTile *tile, const Kernel &kernel)
 
void Catchmenter__from (RealTile *tile, bool *visi_matrix, const int &from_x, const int &from_y, const Kernel &kernel, int jump_max)
 
void Catchmenter__all (RealTile *tile, const Kernel &kernel, int jump_max)
 

Variables

Kernel K4
 
Kernel K4_HARD_MIN
 
Kernel K8
 
Kernel K8_HARD_MIN
 

Detailed Description

Author
JMendyk
Date
19.01.18

Function Documentation

void Catchmenter__all ( RealTile tile,
const Kernel kernel,
int  jump_max 
)

Color whole RealTile using "Disjunctive" algorithm

Parameters
tileRealTile to catchment
kernelKernel to use for coloring
jump_maxRadius of area to check for expansion possibility
void Catchmenter__color_all ( RealTile tile,
const Kernel kernel 
)
void Catchmenter__color_all_immediate ( RealTile tile,
const Kernel kernel 
)

Immediately color whole RealTile

Parameters
tileRealTile to catchment
kernelKernel to use for coloring
void Catchmenter__color_all_immediate_heightwise ( RealTile tile,
const Kernel kernel 
)

Immediately color whole RealTile performing coloring based on height order

Parameters
tileRealTile to catchment
kernelKernel to use for coloring
void Catchmenter__color_pixel ( RealTile tile,
const int &  x,
const int &  y,
const Kernel kernel 
)
void Catchmenter__from ( RealTile tile,
bool *  visi_matrix,
const int &  from_x,
const int &  from_y,
const Kernel kernel,
int  jump_max 
)

Color RealTile from given position

Parameters
tileRealTile to catchment
visi_matrixMatrix representing which positions have already been visited by Catchmeneter
from_xstarting position's x coordinate
from_ystarting position's y coordinate
kernelKernel to use for coloring
jump_maxRadius of area to check for expansion possibility
bool is_local_minimum ( const RealTile tile,
const int &  pos_x,
const int &  pos_y,
const Kernel kernel 
)

Check if given position is at local minimum

Parameters
tileRealTile to get height data from
pos_xposition's x coordinate
pos_yposition's y coordinate
kernelKernel to use for check
Returns
Is position at local minimum