30 Q_PROPERTY(
int id READ
id)
31 Q_PROPERTY(
int x READ
x)
32 Q_PROPERTY(
int y READ
y)
38 explicit FireScript(QObject *parent =
nullptr);
61 QJSValue
onIgnition()
const {
return mExternalIgnitions; }
73 double ignite(
double x,
double y,
double firesize=-1,
double windspeed=-1,
double winddirection=-1);
74 double igniteBurnIn(
double x,
double y,
double length,
double max_fire_size,
bool simulate=
false);
75 bool gridToFile(QString grid_type, QString file_name);
77 QJSValue
grid(QString type);
95 QJSValue mOnIgnitionRU;
96 QJSValue mCalcFireSize;
97 QJSValue mExternalIgnitions;
FireModule is the main class of the fire sub module.
Definition: firemodule.h:141
FireRUData contains data items for resource units.
Definition: firemodule.h:40
FireScript is the scripting shell for the fire module.
Definition: firescript.h:28
QJSValue onIgnitionRU
Definition: firescript.h:33
static QString fireRUValueType
Definition: firescript.h:43
void setOnCalculateFireSize(QJSValue onCalculateFireSize)
Definition: firescript.h:85
int id
Definition: firescript.h:30
QJSValue onIgnition() const
Definition: firescript.h:61
bool hasCalculateFireSizeHandler()
Definition: firescript.h:55
double calcDyanmicManagementEffect(FireRUData *data)
Definition: firescript.cpp:125
QJSValue onCalculateFireSize
Definition: firescript.h:34
double calculateFireSize(const FireRUData *data, double distribution_value)
Definition: firescript.cpp:135
void setOnIgnition(QJSValue handler)
Definition: firescript.h:62
double igniteBurnIn(double x, double y, double length, double max_fire_size, bool simulate=false)
Definition: firescript.cpp:54
QJSValue grid(QString type)
returns a ScriptGrid with the requested type
Definition: firescript.cpp:101
int x
Definition: firescript.h:31
void setOnIgnitionRU(QJSValue onIgnitionRU)
Definition: firescript.h:80
void setFireModule(FireModule *module)
Definition: firescript.h:39
FireScript(QObject *parent=nullptr)
Definition: firescript.cpp:28
QJSValue onCalculateFireSize() const
Definition: firescript.h:57
double ignite(double x, double y, double firesize=-1, double windspeed=-1, double winddirection=-1)
Ignite a fire event with pre-defined properties, i.e.
Definition: firescript.cpp:34
bool gridToFile(QString grid_type, QString file_name)
create a "ESRI-grid" text file 'grid_type' is one of a fixed list of names, 'file_name' the ouptut fi...
Definition: firescript.cpp:74
QJSValue onIgnition
Definition: firescript.h:35
int y
Definition: firescript.h:32
bool hasIgnitionRUHandler()
Definition: firescript.h:50
QJSValue onIgnitionRU() const
Definition: firescript.h:46