Rev 278 | Rev 381 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 278 | Rev 287 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | 42 | ||
43 | // setters for initialization
|
43 | // setters for initialization
|
44 | void setNewId() { mId = m_nextId++; } ///< force a new id for this object (after copying trees) |
44 | void setNewId() { mId = m_nextId++; } ///< force a new id for this object (after copying trees) |
45 | void setId(const int id) { mId = id; } ///< set a spcific ID (if provided in stand init file). |
45 | void setId(const int id) { mId = id; } ///< set a spcific ID (if provided in stand init file). |
46 | void setPosition(const QPointF pos) { Q_ASSERT(mGrid!=0); mPositionIndex = mGrid->indexAt(pos); } |
46 | void setPosition(const QPointF pos) { Q_ASSERT(mGrid!=0); mPositionIndex = mGrid->indexAt(pos); } |
- | 47 | void setPosition(const QPoint posIndex) { mPositionIndex = posIndex; } |
|
47 | void setDbh(const float dbh) { mDbh=dbh; } |
48 | void setDbh(const float dbh) { mDbh=dbh; } |
48 | void setHeight(const float height) { mHeight=height; } |
49 | void setHeight(const float height) { mHeight=height; } |
49 | void setSpecies(Species *ts) { mSpecies=ts; } |
50 | void setSpecies(Species *ts) { mSpecies=ts; } |
50 | void setRU(ResourceUnit *ru) { mRU = ru; } |
51 | void setRU(ResourceUnit *ru) { mRU = ru; } |
51 | void setAge(const int age) { mAge = age; } |
52 | void setAge(const int age) { mAge = age; } |