00001 //--------------------------------------------------------------------------- 00002 // GapLight 00003 //--------------------------------------------------------------------------- 00004 #if !defined(GapLight_H) 00005 #define GapLight_H 00006 00007 #include "LightBase.h" 00008 00009 class clSimManager; 00010 class clGridBase; 00011 class clTreePopulation; 00012 00037 class clGapLight : public clLightBase { 00038 00039 public: 00040 00046 clGapLight(clSimManager *p_oSimManager); 00047 00048 //~clGapLight(); //use default destructor 00049 00057 void DoShellSetup(xercesc::DOMDocument *p_oDoc); 00058 00068 float CalcLightValue(clTree *p_oTree, clTreePopulation *p_oPop); 00069 00073 void TimestepCleanup() {m_bCalcedGaps = false;}; 00074 00075 protected: 00076 00083 void CalculateGapStatus(clTreePopulation *p_oPop); 00084 00092 clGridBase *mp_oGapGrid; 00093 00094 short int m_iGapCode; 00097 bool m_bCalcedGaps; 00099 }; 00100 //--------------------------------------------------------------------------- 00101 #endif // GapLight_H