iLand
Public Slots | Public Member Functions | Properties | List of all members
ABE::FMSaplingList Class Reference

#include <fmsaplinglist.h>

Inheritance diagram for ABE::FMSaplingList:

Public Slots

double sum (QString expression, QString filter=QLatin1Literal(""))
 return the sum of 'expression' over all saplings in the list if 'filter' is provided, only trees are counted for which 'filter' evaluates to true. More...
 
int filter (QString filter)
 apply a filter on the current list of saplings. More...
 
int kill (QString filter=QLatin1Literal(""))
 kill all saplings in the list for which "filter" evaluates to true (or all if filter is omitted) return the number of killed cohorts More...
 
int browse (bool do_browse=true)
 affect all saplings by browsing -> this reduces the height growth in the current year to 0 More...
 

Public Member Functions

 FMSaplingList (QObject *parent=nullptr)
 
QVector< QPair< SaplingTree *, SaplingCell * > > & saplings ()
 
int length ()
 
int loadFromRect (ResourceUnit *ru, const QRectF &rect)
 load saplings from a portion of a RU More...
 
int loadFromRU (ResourceUnit *ru, bool append=false)
 load all saplings from RU More...
 

Properties

int count
 

Constructor & Destructor Documentation

◆ FMSaplingList()

ABE::FMSaplingList::FMSaplingList ( QObject *  parent = nullptr)
explicit

Member Function Documentation

◆ browse

int ABE::FMSaplingList::browse ( bool  do_browse = true)
slot

affect all saplings by browsing -> this reduces the height growth in the current year to 0

◆ filter

int ABE::FMSaplingList::filter ( QString  filter)
slot

apply a filter on the current list of saplings.

Only saplings for which 'filter' returns true remain in the list. returns the number of sapplings that remain in the list.

◆ kill

int ABE::FMSaplingList::kill ( QString  filter = QLatin1Literal(""))
slot

kill all saplings in the list for which "filter" evaluates to true (or all if filter is omitted) return the number of killed cohorts

◆ length()

int ABE::FMSaplingList::length ( )
inline

◆ loadFromRect()

int ABE::FMSaplingList::loadFromRect ( ResourceUnit ru,
const QRectF &  rect 
)

load saplings from a portion of a RU

◆ loadFromRU()

int ABE::FMSaplingList::loadFromRU ( ResourceUnit ru,
bool  append = false 
)

load all saplings from RU

◆ saplings()

QVector< QPair< SaplingTree *, SaplingCell * > > & ABE::FMSaplingList::saplings ( )
inline

◆ sum

double ABE::FMSaplingList::sum ( QString  expression,
QString  filter = QLatin1Literal("") 
)
slot

return the sum of 'expression' over all saplings in the list if 'filter' is provided, only trees are counted for which 'filter' evaluates to true.

Property Documentation

◆ count

int ABE::FMSaplingList::count
read

The documentation for this class was generated from the following files: