#include <GLILight.h>
Public Member Functions | |
clGliLight (clSimManager *p_oSimManager) | |
Constructor. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Reads some extra parameters from the parameter file. | |
float | CalcLightValue (clTree *p_oTree, clTreePopulation *p_oPop) |
Calculates a GLI value. |
This calculates a GLI (global light index) for a tree. The namestring for this behavior is "glilightshell". The parameter file call string is "glilight".
The sky brightness array used by this behavior is potentially identical to that for quadrat-based GLI light - class name clQuadratGliLight, namestring "quadratglilightshell". Before committing to the calculation of a brightness array, this behavior will ask that behavior if it's already done it and this behavior can just copy.
Copyright 2003 Charles D. Canham.
clGliLight::clGliLight | ( | clSimManager * | p_oSimManager | ) |
Constructor.
The constructor will set the namestring.
void clGliLight::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Reads some extra parameters from the parameter file.
Number of azimuth angles and number of altitude angles are required to be present in the "glilight" tag.
p_oDoc | DOM tree of parsed parameter file. |
Reimplemented from clLightBase.
float clGliLight::CalcLightValue | ( | clTree * | p_oTree, | |
clTreePopulation * | p_oPop | |||
) | [virtual] |
Calculates a GLI value.
p_oTree | Tree for which to calculate GLI. | |
p_oPop | Pointer to the tree population object. |
Implements clLightBase.