HighMap library (C++)
Loading...
Searching...
No Matches
hmap::FlowGraph Struct Reference

#include <flow_graph.hpp>

Collaboration diagram for hmap::FlowGraph:

Public Member Functions

void resize (int nx_, int ny_)
float dist (int i) const
bool submerged (int i, const Array &z) const
void flood (const Array &z_arr, const uint8_t *outlet, bool fast, bool seed_borders=true)
void receivers (float p, uint32_t seed)
void accumulate (const Array &z_arr, const Array *p_rain, float talus_cell)

Public Attributes

int nx = 0
int ny = 0
int n = 0
Array zf
std::vector< int > order
std::vector< int > rank
std::vector< int > rcv
std::vector< uint8_t > flag
Array area
Array steep
std::vector< int > lake
std::vector< int > lake_outlet
std::vector< int > lake_root
std::vector< float > lake_volume
std::vector< float > lake_sediment
std::vector< float > lake_target
std::vector< float > lake_lo
std::vector< float > lake_hi
std::vector< float > lake_level
std::vector< double > lake_acc
std::vector< int > pitq
int pit_cells = 0
RadixHeap< int > heap
std::vector< int > bhead
std::vector< int > bnext

Member Function Documentation

◆ resize()

void hmap::FlowGraph::resize ( int nx_,
int ny_ )

◆ dist()

float hmap::FlowGraph::dist ( int i) const

◆ submerged()

bool hmap::FlowGraph::submerged ( int i,
const Array & z ) const

◆ flood()

void hmap::FlowGraph::flood ( const Array & z_arr,
const uint8_t * outlet,
bool fast,
bool seed_borders = true )

◆ receivers()

void hmap::FlowGraph::receivers ( float p,
uint32_t seed )

◆ accumulate()

void hmap::FlowGraph::accumulate ( const Array & z_arr,
const Array * p_rain,
float talus_cell )

Member Data Documentation

◆ nx

int hmap::FlowGraph::nx = 0

◆ ny

int hmap::FlowGraph::ny = 0

◆ n

int hmap::FlowGraph::n = 0

◆ zf

Array hmap::FlowGraph::zf

◆ order

std::vector<int> hmap::FlowGraph::order

◆ rank

std::vector<int> hmap::FlowGraph::rank

◆ rcv

std::vector<int> hmap::FlowGraph::rcv

◆ flag

std::vector<uint8_t> hmap::FlowGraph::flag

◆ area

Array hmap::FlowGraph::area

◆ steep

Array hmap::FlowGraph::steep

◆ lake

std::vector<int> hmap::FlowGraph::lake

◆ lake_outlet

std::vector<int> hmap::FlowGraph::lake_outlet

◆ lake_root

std::vector<int> hmap::FlowGraph::lake_root

◆ lake_volume

std::vector<float> hmap::FlowGraph::lake_volume

◆ lake_sediment

std::vector<float> hmap::FlowGraph::lake_sediment

◆ lake_target

std::vector<float> hmap::FlowGraph::lake_target

◆ lake_lo

std::vector<float> hmap::FlowGraph::lake_lo

◆ lake_hi

std::vector<float> hmap::FlowGraph::lake_hi

◆ lake_level

std::vector<float> hmap::FlowGraph::lake_level

◆ lake_acc

std::vector<double> hmap::FlowGraph::lake_acc

◆ pitq

std::vector<int> hmap::FlowGraph::pitq

◆ pit_cells

int hmap::FlowGraph::pit_cells = 0

◆ heap

RadixHeap<int> hmap::FlowGraph::heap

◆ bhead

std::vector<int> hmap::FlowGraph::bhead

◆ bnext

std::vector<int> hmap::FlowGraph::bnext

The documentation for this struct was generated from the following files: