Rev 106 | Rev 110 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 106 | Rev 107 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | void setup(); |
34 | void setup(); |
35 | 35 | ||
36 | void enableDebugging() { mDebugid = mId; } |
36 | void enableDebugging() { mDebugid = mId; } |
37 | 37 | ||
38 | 38 | ||
39 | // grid based stamp functions
|
- | |
40 | static void setGrid(FloatGrid* gridToStamp, FloatGrid *dominanceGrid) { mGrid = gridToStamp; mHeightGrid = dominanceGrid; } |
- | |
41 | void applyStamp(); |
- | |
- | 39 | // grid based light-concurrency functions
|
|
- | 40 | void applyStamp(); ///< apply LightInfluencePattern onto the global grid |
|
42 | double readStamp(); |
41 | double readStamp(); |
43 | double readStampMul(); |
- | |
44 | void heightGrid(); |
- | |
- | 42 | void readStampMul(); ///< calculate the lightRessourceIndex |
|
- | 43 | void heightGrid(); ///< calculate the height grid |
|
45 | 44 | ||
- | 45 | // growth, etc.
|
|
- | 46 | void grow(); |
|
- | 47 | ||
- | 48 | // static functions
|
|
- | 49 | static void setGrid(FloatGrid* gridToStamp, FloatGrid *dominanceGrid) { mGrid = gridToStamp; mHeightGrid = dominanceGrid; } |
|
46 | // statistics
|
50 | // statistics
|
47 | static void resetStatistics(); |
51 | static void resetStatistics(); |
48 | static const int statPrints() { return m_statPrint; } |
52 | static const int statPrints() { return m_statPrint; } |
49 | static const int statCreated() { return m_statCreated; } |
53 | static const int statCreated() { return m_statCreated; } |
50 | 54 | ||
51 | static float lafactor; |
55 | static float lafactor; |
52 | 56 | ||
53 | private: |
57 | private: |
54 | bool isDebugging() { return mId == mDebugid; } |
- | |
- | 58 | // state variables
|
|
55 | int mId; |
59 | int mId; |
56 | float mDbh; |
60 | float mDbh; |
57 | float mHeight; |
61 | float mHeight; |
58 | QPointF mPosition;
|
62 | QPointF mPosition;
|
59 | //float mOwnImpact;
|
- | |
60 | //float mImpactArea;
|
- | |
61 | //float mImpactRadius;
|
- | |
62 | float mLRI; |
- | |
63 | // Stamp
|
- | |
- | 63 | // biomass compartements
|
|
- | 64 | float mLeafArea; // m2 |
|
- | 65 | ||
- | 66 | float mLeafMass; // kg |
|
- | 67 | float mStemMass; // kg |
|
- | 68 | float mRootMass; // kg |
|
- | 69 | ||
- | 70 | ||
- | 71 | float mLRI; // resulting lightRessourceIndex |
|
- | 72 | // Stamp, Species, Ressource Unit
|
|
64 | const Stamp *mStamp; |
73 | const Stamp *mStamp; |
65 | Species *mSpecies; |
74 | Species *mSpecies; |
66 | RessourceUnit *mRU; |
75 | RessourceUnit *mRU; |
- | 76 | ||
- | 77 | bool isDebugging() { return mId == mDebugid; } |
|
- | 78 | // static data
|
|
67 | static FloatGrid *mGrid; |
79 | static FloatGrid *mGrid; |
68 | static FloatGrid *mHeightGrid; |
80 | static FloatGrid *mHeightGrid; |
69 | // debugging
|
81 | // debugging
|
70 | static int mDebugid; |
82 | static int mDebugid; |
71 | 83 |