proland::HydroFlowTile::DistCell Struct Reference

Contains distances to each bank and river axis at a given coordinate in this HydroFlowTile. More...

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

proland::HydroFlowTile::DistCell::DistCell (  ) 

Creates a DistCell.

proland::HydroFlowTile::DistCell::DistCell ( vec3d  coords  ) 

Creates a DistCell.

Parameters:
coords coords of this Cell (x, y, size).

Member Data Documentation

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.

The list of rivers in this Cell's area of search.


Generated on Sat May 12 09:42:59 2012 for proland by  doxygen 1.6.1