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_RP_HAVE_ARITHMETICOP
39 #ifdef TE_QT_PLUGIN_RP_HAVE_CLASSIFIER
43 #ifdef TE_QT_PLUGIN_RP_HAVE_CLIPPING
47 #ifdef TE_QT_PLUGIN_RP_HAVE_COLORTRANSFORM
51 #ifdef TE_QT_PLUGIN_RP_HAVE_COMPOSEBANDS
55 #ifdef TE_QT_PLUGIN_RP_HAVE_CONTRAST
59 #ifdef TE_QT_PLUGIN_RP_HAVE_FILTER
63 #ifdef TE_QT_PLUGIN_RP_HAVE_FUSION
67 #ifdef TE_QT_PLUGIN_RP_HAVE_MIXTUREMODEL
71 #ifdef TE_QT_PLUGIN_RP_HAVE_MOSAIC
75 #ifdef TE_QT_PLUGIN_RP_HAVE_SEGMENTER
79 #ifdef TE_QT_PLUGIN_RP_HAVE_REGISTER
83 #ifdef TE_QT_PLUGIN_RP_HAVE_VECTORIZATION
93 : te::plugin::
Plugin(pluginInfo), m_rpMenu(0)
113 m_rpMenu =
new QMenu(pluginMenu);
114 m_rpMenu->setIcon(QIcon::fromTheme(
"rp-rasterprocessing-icon"));
119 pluginMenu->insertMenu(pluginsSeparator, m_rpMenu);
121 m_rpMenu->setTitle(
TE_TR(
"Raster Processing"));
124 m_popupAction =
new QAction(m_rpMenu);
125 m_popupAction->setText(
TE_TR(
"Raster Processing"));
131 m_rpPopupMenu =
new QMenu(m_rpMenu);
132 m_popupAction->setMenu(m_rpPopupMenu);
137 m_initialized =
true;
157 m_initialized =
false;
162 #ifdef TE_QT_PLUGIN_RP_HAVE_ARITHMETICOP
167 #ifdef TE_QT_PLUGIN_RP_HAVE_CLASSIFIER
172 #ifdef TE_QT_PLUGIN_RP_HAVE_CLIPPING
177 #ifdef TE_QT_PLUGIN_RP_HAVE_COLORTRANSFORM
182 #ifdef TE_QT_PLUGIN_RP_HAVE_COMPOSEBANDS
187 #ifdef TE_QT_PLUGIN_RP_HAVE_CONTRAST
192 #ifdef TE_QT_PLUGIN_RP_HAVE_FILTER
197 #ifdef TE_QT_PLUGIN_RP_HAVE_FUSION
202 #ifdef TE_QT_PLUGIN_RP_HAVE_MIXTUREMODEL
207 #ifdef TE_QT_PLUGIN_RP_HAVE_MOSAIC
212 #ifdef TE_QT_PLUGIN_RP_HAVE_REGISTER
217 #ifdef TE_QT_PLUGIN_RP_HAVE_SEGMENTER
222 #ifdef TE_QT_PLUGIN_RP_HAVE_VECTORIZATION
230 #ifdef TE_QT_PLUGIN_RP_HAVE_ARITHMETICOP
231 delete m_arithmeticOp;
234 #ifdef TE_QT_PLUGIN_RP_HAVE_CLASSIFIER
238 #ifdef TE_QT_PLUGIN_RP_HAVE_CLIPPING
242 #ifdef TE_QT_PLUGIN_RP_HAVE_COLORTRANSFORM
246 #ifdef TE_QT_PLUGIN_RP_HAVE_COMPOSEBANDS
247 delete m_composeBands;
250 #ifdef TE_QT_PLUGIN_RP_HAVE_CONTRAST
254 #ifdef TE_QT_PLUGIN_RP_HAVE_FILTER
258 #ifdef TE_QT_PLUGIN_RP_HAVE_FUSION
262 #ifdef TE_QT_PLUGIN_RP_HAVE_MIXTUREMODEL
263 delete m_mixtureModel;
266 #ifdef TE_QT_PLUGIN_RP_HAVE_MOSAIC
270 #ifdef TE_QT_PLUGIN_RP_HAVE_REGISTER
274 #ifdef TE_QT_PLUGIN_RP_HAVE_SEGMENTER
278 #ifdef TE_QT_PLUGIN_RP_HAVE_VECTORIZATION
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level.
This file defines the mixture model class.
This file defines the Filter class.
This class register the arithmeticOp action into RP Plugin.
void unRegisterActions()
Function used to unregister all raster processing actions.
This file defines the Segmenter class.
This file defines the Fusion class.
This file defines the Clipping class.
void startup()
Do nothing! Just set plugin as started.
This class register the Segmenter action into RP Plugin.
Plugin implementation for the RP Qt Plugin widget.
This class register the register action into RP Plugin.
This file defines the Classifier class.
#define TE_TR(message)
It marks a string in order to get translated.
This file defines the Mosaic class.
This class register the contrast action into RP Plugin.
This file defines the Contrast class.
#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.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
This class register the classifier action into RP Plugin.
This file defines the Compose Bands class.
This class register the mixture model action into RP Plugin.
Plugin(const te::plugin::PluginInfo &pluginInfo)
~Plugin()
Virtual destructor.
This class register the compose bands action into RP Plugin.
This class register the fusion action into RP Plugin.
This class register the mosaic action into RP Plugin.
This class register the Clipping action into RP Plugin.
This class register the filter action into RP Plugin.
The basic information about a plugin.
This file defines the register action class.
This file defines the ArithmeticOp class.
void registerActions()
Function used to register all raster processing actions.
void shutdown()
Do nothing! Just set plugin as stopped.