17 QVector<QPair<SaplingTree*, SaplingCell*> > &
saplings() {
return mSaplings; }
18 int length() {
return mSaplings.length(); }
33 double sum(QString expression, QString
filter=QLatin1Literal(
""));
44 int browse(
bool do_browse=
true);
47 QVector<QPair<SaplingTree*, SaplingCell*> > mSaplings;
Definition: fmsaplinglist.h:12
int filter(QString filter)
apply a filter on the current list of saplings.
Definition: fmsaplinglist.cpp:48
int count
Definition: fmsaplinglist.h:14
double sum(QString expression, QString filter=QLatin1Literal(""))
return the sum of 'expression' over all saplings in the list if 'filter' is provided,...
Definition: fmsaplinglist.cpp:95
int loadFromRU(ResourceUnit *ru, bool append=false)
load all saplings from RU
Definition: fmsaplinglist.cpp:32
int length()
Definition: fmsaplinglist.h:18
FMSaplingList(QObject *parent=nullptr)
Definition: fmsaplinglist.cpp:8
int loadFromRect(ResourceUnit *ru, const QRectF &rect)
load saplings from a portion of a RU
Definition: fmsaplinglist.cpp:13
int kill(QString filter=QLatin1Literal(""))
kill all saplings in the list for which "filter" evaluates to true (or all if filter is omitted) retu...
Definition: fmsaplinglist.cpp:70
QVector< QPair< SaplingTree *, SaplingCell * > > & saplings()
Definition: fmsaplinglist.h:17
int browse(bool do_browse=true)
affect all saplings by browsing -> this reduces the height growth in the current year to 0
Definition: fmsaplinglist.cpp:87
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49