The class DBHDistribution encapsulates a DBH distribution on the landscape level.
More...
#include <dbhdistribution.h>
|
| void | calculateFromLandscape () |
| | renew the full DBH distribution over the full landscape (by iterating over all trees) More...
|
| |
| void | calculate () |
| | calculate the total DBH distribution on the landscape (by summing up over stand wise DBH distributions) More...
|
| |
| void | addStand (const int standId) |
| | add/replace the DBH distribution for a stand denoted by standId. Use all trees of the stand. More...
|
| |
| void | saveToTextFile (QString filename) |
| |
| void | saveStandInfo (QString filename) |
| |
The class DBHDistribution encapsulates a DBH distribution on the landscape level.
It provides functions to add/remove parts of the landscape (e.g., stands or resource units).
◆ DBHDistribution()
| DBHDistribution::DBHDistribution |
( |
QObject * |
parent = 0 | ) |
|
◆ ~DBHDistribution()
| DBHDistribution::~DBHDistribution |
( |
| ) |
|
◆ addResourceUnit()
| void DBHDistribution::addResourceUnit |
( |
const ResourceUnit * |
ru | ) |
|
add the trees of the resource unit ru.
◆ addStand [1/2]
| void DBHDistribution::addStand |
( |
const int |
standId | ) |
|
|
slot |
add/replace the DBH distribution for a stand denoted by standId. Use all trees of the stand.
◆ addStand() [2/2]
| void DBHDistribution::addStand |
( |
const int |
standId, |
|
|
const double |
area, |
|
|
QVector< Tree * > & |
tree_list |
|
) |
| |
add/replace the DBH distribution for a stand denoted by standId.
Use the trees in tree_list.
◆ calculate
| void DBHDistribution::calculate |
( |
| ) |
|
|
slot |
calculate the total DBH distribution on the landscape (by summing up over stand wise DBH distributions)
◆ calculateFromLandscape
| void DBHDistribution::calculateFromLandscape |
( |
| ) |
|
|
slot |
renew the full DBH distribution over the full landscape (by iterating over all trees)
◆ classIndex()
| int DBHDistribution::classIndex |
( |
const float |
dbh | ) |
const |
|
inline |
return the index of the class where dbh falls into (0..nClasses()-1)
◆ classLabel()
| QString DBHDistribution::classLabel |
( |
const int |
class_index | ) |
|
return the label of the class class_index.
The label caption is human readable and valid for database column names (eg. includes no spaces)
◆ dbhClass() [1/2]
| double DBHDistribution::dbhClass |
( |
const QString & |
speciesId, |
|
|
const float |
dbh |
|
) |
| const |
get trees/ha of species speciesID in class in which dbh falls into
◆ dbhClass() [2/2]
| double DBHDistribution::dbhClass |
( |
const QString & |
speciesId, |
|
|
const int |
class_index |
|
) |
| const |
get trees/ha of species speciesID in class classIndex(0..nClasses()-1)
◆ nClasses()
| int DBHDistribution::nClasses |
( |
| ) |
const |
|
inline |
return the number of DBH classes
◆ saveStandInfo
| void DBHDistribution::saveStandInfo |
( |
QString |
filename | ) |
|
|
slot |
◆ saveToTextFile
| void DBHDistribution::saveToTextFile |
( |
QString |
filename | ) |
|
|
slot |
◆ setTotalArea()
| void DBHDistribution::setTotalArea |
( |
const double |
total_area_ha | ) |
|
|
inline |
◆ totalArea()
| double DBHDistribution::totalArea |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: