iLand
|
virtual room to do some light-experiments. More...
#include <lightroom.h>
Public Member Functions | |
LightRoom () | |
~LightRoom () | |
void | setup (const double dimx, const double dimy, const double dimz, const double cellsize, const double hemigridsize, const double latitude=48., const double diffus_frac=0.5) |
setup the spatial grid. More... | |
void | setLightRoomObject (LightRoomObject *lro) |
void | setAggregationMode (const int mode) |
double | calculateGridAtPoint (const double p_x, const double p_y, const double p_z, bool fillShadowGrid=true) |
calculate a full hemiview image from given point More... | |
void | calculateFullGrid () |
calculate a hemigrid for each node of the grid (store results in m_3dvalues). More... | |
const HemiGrid & | shadowGrid () const |
access to the hemigrid More... | |
const HemiGrid & | solarGrid () const |
const FloatGrid & | result () const |
double | centerValue () const |
virtual room to do some light-experiments.
The basic use of this class is to derive the size/pattern of the light-influence FON for a single tree. It uses SolarRadiation for the calculation of global radiation and HemiGrid to calculate and store the results. This calculation is done for each node of a 3D space and afterwards accumulated into a 2D pattern.
LightRoom::LightRoom | ( | ) |
|
inline |
void LightRoom::calculateFullGrid | ( | ) |
calculate a hemigrid for each node of the grid (store results in m_3dvalues).
double LightRoom::calculateGridAtPoint | ( | const double | p_x, |
const double | p_y, | ||
const double | p_z, | ||
bool | fillShadowGrid = true |
||
) |
calculate a full hemiview image from given point
|
inline |
|
inline |
|
inline |
|
inline |
void LightRoom::setup | ( | const double | dimx, |
const double | dimy, | ||
const double | dimz, | ||
const double | cellsize, | ||
const double | hemigridsize, | ||
const double | latitude = 48. , |
||
const double | diffus_frac = 0.5 |
||
) |
setup the spatial grid.
setup routine.
sets up datastructures (3d space, hemi grids)
dimx | size of space in x direction [m] |
dimy | size of space in y direction [m] |
dimz | size of space in z direction [m] |
cellsize | metric length of cells (used for all 3 dimensions). |
hemigridsize | size of hemigrid-cells (in degrees). |
latitude | lat. in degrees. |
diffus_frac | fraction [0..1] of diffus radiation of global radiation. |
|
inline |
access to the hemigrid
|
inline |