Represents a map of intensities that cells have burned at for a single Scenario.
More...
#include <IntensityMap.h>
|
| IntensityMap (const Model &model) noexcept |
| Constructor.
|
|
| IntensityMap (const IntensityMap &rhs) |
|
| IntensityMap (IntensityMap &&rhs)=delete |
|
IntensityMap & | operator= (const IntensityMap &rhs)=delete |
|
IntensityMap & | operator= (IntensityMap &&rhs) noexcept=delete |
|
Idx | rows () const |
| Number of rows in this extent.
|
|
Idx | columns () const |
| Number of columns in this extent.
|
|
void | applyPerimeter (const topo::Perimeter &perimeter) noexcept |
| Set cells in the map to be burned based on Perimeter.
|
|
bool | canBurn (const Location &location) const |
| Whether or not the Cell with the given hash can burn.
|
|
template<class P > |
bool | canBurn (const Position< P > &position) const |
|
bool | hasBurned (const Location &location) const |
| Whether or not the Location with the given hash can burn.
|
|
template<class P > |
bool | hasBurned (const Position< P > &position) const |
|
bool | isSurrounded (const Location &location) const |
| Whether or not all Locations surrounding the given Location are burned.
|
|
template<class P > |
bool | isSurrounded (const Position< P > &position) const |
|
void | ignite (const Location &location) |
| Mark given location as burned.
|
|
template<class P > |
void | ignite (const Position< P > &position) |
|
void | burn (const Location &location, IntensitySize intensity, MathSize ros, fs::wx::Direction raz) |
| Update Location with specified values.
|
|
template<class P > |
void | burn (const Position< P > &position, const IntensitySize intensity, const MathSize ros, const fs::wx::Direction &raz) |
|
void | save (const string &dir, const string &base_name) const |
| Save contents to an ASCII file.
|
|
MathSize | fireSize () const |
| Size of the fire represented by this.
|
|
map< Location, IntensitySize >::const_iterator | cbegin () const noexcept |
| Iterator for underlying GridMap.
|
|
map< Location, IntensitySize >::const_iterator | cend () const noexcept |
| Iterator for underlying GridMap.
|
|
|
mutex | mutex_ {} |
| Mutex for parallel access.
|
|
const Model & | model_ |
| Model map is for.
|
|
unique_ptr< data::GridMap< IntensitySize > > | intensity_max_ |
| Map of intensity that cells have burned at.
|
|
unique_ptr< data::GridMap< MathSize > > | rate_of_spread_at_max_ |
| Map of rate of spread/direction that cells have burned with at max ros.
|
|
unique_ptr< data::GridMap< DegreesSize > > | direction_of_spread_at_max_ |
|
BurnedData * | is_burned_ |
| bitset denoting cells that can no longer burn
|
|
Represents a map of intensities that cells have burned at for a single Scenario.
◆ IntensityMap()
fs::sim::IntensityMap::IntensityMap |
( |
const Model & | model | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
model | Model to use extent from |
◆ applyPerimeter()
void fs::sim::IntensityMap::applyPerimeter |
( |
const topo::Perimeter & | perimeter | ) |
|
|
noexcept |
Set cells in the map to be burned based on Perimeter.
- Parameters
-
perimeter | Perimeter to burn cells based on |
◆ burn()
Update Location with specified values.
- Parameters
-
location | Location to burn |
intensity | Intensity to burn with (kW/m) |
ros | Rate of spread to check against maximu (m/min) |
raz | Spread azimuth for ros |
◆ canBurn()
bool fs::sim::IntensityMap::canBurn |
( |
const Location & | location | ) |
const |
|
nodiscard |
Whether or not the Cell with the given hash can burn.
- Parameters
-
hash | Hash for Cell to check |
- Returns
- Whether or not the Cell with the given hash can burn
◆ cbegin()
map< Location, IntensitySize >::const_iterator fs::sim::IntensityMap::cbegin |
( |
| ) |
const |
|
nodiscardnoexcept |
Iterator for underlying GridMap.
- Returns
- Iterator for underlying GridMap
◆ cend()
map< Location, IntensitySize >::const_iterator fs::sim::IntensityMap::cend |
( |
| ) |
const |
|
nodiscardnoexcept |
Iterator for underlying GridMap.
- Returns
- Iterator for underlying GridMap
◆ columns()
Idx fs::sim::IntensityMap::columns |
( |
| ) |
const |
|
inlinenodiscard |
Number of columns in this extent.
- Returns
- Number of columns in this extent
◆ fireSize()
MathSize fs::sim::IntensityMap::fireSize |
( |
| ) |
const |
|
nodiscard |
Size of the fire represented by this.
- Returns
- Size of the fire represented by this
◆ hasBurned()
bool fs::sim::IntensityMap::hasBurned |
( |
const Location & | location | ) |
const |
|
nodiscard |
Whether or not the Location with the given hash can burn.
- Parameters
-
hash | Hash for Location to check |
- Returns
- Whether or not the Location with the given hash can burn
◆ ignite()
void fs::sim::IntensityMap::ignite |
( |
const Location & | location | ) |
|
Mark given location as burned.
- Parameters
-
◆ isSurrounded()
bool fs::sim::IntensityMap::isSurrounded |
( |
const Location & | location | ) |
const |
|
nodiscard |
Whether or not all Locations surrounding the given Location are burned.
- Parameters
-
location | Location to check |
- Returns
- Whether or not all Locations surrounding the given Location are burned
◆ rows()
Idx fs::sim::IntensityMap::rows |
( |
| ) |
const |
|
inlinenodiscard |
Number of rows in this extent.
- Returns
- Number of rows in this extent
◆ save()
void fs::sim::IntensityMap::save |
( |
const string & | dir, |
|
|
const string & | base_name ) const |
Save contents to an ASCII file.
- Parameters
-
dir | Directory to save to |
base_name | Base file name to save to |
The documentation for this class was generated from the following files: