#include <omgmodellerlocalplugin.h>
Inheritance diagram for OmgModellerLocalPlugin:
Public Member Functions | |
OmgModellerLocalPlugin (QObject *parent=0) | |
~OmgModellerLocalPlugin () | |
QString | createModel (OmgModel *theModel) |
void | projectModel (OmgModel *theModel) |
const QStringList | getAlgorithmList () |
const OmgAlgorithmSet | getAlgorithmSet () |
const OmgAlgorithm | getAlgorithm (QString theAlgorithmId) |
void | setCreationProgress (int theProgress) |
void | setProjectionProgress (int theProgress) |
const QString | getLayers (QString theBaseDir) |
const QString | getName () |
Private Slots | |
void | appendToLog (QString theGuid, QString theMessage) |
Private Member Functions | |
Q_INTERFACES (OmgModellerPluginInterface) | |
bool | initialise () |
void | setMapProgress (int theProgress) |
void | setModelProgress (int theProgress) |
Private Attributes | |
OpenModeller * | mpOpenModeller |
OmgOmLogCallback * | mpLogCallBack |
QTextStream | mTextStream |
int | mModelProgress |
int | mMapProgress |
QString | mModelGuid |
QString | mModelLog |
Static Private Attributes | |
static bool | mAlgFactoryStartedFlag = false |
|
Definition at line 60 of file omgmodellerlocalplugin.cpp. References initialise(), and output. |
Here is the call graph for this function:
|
Definition at line 70 of file omgmodellerlocalplugin.cpp. References mpLogCallBack, and mpOpenModeller. |
|
Slot for recordng messages from the plugin messenger into a string that can then be appended to the model log.
Definition at line 390 of file omgmodellerlocalplugin.cpp. References mModelLog. Referenced by initialise(). |
|
Create an initial model definition
Implements OmgModellerPluginInterface. Definition at line 118 of file omgmodellerlocalplugin.cpp. References OmgPluginMessenger::emitModelCreationProgress(), OmgPluginMessenger::emitModelDone(), OmgPluginMessenger::emitModelError(), OmgPluginMessenger::emitModelMessage(), mModelGuid, mModelLog, mModelProgress, mpLogCallBack, mpOpenModeller, and OmgOmLogCallback::setModelGuid(). |
Here is the call graph for this function:
|
Get an algorithm given its id.
Definition at line 293 of file omgmodellerlocalplugin.cpp. References OmgAlgorithm::addParameter(), mpOpenModeller, OmgAlgorithm::setAbsence(), OmgAlgorithm::setAuthor(), OmgAlgorithm::setBibliography(), OmgAlgorithm::setCategorical(), OmgAlgorithm::setCodeAuthor(), OmgAlgorithm::setContact(), OmgAlgorithmParameter::setDefault(), OmgAlgorithmParameter::setDescription(), OmgAlgorithm::setDescription(), OmgGuid::setGuid(), OmgAlgorithmParameter::setId(), OmgAlgorithm::setId(), OmgAlgorithmParameter::setMaximum(), OmgAlgorithmParameter::setMinimum(), OmgAlgorithmParameter::setName(), OmgAlgorithm::setName(), OmgAlgorithm::setOrigin(), OmgAlgorithmParameter::setOverview(), OmgAlgorithm::setOverview(), OmgAlgorithmParameter::setType(), and OmgAlgorithm::setVersion(). Referenced by getAlgorithmSet(). |
Here is the call graph for this function:
|
Get a list of the algorithm names. Use getAlgorithmId with one of the returned names to find out an algs id
Implements OmgModellerPluginInterface. Definition at line 255 of file omgmodellerlocalplugin.cpp. References mpOpenModeller. Referenced by OmgModellerLocalPluginTest::getAlgorithms(). |
|
Get a collection of algorithm objects in the form of an AgorithmSet. The collection represents every algorithm that is available from the plugin implementing this interface
Implements OmgModellerPluginInterface. Definition at line 272 of file omgmodellerlocalplugin.cpp. References OmgAlgorithmSet::addAlgorithm(), getAlgorithm(), mpOpenModeller, OmgAlgorithmSet::setDescription(), and OmgAlgorithmSet::setName(). |
Here is the call graph for this function:
|
Get a list of layers by recursively searching a directory heirachy and testing if each file is a gdal loadable file or not. The actual implementation of how this is done is up to the plugin - remote services may have a preconfigured list of available layers that is simply returned without any filesystem scanning.
Implements OmgModellerPluginInterface. Definition at line 395 of file omgmodellerlocalplugin.cpp. References Omgui::getLayers(). Referenced by OmgModellerLocalPluginTest::getLayers(). |
Here is the call graph for this function:
|
Get the user friendly name for this plugin
Implements OmgModellerPluginInterface. Definition at line 140 of file omgmodellerlocalplugin.h. |
|
Private method called by any ctor on initial start up. It will go and find the algorithm list etc. Definition at line 79 of file omgmodellerlocalplugin.cpp. References appendToLog(), mAlgFactoryStartedFlag, mapCallback(), modelCallback(), mpLogCallBack, and mpOpenModeller. Referenced by OmgModellerLocalPlugin(). |
Here is the call graph for this function:
|
Project a model into a climate dataset. the model passed in as a parameter must have a valid model definition
Implements OmgModellerPluginInterface. Definition at line 171 of file omgmodellerlocalplugin.cpp. References OmgPluginMessenger::emitModelError(), OmgPluginMessenger::emitModelMessage(), OmgPluginMessenger::emitModelProjectionProgress(), Omgui::getOutputFormatExtension(), mModelGuid, mModelLog, mModelProgress, mpLogCallBack, mpOpenModeller, and OmgOmLogCallback::setModelGuid(). |
Here is the call graph for this function:
|
|
|
Mutator for creation progress variable Mainly intended to be used by callbacks. Will emit a modelCreationProgressUpdate signal if the new value differs from the old one.
Definition at line 371 of file omgmodellerlocalplugin.cpp. References OmgPluginMessenger::emitModelCreationProgress(), mModelGuid, and mModelProgress. Referenced by modelCallback(). |
|
This is used by the om callbacks to let us know of model creation progress changes
|
|
This is used by the om callbacks to let us know of map projection progress changes
|
|
Mutator for projection progress variable Mainly intended to be used by callbacks. Will emit a modelCreationProgressUpdate signal if the new value differs from the old one.
Definition at line 380 of file omgmodellerlocalplugin.cpp. References OmgPluginMessenger::emitModelProjectionProgress(), mMapProgress, mModelGuid, and mModelProgress. Referenced by mapCallback(). |
|
A flag to see whether the Om Aglorithm Factory has already been initialised. The factory should only be initialised once in the entire lifetime of you application. If you do it more than once you will get duplicate entries when you read the alg list. Because of this we use teh flag below to determin if the Factory has previously been initialised. C++ does not guarantee the initialised state of a variable, so variable is initialised outside the class (see top of accompanying .cpp file). Definition at line 60 of file omgmodellerlocalplugin.cpp. Referenced by initialise(). |
|
Definition at line 163 of file omgmodellerlocalplugin.h. Referenced by setProjectionProgress(). |
|
Globally unique id of the model currently being executed Definition at line 165 of file omgmodellerlocalplugin.h. Referenced by createModel(), projectModel(), setCreationProgress(), and setProjectionProgress(). |
|
Log for the model currently being executed Definition at line 167 of file omgmodellerlocalplugin.h. Referenced by appendToLog(), createModel(), and projectModel(). |
|
Definition at line 162 of file omgmodellerlocalplugin.h. Referenced by createModel(), projectModel(), setCreationProgress(), and setProjectionProgress(). |
|
Definition at line 160 of file omgmodellerlocalplugin.h. Referenced by createModel(), initialise(), projectModel(), and ~OmgModellerLocalPlugin(). |
|
Definition at line 159 of file omgmodellerlocalplugin.h. Referenced by createModel(), getAlgorithm(), getAlgorithmList(), getAlgorithmSet(), initialise(), projectModel(), and ~OmgModellerLocalPlugin(). |
|
Definition at line 161 of file omgmodellerlocalplugin.h. |