The ScriptObjectFactory can instantiate objects of other C++ (QObject-based) types.
More...
#include <scriptglobal.h>
The ScriptObjectFactory can instantiate objects of other C++ (QObject-based) types.
This factory approach is used because the V8 (QJSEngine) does not work with the "new" way of creating objects.
◆ ScriptObjectFactory()
ScriptObjectFactory::ScriptObjectFactory |
( |
QObject * |
parent = nullptr | ) |
|
◆ newClimateConverter
QJSValue ScriptObjectFactory::newClimateConverter |
( |
| ) |
|
|
slot |
◆ newCSVFile
QJSValue ScriptObjectFactory::newCSVFile |
( |
QString |
filename | ) |
|
|
slot |
create a new instance of CSVFile and return it
◆ newDBHDistribution
QJSValue ScriptObjectFactory::newDBHDistribution |
( |
| ) |
|
|
slot |
◆ newGrid
QJSValue ScriptObjectFactory::newGrid |
( |
| ) |
|
|
slot |
creates a new grid object and return it
◆ newMap
QJSValue ScriptObjectFactory::newMap |
( |
| ) |
|
|
slot |
create new instance of Map and return it
◆ newSpatialAnalysis
QJSValue ScriptObjectFactory::newSpatialAnalysis |
( |
| ) |
|
|
slot |
◆ stats
int ScriptObjectFactory::stats |
( |
| ) |
|
|
inlineslot |
return the number of created objects
The documentation for this class was generated from the following files: