Rev 779 | Rev 863 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 779 | Rev 824 | ||
---|---|---|---|
Line 97... | Line 97... | ||
97 | void createStandStatistics(); ///< helping function to create an initial state for stand statistics |
97 | void createStandStatistics(); ///< helping function to create an initial state for stand statistics |
98 | void recreateStandStatistics(); ///< re-build stand statistics after some change happened to the resource unit |
98 | void recreateStandStatistics(); ///< re-build stand statistics after some change happened to the resource unit |
99 | void setStockableArea(const double area) { mStockableArea = area; } ///< set stockable area (m2) |
99 | void setStockableArea(const double area) { mStockableArea = area; } ///< set stockable area (m2) |
100 | // sapling growth: the height map is per resource unit and holds the maximum height of saplings for each LIF-pixel and all species
|
100 | // sapling growth: the height map is per resource unit and holds the maximum height of saplings for each LIF-pixel and all species
|
101 | // the map itself is a local variable and only filled temporarily.
|
101 | // the map itself is a local variable and only filled temporarily.
|
102 | void setSaplingHeightMap(float *map_pointer) { mSaplingHeightMap=map_pointer; } ///< set (temporal) storage for sapling-height-map |
- | |
- | 102 | void setSaplingHeightMap(float *map_pointer); ///< set (temporal) storage for sapling-height-map |
|
103 | /// returns maximum sapling height at point given by point-index (LIF-index).
|
103 | /// returns maximum sapling height at point given by point-index (LIF-index).
|
104 | /// you must call setSaplingHeightMap() with a valid map before.
|
104 | /// you must call setSaplingHeightMap() with a valid map before.
|
105 | float saplingHeightAt(const QPoint &position) const { Q_ASSERT(mSaplingHeightMap); int pixel_index = cPxPerRU*(position.x()-mCornerCoord.x())+(position.y()-mCornerCoord.y()); return mSaplingHeightMap[pixel_index];} |
105 | float saplingHeightAt(const QPoint &position) const { Q_ASSERT(mSaplingHeightMap); int pixel_index = cPxPerRU*(position.x()-mCornerCoord.x())+(position.y()-mCornerCoord.y()); return mSaplingHeightMap[pixel_index];} |
106 | /// return maximum sapling height at point 'position' (LIF-index). This call is slower but works witout a prior call
|
106 | /// return maximum sapling height at point 'position' (LIF-index). This call is slower but works witout a prior call
|
107 | /// to setSaplingHeightMap().
|
107 | /// to setSaplingHeightMap().
|