#include <omgui.h>
Definition at line 39 of file omgui.h.
Public Types | |
typedef QMap< QString, OmgLayerSet > | LayerSetMap |
enum | TimeForm { longTimeForm, shortTimeForm } |
Static Public Member Functions | |
static const QString | userSettingsDirPath () |
static const QString | userAlgorithmProfilesDirPath () |
static const QString | fileSelectorCachePath () |
static const QString | userLayersetDirPath () |
static const QString | pluginDirPath () |
static const QString | getModelOutputDir () |
static Omgui::LayerSetMap | getAvailableLayerSets () |
static QStringList | sortList (QStringList theList) |
static QStringList | uniqueList (QStringList theList) |
static QString | getLayers (QString theBaseDir) |
static QStringList | getExperimentsList () |
static QHash< QString, QString > | getOutputFormats () |
static QHash< QString, QPair< double, double > > | getOutputFormatRanges () |
static QHash< QString, float > | getOutputFormatNoData () |
static QHash< QString, QString > | getOutputFormatNotes () |
static QString | getOutputFormatExtension () |
static bool | createTextFile (QString theFileName, QString theData) |
static QString | readTextFile (QString theFileName) |
static QString | xmlEncodeAmpersands (QString theString) |
static QString | xmlEncode (QString theString) |
static void | xmlEncodeInPlace (QString &theString) |
static QString | xmlDecode (QString theString) |
static void | xmlDecodeInPlace (QString &theString) |
static QColor | randomColour () |
static QString | defaultStyleSheet () |
static QString | getHtmlHeader () |
static QString | getHtmlFooter () |
static bool | deleteShapeFile (QString theFileBase) |
static bool | localitiesToShapefile (QString theShapefileName, OmgLocalities const &theLocalities) |
static QString | i18nPath () |
static QStringList | i18nList () |
static QString | version () |
static void | createThumbnail (QString theTopLabel, QString theBottomLabel, QString theSourceImageFileName, QString theOutputFileName) |
template<class T> | |
static QString | secondsToString (T theSeconds, Omgui::TimeForm theForm=Omgui::shortTimeForm) |
Static Private Member Functions | |
static void | traverseDirectories (const QString theDirName, QDomDocument &theDocument, QDomElement &theParentElement) |
|
This typedef is used to refer to a collection of layersets. the key is the layerset name the value is the layerset itself |
|
An enumerated type for describing formating options when printing time out. |
|
A helper method to easily write a file to disk.
Definition at line 539 of file omgui.cpp. Referenced by OmgLayerSelector::buildTree(), OmgMainWindow::exportSamplesToCsv(), OmgModellerWebServicesPlugin::getAlgorithmSet(), OmgModel::postProcess(), OmguiTest::regression1711409(), OmguiTest::regression1728367(), OmgLocalitiesModelTest::rowsAndColumns(), OmgModelTest::run(), OmgExperiment::save(), OmgExperimentTest::saveAndLoadExperiment(), OmgModelTest::saveAndLoadModel(), OmgModel::toHtml(), OmgExperiment::toSummaryHtml(), and Localities2CsvTest::writeLocalities2Csv(). |
|
Definition at line 889 of file omgui.cpp. Referenced by OmgModel::createThumbnail(). |
|
A helper to get the standard style sheet for reports etc.
Definition at line 669 of file omgui.cpp. Referenced by OmgMainWindow::setReportStyleSheet(), and OmgLayerSelector::showInfo(). |
|
Delete a shapefile and its associated shx, dbf etc
Definition at line 725 of file omgui.cpp. Referenced by localitiesToShapefile(). |
|
Find the place in the file system where file selector tree documents are cached. These are cached on a per modeller plugin basis, and in the case of web services plugin, in subdirs based on the WS host name. File selector tree documents are cached xml documents representing the GIS raster files available for use in layersets. Definition at line 97 of file omgui.cpp. Referenced by OmgLayerSelector::buildTree(). |
|
Get a QMap of the avaliable layersets in the users layersets directory
Definition at line 194 of file omgui.cpp. References OmgSerialisable::fromXmlFile(), OmgLayerSet::name(), and userLayersetDirPath(). Referenced by OmgExperimentDesigner::getExperiment(), OmgExperimentDesigner::OmgExperimentDesigner(), OmgLayerSetManager::refreshLayerSetTable(), and OmgExperimentDesigner::refreshMapFormatCombo(). |
Here is the call graph for this function:
|
Scan the users work directory looking for experiment files and return the list of files found.
Definition at line 426 of file omgui.cpp. Referenced by OmguiTest::regression1728367(), and OmgExperimentSelector::updateExperimentList(). |
|
Add Standard Html footer
Definition at line 717 of file omgui.cpp. Referenced by OmgExperimentPrinter::run(), OmgModel::toHtml(), and OmgExperiment::toSummaryHtml(). |
|
Add Standard Html header
Definition at line 704 of file omgui.cpp. Referenced by OmgExperimentPrinter::run(), OmgModel::toHtml(), and OmgExperiment::toSummaryHtml(). |
|
Scan a directory looking for any valid gdal layers and return the result as an xml document complient with the openModeller WebServices interface format for AvailableLayers
Definition at line 258 of file omgui.cpp. References traverseDirectories(). Referenced by OmgModellerLocalPlugin::getLayers(), and OmguiTest::regression1711409(). |
Here is the call graph for this function:
|
Get the place where model outputs are to be stored. By default this is in ~/.omgui/modelOutputs :: But if modelOutputsDir is specified in QSettings, it will override the default. Definition at line 83 of file omgui.cpp. References userSettingsDirPath(). |
Here is the call graph for this function:
|
Get the file extension for the default image format.
Definition at line 527 of file omgui.cpp. Referenced by OmgModellerWebServicesPlugin::projectModel(), and OmgModellerLocalPlugin::projectModel(). |
|
Return a hash containing the list of output image nodata values for formats supported by openModeller.
Definition at line 514 of file omgui.cpp. Referenced by OmgRasterThreshold::accept(). |
|
Return a hash containing the list of output image formats supported by openModeller.
Definition at line 487 of file omgui.cpp. Referenced by OmgOptions::on_cboOutputFormat_currentIndexChanged(). |
|
Return a hash containing the list of min/max ranges for each of the output formats supported by openModeller.
Definition at line 501 of file omgui.cpp. Referenced by OmgRasterThreshold::accept(), and OmgMainWindow::setCurrentModel(). |
|
Return a hash containing the list of output image formats supported by openModeller.
Definition at line 474 of file omgui.cpp. Referenced by OmgOptions::OmgOptions(). |
|
Get a string list of the suportted locales (translations) for this application Definition at line 633 of file omgui.cpp. References i18nPath(). Referenced by OmgOptions::OmgOptions(). |
Here is the call graph for this function:
|
Get the directory containing the qt .qm translation files.
Definition at line 604 of file omgui.cpp. Referenced by i18nList(), and main(). |
|
Convert a localities vector OmgLocalities into a shapefile.
Definition at line 767 of file omgui.cpp. References OmgLocality::abundance(), deleteShapeFile(), OmgLocality::id(), OmgLocality::latitude(), OmgLocality::longitude(), and OmgLocality::samples(). Referenced by OmgScraperPluginInterface::createShapefile(), and OmgModel::toShapefile(). |
Here is the call graph for this function:
|
Get the path to where the plugins live. Usually this is not needed as the getModellerPlugin, getScraperPlugin etc factory methods below do all this for you. Definition at line 143 of file omgui.cpp. Referenced by OmgModellerPluginRegistry::OmgModellerPluginRegistry(), OmgScraperPluginRegistry::OmgScraperPluginRegistry(), and OmgModelTest::run(). |
|
A helper method to get a random color
Definition at line 650 of file omgui.cpp. Referenced by OmgDataSeries::OmgDataSeries(), and OmgGraph::randomGradient(). |
|
A helper method to easily read a file from disk.
Definition at line 556 of file omgui.cpp. Referenced by OmgMainWindow::printExperimentReport(). |
|
A helper method to rewrite seconds as a string in the form 2 hours 20 minutes 12 seconds. If a given unit (e.g. mins) is zero that part wil be left out e.g. 2 hours 12 seconds
Definition at line 286 of file omgui.h. References shortTimeForm. Referenced by OmgExperiment::getStatsHtml(). |
|
Sort a string list into descending alphabetic order and return the result.
Definition at line 224 of file omgui.cpp. Referenced by OmgLayerSetManager::on_toolAddLayers_clicked(), OmgExperimentDesigner::on_toolFormatLayer_clicked(), OmgExperimentDesigner::refreshMapFormatCombo(), and OmgExperimentDesigner::setSpeciesList(). |
|
A helper function used my getLayers to scan a directory looking for valid gdal filea.
Definition at line 283 of file omgui.cpp. References OmgGdal::isValidGdalFile(), and OmgGdal::isValidGdalProj(). Referenced by getLayers(). |
Here is the call graph for this function:
|
Remove any duplucate entries from a sorted list
Definition at line 239 of file omgui.cpp. Referenced by OmgExperimentDesigner::refreshMapFormatCombo(). |
|
Find the place on the filesystem where user defined algorithm profiles are stored. Typically this will be ~/.omgui/algorithmProfiles
Definition at line 89 of file omgui.cpp. Referenced by OmgMainWindow::OmgMainWindow(). |
|
Find the place on the filesystem where user defined layersets are stored. Typically this will be ~/.omgui/layersets
Definition at line 119 of file omgui.cpp. Referenced by getAvailableLayerSets(), OmgLayerSetManager::on_toolCopy_clicked(), OmgLayerSet::save(), and OmgLayerSetManager::selectLayerSet(). |
|
Find the place on the filesystem where user data are stored. Typically this will be ~/.omgui
Definition at line 73 of file omgui.cpp. Referenced by getModelOutputDir(). |
|
Get the version string for this application. e.g. openModeller Desktop 1.0.7 (r2312)
Definition at line 867 of file omgui.cpp. Referenced by OmgAbout::OmgAbout(). |
|
A helper method to xml deencode any special chars in a string (< > & etc) will become (< > & etc)
Definition at line 589 of file omgui.cpp. Referenced by OmgLayerSet::fromXml(), OmgExperiment::fromXml(), OmgAlgorithm::fromXml(), and OmgExperimentSelector::updateExperimentList(). |
|
A helper method to xml deencode any special chars in a string (< > & etc) will become (< > & etc)
|
|
A helper method to xml encode any special chars in a string (< > & etc) will become (< > & etc)
Definition at line 574 of file omgui.cpp. Referenced by OmgExperiment::getStatsHtml(), and OmgScraperGbif::localitiesRequestDone(). |
|
A helper method to xml encode any ampersands in a string & will become &
Definition at line 568 of file omgui.cpp. Referenced by OmgModellerWebServicesPlugin::getAlgorithmSet(). |
|
A helper method to xml encode any special chars in a string. (< > & etc) will become (< > & etc)
|