All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Plugin.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/qt/plugins/sa/Plugin.h
22 
23  \brief Plugin implementation for the SA Qt Plugin widget.
24 */
25 
26 #ifndef __TE_QT_PLUGINS_SA_INTERNAL_PLUGIN_H
27 #define __TE_QT_PLUGINS_SA_INTERNAL_PLUGIN_H
28 
29 // TerraLib
30 #include "../../../plugin/Plugin.h"
31 #include "Config.h"
32 
33 // Qt
34 #include <QAction>
35 #include <QMenu>
36 
37 namespace te
38 {
39  namespace qt
40  {
41  namespace plugins
42  {
43  namespace sa
44  {
45  class BayesGlobalAction;
46  class BayesLocalAction;
47  class GeostatisticalMethodsAction;
48  class KernelMapAction;
49  class KernelRatioAction;
50  class ProximityMatrixCreatorAction;
51  class SamplePointsGeneratorAction;
52  class SkaterAction;
53  class SpatialStatisticsAction;
54 
55  class Plugin : public te::plugin::Plugin
56  {
57  public:
58 
59  Plugin(const te::plugin::PluginInfo& pluginInfo);
60 
61  ~Plugin();
62 
63  void startup();
64 
65  void shutdown();
66 
67  protected:
68 
69  /*!
70  \brief Function used to register all raster processing actions.
71 
72  */
73  void registerActions();
74 
75  /*!
76  \brief Function used to unregister all raster processing actions.
77 
78  */
79  void unRegisterActions();
80 
81  protected:
82 
83  QMenu* m_saMenu; //!< SA Main Menu registered.
84  QAction* m_popupAction; //!< SA pop up action registered.
85 
86  te::qt::plugins::sa::BayesGlobalAction* m_bayesGlobal; //!< Global Bayes Process Action
87  te::qt::plugins::sa::BayesLocalAction* m_bayesLocal; //!< Local Bayes Process Action
88  te::qt::plugins::sa::GeostatisticalMethodsAction* m_geostatistics; //!< Geostatistics methods Process Action
89  te::qt::plugins::sa::KernelMapAction* m_kernelMap; //!< Kernel Map Process Action
90  te::qt::plugins::sa::KernelRatioAction* m_kernelRatio; //!< Kernel Ratio Process Action
91  te::qt::plugins::sa::ProximityMatrixCreatorAction* m_proxMatrixCreator; //!< Proximity Matrix Creator Process Action
92  te::qt::plugins::sa::SamplePointsGeneratorAction* m_samplePointsGenerator; //!< Sample points generator Process Action
93  te::qt::plugins::sa::SkaterAction* m_skater; //!< Skater Process Action
94  te::qt::plugins::sa::SpatialStatisticsAction* m_spatialStatistics; //!< Spatial Statistics Process Action
95  };
96 
97  } // end namespace sa
98  } // end namespace plugins
99  } // end namespace qt
100 } // end namespace te
101 
103 
104 #endif //__TE_QT_PLUGINS_SA_INTERNAL_PLUGIN_H
#define TEQTPLUGINSAEXPORT
You can use this macro in order to export/import classes and functions from all plug-ins files...
Definition: Config.h:116
PLUGIN_CALL_BACK_DECLARATION(TEQTPLUGINADDRESSGEOCODINGEXPORT)
Plugin(const te::plugin::PluginInfo &pluginInfo)
Definition: Plugin.cpp:76
te::qt::plugins::sa::KernelRatioAction * m_kernelRatio
Kernel Ratio Process Action.
Definition: Plugin.h:90
te::qt::plugins::sa::SamplePointsGeneratorAction * m_samplePointsGenerator
Sample points generator Process Action.
Definition: Plugin.h:92
Configuration flags for the SA Qt Widget plugin.
te::qt::plugins::sa::SpatialStatisticsAction * m_spatialStatistics
Spatial Statistics Process Action.
Definition: Plugin.h:94
~Plugin()
Virtual destructor.
Definition: Plugin.cpp:81
te::qt::plugins::sa::SkaterAction * m_skater
Skater Process Action.
Definition: Plugin.h:93
void unRegisterActions()
Function used to unregister all raster processing actions.
Definition: Plugin.cpp:186
te::qt::plugins::sa::ProximityMatrixCreatorAction * m_proxMatrixCreator
Proximity Matrix Creator Process Action.
Definition: Plugin.h:91
void shutdown()
Do nothing! Just set plugin as stopped.
Definition: Plugin.cpp:114
void startup()
Do nothing! Just set plugin as started.
Definition: Plugin.cpp:85
A base class for plugin types.
Definition: Plugin.h:50
te::qt::plugins::sa::BayesLocalAction * m_bayesLocal
Local Bayes Process Action.
Definition: Plugin.h:87
void registerActions()
Function used to register all raster processing actions.
Definition: Plugin.cpp:130
te::qt::plugins::sa::GeostatisticalMethodsAction * m_geostatistics
Geostatistics methods Process Action.
Definition: Plugin.h:88
te::qt::plugins::sa::KernelMapAction * m_kernelMap
Kernel Map Process Action.
Definition: Plugin.h:89
QAction * m_popupAction
SA pop up action registered.
Definition: Plugin.h:84
The basic information about a plugin.
Definition: PluginInfo.h:61
te::qt::plugins::sa::BayesGlobalAction * m_bayesGlobal
Global Bayes Process Action.
Definition: Plugin.h:86
QMenu * m_saMenu
SA Main Menu registered.
Definition: Plugin.h:83