Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

omglayerset.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           omglayer.h  -  description
00003                              -------------------
00004     begin                : March 2006
00005     copyright            : (C) 2003 by Tim Sutton
00006     email                : tim@linfiniti.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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     // Accessors
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     // Mutators
00070     //
00071 
00075     void setName(QString theName);
00076     
00080     void setDescription(QString theDescription);
00081     
00085     void setMask(OmgLayer theMask);
00086     
00087 
00088     //
00089     // Ancilliary helper methods
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 

Generated on Mon Apr 28 15:08:44 2008 for openModellerDesktop by  doxygen 1.4.1-20050210