Subversion Repositories public iLand

Rev

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

Rev 848 Rev 914
Line 95... Line 95...
95
int Management::killAll()
95
int Management::killAll()
96
{
96
{
97
    int c = mTrees.count();
97
    int c = mTrees.count();
98
    for (int i=0;i<mTrees.count();i++)
98
    for (int i=0;i<mTrees.count();i++)
99
        mTrees[i].first->remove();
99
        mTrees[i].first->remove();
-
 
100
    mTrees.clear();
-
 
101
    return c;
-
 
102
}
-
 
103
-
 
104
int Management::disturbanceKill()
-
 
105
{
-
 
106
    int c = mTrees.count();
-
 
107
    for (int i=0;i<mTrees.count();i++)
-
 
108
        mTrees[i].first->removeDisturbance(0.1, 0.1, 0.1, 0.1, 1.);
100
    mTrees.clear();
109
    mTrees.clear();
101
    return c;
110
    return c;
102
}
111
}
103
112
104
int Management::kill(QString filter, double fraction)
113
int Management::kill(QString filter, double fraction)