39 void setup(QJSValue value);
43 struct SCustomThinning {
50 QString targetVariable;
51 QVector<double> classValues;
52 QVector<int> classPercentiles;
54 QJSValue remainingStems;
56 struct SSelectiveThinning {
60 SSelectiveThinning mSelectiveThinning;
62 QVector<SCustomThinning> mCustomThinnings;
64 void setupCustom(QJSValue value);
66 void setupSelective(QJSValue value);
69 void setupSingleCustom(QJSValue value, SCustomThinning &custom);
70 bool evaluateCustom(
FMStand *stand, SCustomThinning &custom);
71 int selectRandomTree(FMTreeList *list,
const int pct_min,
const int pct_max,
const bool selective);
72 int selectSelectiveSpecies(FMTreeList *list,
const bool is_selective,
const int index);
73 void clearTreeMarks(FMTreeList *list);
74 QHash<const Species*, double> mSpeciesSelectivity;
77 bool evaluateSelective(
FMStand *stand);
78 bool markCropTrees(
FMStand* stand);
79 float testPixel(
const QPointF &pos,
Grid<float> &grid);
80 void setPixel(
const QPointF &pos,
Grid<float> &grid);
84 static QStringList mSyntaxCustom;
85 static QStringList mSyntaxSelective;
The ActThinning class implements a very general interface to thinning activties.
Definition: actthinning.h:34
ActThinning(FMSTP *parent)
Definition: actthinning.cpp:46
bool evaluate(FMStand *stand)
executes the evaluation of the forest stand.
Definition: actthinning.cpp:93
ThinningType
Definition: actthinning.h:37
@ FromBelow
Definition: actthinning.h:37
@ FromAbove
Definition: actthinning.h:37
@ Invalid
Definition: actthinning.h:37
@ Custom
Definition: actthinning.h:37
@ Selection
Definition: actthinning.h:37
bool execute(FMStand *stand)
executes the action (usually defined in derived classes) using the context of 'stand'.
Definition: actthinning.cpp:109
void setup(QJSValue value)
setup of the activity (events, schedule, constraints). additional setup in derived classes.
Definition: actthinning.cpp:73
QString type() const
Definition: actthinning.cpp:59
Activity is the base class for management activities.
Definition: activity.h:162
friend class FMStand
Definition: activity.h:218
int index() const
index of the activity within the STP
Definition: activity.h:175
The FMSTP class encapsulates a stand treatment program, which is defined in Javascript.
Definition: fmstp.h:39
FMStand encapsulates a forest stand for the forest management engine.
Definition: fmstand.h:49
The behavior and general properties of tree species.
Definition: species.h:75