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

omgmodellerlocalplugin.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Tim Sutton   *
00003  *   tim@linfiniti.com   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef OMGMODELLERLOCALPLUGIN_H
00021 #define OMGMODELLERLOCALPLUGIN_H
00022 
00023 //qt includes
00024 #include <QObject>
00025 #include <QString>
00026 #include <QStringList>
00027 #include <QMap>
00028 #include <QTextStream>
00029 
00030 //#include "qlogcallback.h"
00031 #include "omgalgorithm.h"
00032 #include "omgmodel.h"
00033 #include "omgomlogcallback.h"
00034 #include "omgpluginmessenger.h"
00035 
00036 #include <omgmodellerplugininterface.h>
00037 class OpenModeller;
00038 class QDomDocument;
00039 class QDomElement;
00040 
00057   void modelCallback( float theProgress, void *thePlugin );
00058 
00072   void mapCallback( float theProgress, void *thePlugin );
00073   
00074 class OMG_PLUGIN_EXPORT OmgModellerLocalPlugin : public QObject, public OmgModellerPluginInterface
00075 {
00076   Q_OBJECT;
00077   Q_INTERFACES(OmgModellerPluginInterface);
00078   public:
00079   OmgModellerLocalPlugin( QObject* parent=0);
00080   ~OmgModellerLocalPlugin();
00085   QString createModel(OmgModel * theModel);
00091   void  projectModel(OmgModel * theModel);
00092 
00098   const QStringList getAlgorithmList();
00105   const OmgAlgorithmSet getAlgorithmSet();
00110   const OmgAlgorithm getAlgorithm( QString theAlgorithmId );
00117    void setCreationProgress (int theProgress);
00124    void setProjectionProgress (int theProgress);
00125 
00135    const QString getLayers(QString theBaseDir);
00136 
00140   const  QString getName() { return QString("Local Modeller Plugin"); };
00141 
00142   public slots:
00143 
00144   private slots:
00151   void appendToLog(QString theGuid,QString theMessage);
00152 
00153   private:
00158   bool initialise();
00159   OpenModeller * mpOpenModeller;
00160   OmgOmLogCallback * mpLogCallBack;
00161   QTextStream mTextStream;
00162   int mModelProgress; //as %
00163   int mMapProgress; // as %
00165   QString mModelGuid;
00167   QString mModelLog;
00168 
00180   static bool mAlgFactoryStartedFlag;
00181 
00186   void setMapProgress(int theProgress);
00187 
00191   void setModelProgress(int theProgress);
00192   
00193 
00194 };
00195 
00196 #endif

Generated on Mon Apr 28 15:09:25 2008 for openModellerDesktop by  doxygen 1.4.1-20050210