00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef OMGLAYERSET_H
00019 #define OMGLAYERSET_H
00020
00021 class QString;
00022 #include <QMap>
00023 #include "omgguid.h"
00024 #include "omglayer.h"
00025 #include "omgserialisable.h"
00031 class OMG_LIB_EXPORT OmgLayerSet : public OmgSerialisable, public OmgGuid
00032 {
00033 public:
00035 OmgLayerSet();
00037 ~OmgLayerSet();
00038
00042 bool addLayer(OmgLayer theLayer);
00046 bool removeLayer(OmgLayer theLayer);
00050 bool removeLayer(QString theLayer);
00051
00052
00053
00054
00055
00058 QString name() const;
00059 QString description() const;
00060 OmgLayer mask() const;
00064 QStringList nameList() const;
00065 typedef QMap<QString,OmgLayer> LayersMap;
00067 LayersMap layers() const;
00068
00069
00070
00071
00075 void setName(QString theName);
00076
00080 void setDescription(QString theDescription);
00081
00085 void setMask(OmgLayer theMask);
00086
00087
00088
00089
00090
00091
00095 QString maskName() const;
00096
00100 int count() const;
00103 QString toString() const;
00104
00109 QString toXml() const ;
00113 bool fromXml(const QString) ;
00114
00115
00122 QString toHtml() const;
00123
00130 bool save(QString theFileName="") const;
00131 private:
00132 QString mName;
00133 QString mDescription;
00134 OmgLayer mMask;
00135 LayersMap mLayersMap;
00136 };
00137
00138 #endif //OMGLAYERSET_H
00139