Contains distances to each bank and river axis at a given coordinate in this HydroFlowTile. More...
Public Member Functions | |
DistCell () | |
Creates a DistCell. | |
DistCell (vec3d coords) | |
Creates a DistCell. | |
Public Attributes | |
vector< int > | edges [MAX_BANK_NUMBER] |
Edges contained in this DistCell for each Curve. | |
vec3d | coords |
Coords of this Cell (x, y, size). | |
vec2d | center |
Center of this Cell. | |
box2d | bounds |
Real bounds of this Cell. | |
set< int > | bankIds |
The list of Curves in this Cell's area of search. | |
set< CurveId > | riverIds |
The list of rivers in this Cell's area of search. |
Contains distances to each bank and river axis at a given coordinate in this HydroFlowTile.
Also stores the closest edge for each Curve. Used to fasten distance computation -> We can directly get the closest edges for each bank and compute their distances to this cell, instead of computing distances to each edges at each frame. The DistCell table should be large enough to avoid over-simplification, and small enough to keep real-time tile creation.
proland::HydroFlowTile::DistCell::DistCell | ( | ) |
Creates a DistCell.
proland::HydroFlowTile::DistCell::DistCell | ( | vec3d | coords | ) |
Creates a DistCell.
coords | coords of this Cell (x, y, size). |
The list of Curves in this Cell's area of search.
We don't store distances for curves that are not in the search radius of this Cell, since they shouldn't be used for computing the flow in this area.
Real bounds of this Cell.
Can be larger than the actual size of the Cell, in order to include large rivers.
Center of this Cell.
Coords of this Cell (x, y, size).
vector<int> proland::HydroFlowTile::DistCell::edges[MAX_BANK_NUMBER] |
Edges contained in this DistCell for each Curve.
set<CurveId> proland::HydroFlowTile::DistCell::riverIds |
The list of rivers in this Cell's area of search.