27 #include "../../../common/Config.h"
28 #include "../../../common/Translator.h"
29 #include "../../../common/Logger.h"
30 #include "../../af/ApplicationController.h"
31 #include "../../af/events/LayerEvents.h"
32 #include "../../af/Utils.h"
35 #ifdef TE_QT_PLUGIN_SA_HAVE_BAYESGLOBAL
39 #ifdef TE_QT_PLUGIN_SA_HAVE_BAYESLOCAL
43 #ifdef TE_QT_PLUGIN_SA_HAVE_KERNELMAP
47 #ifdef TE_QT_PLUGIN_SA_HAVE_KERNELRATIO
51 #ifdef TE_QT_PLUGIN_SA_HAVE_GEOSTATISTICALMETHODS
55 #ifdef TE_QT_PLUGIN_SA_HAVE_PROXIMITYMATRIXCREATOR
59 #ifdef TE_QT_PLUGIN_SA_HAVE_SAMPLEPOINTSGENERATOR
63 #ifdef TE_QT_PLUGIN_SA_HAVE_SKATER
67 #ifdef TE_QT_PLUGIN_SA_HAVE_SPATIALSTATISTICS
77 : te::plugin::
Plugin(pluginInfo), m_saMenu(0)
94 m_saMenu =
new QMenu(pluginMenu);
95 m_saMenu->setIcon(QIcon::fromTheme(
"sa-spatialanalysis-icon"));
100 pluginMenu->insertMenu(pluginsSeparator, m_saMenu);
102 m_saMenu->setTitle(
TE_TR(
"Spatial Analysis"));
105 m_popupAction =
new QAction(m_saMenu);
106 m_popupAction->setText(
TE_TR(
"Spatial Analysis"));
111 m_initialized =
true;
127 m_initialized =
false;
133 #ifdef TE_QT_PLUGIN_SA_HAVE_PROXIMITYMATRIXCREATOR
138 #ifdef TE_QT_PLUGIN_SA_HAVE_SPATIALSTATISTICS
139 m_saMenu->addSeparator();
144 #ifdef TE_QT_PLUGIN_SA_HAVE_BAYESGLOBAL
145 m_saMenu->addSeparator();
150 #ifdef TE_QT_PLUGIN_SA_HAVE_BAYESLOCAL
155 #ifdef TE_QT_PLUGIN_SA_HAVE_KERNELMAP
156 m_saMenu->addSeparator();
161 #ifdef TE_QT_PLUGIN_SA_HAVE_KERNELRATIO
166 #ifdef TE_QT_PLUGIN_SA_HAVE_SKATER
167 m_saMenu->addSeparator();
172 #ifdef TE_QT_PLUGIN_SA_HAVE_GEOSTATISTICALMETHODS
173 m_saMenu->addSeparator();
178 #ifdef TE_QT_PLUGIN_SA_HAVE_SAMPLEPOINTSGENERATOR
179 m_saMenu->addSeparator();
189 #ifdef TE_QT_PLUGIN_SA_HAVE_BAYESGLOBAL
190 delete m_bayesGlobal;
193 #ifdef TE_QT_PLUGIN_SA_HAVE_BAYESLOCAL
197 #ifdef TE_QT_PLUGIN_SA_HAVE_KERNELMAP
201 #ifdef TE_QT_PLUGIN_SA_HAVE_KERNELRATIO
202 delete m_kernelRatio;
205 #ifdef TE_QT_PLUGIN_SA_HAVE_GEOSTATISTICALMETHODS
206 delete m_geostatistics;
209 #ifdef TE_QT_PLUGIN_SA_HAVE_PROXIMITYMATRIXCREATOR
210 delete m_proxMatrixCreator;
213 #ifdef TE_QT_PLUGIN_SA_HAVE_SAMPLEPOINTSGENERATOR
214 delete m_samplePointsGenerator;
217 #ifdef TE_QT_PLUGIN_SA_HAVE_SKATER
221 #ifdef TE_QT_PLUGIN_SA_HAVE_SPATIALSTATISTICS
222 delete m_spatialStatistics;
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level.
Plugin(const te::plugin::PluginInfo &pluginInfo)
This file defines the concrete class for Geostatistical Methods Action.
This file defines the concrete class for SpatialStatistics Action.
#define TE_TR(message)
It marks a string in order to get translated.
This file defines the concrete class for Skater Action.
#define PLUGIN_CALL_BACK_IMPL(PLUGIN_CLASS_NAME)
This macro should be used by C++ plugins in order to declare the exportable/callable DLL function...
TEQTAFEXPORT void AddActionToCustomToolbars(QAction *act)
Check QSettings for existance of act and adds it if necessary.
~Plugin()
Virtual destructor.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
This file defines the concrete class for KernelMap Action.
This file defines the concrete class for BayesLocal Action.
void unRegisterActions()
Function used to unregister all raster processing actions.
void shutdown()
Do nothing! Just set plugin as stopped.
void startup()
Do nothing! Just set plugin as started.
Plugin implementation for the SA Qt Plugin widget.
This file defines the concrete class for SamplePointsGenerator Action.
This file defines the concrete class for ProximityMatrixCreator Action.
void registerActions()
Function used to register all raster processing actions.
The basic information about a plugin.
This file defines the concrete class for KernelRatio Action.
This file defines the concrete class for BayesGlobal Action.