Rev 1221 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/**
The `Factory` is a helper object for the creation of other iLand script objects such as
a {{#crossLink "Map"}}{{/crossLink}}.
Technically, the `Factory`can instantiate objects of other C++ (QObject-based) types.
This factory approach is used because the V8 (QJSEngine) has limitations with regard to the `new` operator of Javascript.
@module iLand
@class Factory
*/
Factory = {
/**
Create an instance of a {{#crossLink "CSVFile"}}{{/crossLink}}, a convenience class for reading and processing
tabular data.
@method newCSVFile
@param {string} file_name The file to load with
@return {object} A Javascript {{#crossLink "CSVFile"}}{{/crossLink}} object
*/
/**
Create an instance of a {{#crossLink "Map"}}{{/crossLink}}, a wrapper for a GIS raster file.
@method newMap
@return {object} A Javascript {{#crossLink "Map"}}{{/crossLink}} object
*/
/**
Create an instance of a ClimateConverter (see http://iland.boku.ac.at/Object+ClimateConverter).
@method newClimateConverter
@return {object} A Javascript ClimateConverter object
*/
}