Subversion Repositories public iLand

Rev

Rev 568 | Rev 575 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 568 Rev 569
Line 16... Line 16...
16
    mInfile = 0;
16
    mInfile = 0;
17
    mGrid = 0;
17
    mGrid = 0;
18
    mGridMode = false;
18
    mGridMode = false;
19
    mCurrentSpeciesSet = 0;
19
    mCurrentSpeciesSet = 0;
20
    mCurrentClimate = 0;
20
    mCurrentClimate = 0;
-
 
21
    mCurrentID = 0;
21
}
22
}
22
Environment::~Environment()
23
Environment::~Environment()
23
{
24
{
24
    if (mInfile) {
25
    if (mInfile) {
25
        delete mInfile;
26
        delete mInfile;
Line 159... Line 160...
159
    QString key;
160
    QString key;
160
    int ix=-1, iy=-1, id=-1;
161
    int ix=-1, iy=-1, id=-1;
161
    if (mGridMode) {
162
    if (mGridMode) {
162
        // grid mode
163
        // grid mode
163
        id = mGrid->value(position);
164
        id = mGrid->value(position);
-
 
165
        mCurrentID = id;
164
        key = QString::number(id);
166
        key = QString::number(id);
165
        if (id==-1)
167
        if (id==-1)
166
            return; // no data for the resource unit
168
            return; // no data for the resource unit
167
    } else {
169
    } else {
168
        // access data in the matrix by resource unit indices
170
        // access data in the matrix by resource unit indices