Rev 141 | Rev 144 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 141 | Rev 143 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | void setDbh(const float dbh) { mDbh=dbh; } |
24 | void setDbh(const float dbh) { mDbh=dbh; } |
25 | const float dbh() const { return mDbh; } |
25 | const float dbh() const { return mDbh; } |
26 | void setHeight(const float height) { mHeight=height; } |
26 | void setHeight(const float height) { mHeight=height; } |
27 | const float height() const { return mHeight; } |
27 | const float height() const { return mHeight; } |
28 | const float lightRessourceIndex() const { return mLRI; } |
28 | const float lightRessourceIndex() const { return mLRI; } |
29 | const Species* species() const { return mSpecies; } |
- | |
- | 29 | const Species* species() const { Q_ASSERT(mRU!=0); return mSpecies; } |
|
30 | void setSpecies(Species *ts) { mSpecies=ts; } |
30 | void setSpecies(Species *ts) { mSpecies=ts; } |
31 | const RessourceUnit *ru() const { return mRU; } |
- | |
- | 31 | const RessourceUnit *ru() const { Q_ASSERT(mRU!=0); return mRU; } |
|
32 | void setRU(RessourceUnit *ru) { mRU = ru; } |
32 | void setRU(RessourceUnit *ru) { mRU = ru; } |
33 | const double volume() const; ///< volume (m3) of stem volume based on geometry and density calculated on the fly. |
33 | const double volume() const; ///< volume (m3) of stem volume based on geometry and density calculated on the fly. |
34 | 34 | ||
35 | // actions
|
35 | // actions
|
36 | void enableDebugging(const bool enable=true) { mDebugging = enable; } |
36 | void enableDebugging(const bool enable=true) { mDebugging = enable; } |