#include <omglayerset.h>
Inheritance diagram for OmgLayerSet:
Definition at line 31 of file omglayerset.h.
Public Types | |
typedef QMap< QString, OmgLayer > | LayersMap |
Public Member Functions | |
OmgLayerSet () | |
~OmgLayerSet () | |
bool | addLayer (OmgLayer theLayer) |
bool | removeLayer (OmgLayer theLayer) |
bool | removeLayer (QString theLayer) |
QString | name () const |
QString | description () const |
OmgLayer | mask () const |
QStringList | nameList () const |
LayersMap | layers () const |
void | setName (QString theName) |
void | setDescription (QString theDescription) |
void | setMask (OmgLayer theMask) |
QString | maskName () const |
int | count () const |
QString | toString () const |
QString | toXml () const |
bool | fromXml (const QString) |
QString | toHtml () const |
bool | save (QString theFileName="") const |
Private Attributes | |
QString | mName |
QString | mDescription |
OmgLayer | mMask |
LayersMap | mLayersMap |
|
Definition at line 65 of file omglayerset.h. |
|
Constructor . Definition at line 28 of file omglayerset.cpp. |
|
Desctructor . Definition at line 32 of file omglayerset.cpp. |
|
Add a layer to the layerset
Definition at line 36 of file omglayerset.cpp. References mLayersMap, and OmgLayer::name(). Referenced by fromXml(), OmgLayerSetManager::on_pbnApply_clicked(), OmgModel::setCreationLayerNames(), and OmgModel::setProjectionLayerNames(). |
Here is the call graph for this function:
|
Retrun the count of layers in the layerset - excluding the mask Definition at line 98 of file omglayerset.cpp. References mLayersMap. Referenced by toXml(). |
|
Definition at line 61 of file omglayerset.cpp. References mDescription. Referenced by OmgLayerSetManager::on_pbnImport_clicked(), and OmgLayerSetManager::selectLayerSet(). |
|
Initialise this layerset from an xml representation of this LayerSet
Definition at line 173 of file omglayerset.cpp. References addLayer(), mDescription, mName, OmgLayer::setCategorical(), OmgGuid::setGuid(), setMask(), OmgLayer::setName(), and Omgui::xmlDecode(). Referenced by OmgModel::fromXml(). |
Here is the call graph for this function:
|
Return a copy of the internal qmap with all associated layers in it Definition at line 116 of file omglayerset.cpp. References mLayersMap. Referenced by OmgLayerSetManager::selectLayerSet(). |
|
Definition at line 65 of file omglayerset.cpp. References mMask. Referenced by OmgLayerSetManager::selectLayerSet(). |
|
Return the name of the mask layer Definition at line 93 of file omglayerset.cpp. References mMask, and OmgLayer::name(). Referenced by OmgModel::creationMaskLayerName(), OmgModel::projectionMaskLayerName(), and OmgModel::toString(). |
Here is the call graph for this function:
|
The name of this layer - usually a full pathname and file name though this may vary depending on the OmgModellerAdapter implementations Definition at line 57 of file omglayerset.cpp. References mName. Referenced by Omgui::getAvailableLayerSets(), OmgExperimentDesigner::OmgExperimentDesigner(), OmgLayerSetManager::on_pbnApply_clicked(), OmgLayerSetManager::on_pbnImport_clicked(), OmgLayerSetManager::on_toolCopy_clicked(), OmgLayerSetManager::refreshLayerSetTable(), OmgLayerSetManager::selectLayerSet(), and OmgModel::toPrintHtml(). |
|
Helper method to return a name list of all the non mask layer names. Definition at line 120 of file omglayerset.cpp. References mLayersMap, and OmgLayer::name(). Referenced by OmgModel::creationLayerNames(), OmgModel::projectionLayerNames(), and OmgExperimentDesigner::refreshMapFormatCombo(). |
Here is the call graph for this function:
|
Overloaded method to remove a layer from the layerset given only its layername. Definition at line 47 of file omglayerset.cpp. References mLayersMap. |
|
Remove a layer from the layerset
Definition at line 42 of file omglayerset.cpp. References mLayersMap, and OmgLayer::name(). |
Here is the call graph for this function:
|
Save the layerset to disk. If no filename is specified it will save itself into the users layersets dir using guid as the base for its filename.
Definition at line 220 of file omglayerset.cpp. References OmgGuid::guid(), toXml(), and Omgui::userLayersetDirPath(). Referenced by OmgLayerSetManager::on_pbnApply_clicked(), OmgLayerSetManager::on_pbnImport_clicked(), and OmgLayerSetManager::on_toolCopy_clicked(). |
Here is the call graph for this function:
|
Set a description for the layerset
Definition at line 78 of file omglayerset.cpp. References mDescription. Referenced by OmgLayerSetManager::on_pbnApply_clicked(), and OmgLayerSetManager::on_pbnImport_clicked(). |
|
Set the mask layer for this layerset. A mask is defined by the non null cells in a gdal dataset. Definition at line 82 of file omglayerset.cpp. References mMask. Referenced by fromXml(), OmgLayerSetManager::on_pbnApply_clicked(), OmgModel::setcreationMaskLayerName(), and OmgModel::setProjectionMaskLayerName(). |
|
Set the layerSet Name
Definition at line 74 of file omglayerset.cpp. References mName. Referenced by OmgLayerSetManager::on_pbnApply_clicked(), OmgLayerSetManager::on_pbnImport_clicked(), and OmgLayerSetManager::on_toolCopy_clicked(). |
|
Return an html representation of this LayerSet e.g. Definition at line 155 of file omglayerset.cpp. References mDescription, mLayersMap, mMask, mName, and OmgLayer::name(). Referenced by OmgExperimentPrinter::run(), and OmgModel::toHtml(). |
Here is the call graph for this function:
|
Return a string representation of this LayerSet Definition at line 103 of file omglayerset.cpp. References OmgGuid::guid(), mDescription, mLayersMap, mName, and OmgLayer::name(). Referenced by OmgModel::toString(). |
Here is the call graph for this function:
|
Return an xml representation of this LayerSet
Implements OmgSerialisable. Definition at line 133 of file omglayerset.cpp. References count(), OmgGuid::guid(), mDescription, mLayersMap, mMask, mName, OmgLayer::name(), and OmgLayer::toXml(). Referenced by OmgModel::projectionLayersXml(), save(), OmgModel::toModelCreationXml(), OmgModel::toModelProjectionXml(), and OmgModel::toXml(). |
Here is the call graph for this function:
|
Definition at line 133 of file omglayerset.h. Referenced by description(), fromXml(), setDescription(), toHtml(), toString(), and toXml(). |
|
Definition at line 135 of file omglayerset.h. Referenced by addLayer(), count(), layers(), nameList(), removeLayer(), toHtml(), toString(), and toXml(). |
|
Definition at line 134 of file omglayerset.h. Referenced by mask(), maskName(), setMask(), toHtml(), and toXml(). |
|
Definition at line 132 of file omglayerset.h. Referenced by fromXml(), name(), setName(), toHtml(), toString(), and toXml(). |