Subversion Repositories public iLand

Rev

Rev 639 | Rev 664 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 639 Rev 662
Line 191... Line 191...
191
    QList<ResourceUnitSpecies*>::const_iterator iend = mRUSpecies.constEnd();
191
    QList<ResourceUnitSpecies*>::const_iterator iend = mRUSpecies.constEnd();
192
    mStatistics.clear();
192
    mStatistics.clear();
193
    for (i=mRUSpecies.constBegin(); i!=iend; ++i) {
193
    for (i=mRUSpecies.constBegin(); i!=iend; ++i) {
194
        (*i)->statisticsDead().clear();
194
        (*i)->statisticsDead().clear();
195
        (*i)->statisticsMgmt().clear();
195
        (*i)->statisticsMgmt().clear();
-
 
196
        (*i)->changeSapling().newYear();
196
    }
197
    }
197
198
198
}
199
}
199
200
200
/** production() is the "stand-level" part of the biomass production (3PG).
201
/** production() is the "stand-level" part of the biomass production (3PG).
Line 357... Line 358...
357
/// clear all saplings of all species on a given position (after recruitment)
358
/// clear all saplings of all species on a given position (after recruitment)
358
void ResourceUnit::clearSaplings(const QPoint &position)
359
void ResourceUnit::clearSaplings(const QPoint &position)
359
{
360
{
360
    foreach(ResourceUnitSpecies* rus, mRUSpecies)
361
    foreach(ResourceUnitSpecies* rus, mRUSpecies)
361
        rus->clearSaplings(position);
362
        rus->clearSaplings(position);
-
 
363
-
 
364
}
-
 
365
-
 
366
/// kill all saplings within a given rect
-
 
367
void ResourceUnit::clearSaplings(const QRectF pixel_rect, const bool remove_from_soil)
-
 
368
{
-
 
369
    foreach(ResourceUnitSpecies* rus, mRUSpecies) {
-
 
370
        rus->changeSapling().clearSaplings(pixel_rect, remove_from_soil);
-
 
371
    }
362
372
363
}
373
}
364
374
365
float ResourceUnit::saplingHeightForInit(const QPoint &position) const
375
float ResourceUnit::saplingHeightForInit(const QPoint &position) const
366
{
376
{