27 #include "../../../common/Config.h"
28 #include "../../../common/Translator.h"
29 #include "../../../common/Logger.h"
30 #include "../../af/ApplicationController.h"
40 #if defined(TERRALIB_APACHE_LOG4CXX_ENABLED) && defined(TERRALIB_LOGGER_ENABLED)
42 #include <log4cxx/basicconfigurator.h>
43 #include <log4cxx/consoleappender.h>
44 #include <log4cxx/fileappender.h>
45 #include <log4cxx/helpers/pool.h>
46 #include <log4cxx/helpers/transcoder.h>
47 #include <log4cxx/logger.h>
48 #include <log4cxx/logmanager.h>
49 #include <log4cxx/logstring.h>
50 #include <log4cxx/simplelayout.h>
59 : te::plugin::
Plugin(pluginInfo), m_vpMenu(0)
80 m_vpMenu->setTitle(
TE_TR(
"Vector Processing"));
87 path +=
"/log/terralib_vp.log";
89 #if defined(TERRALIB_APACHE_LOG4CXX_ENABLED) && defined(TERRALIB_LOGGER_ENABLED)
90 log4cxx::FileAppender* fileAppender =
new log4cxx::FileAppender(log4cxx::LayoutPtr(
new log4cxx::SimpleLayout()),
93 log4cxx::helpers::Pool p;
94 fileAppender->activateOptions(p);
96 log4cxx::BasicConfigurator::configure(log4cxx::AppenderPtr(fileAppender));
97 log4cxx::Logger::getRootLogger()->setLevel(log4cxx::Level::getDebug());
98 log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(
"vp");
100 m_initialized =
true;
114 #if defined(TERRALIB_APACHE_LOG4CXX_ENABLED) && defined(TERRALIB_LOGGER_ENABLED)
115 log4cxx::LogManager::shutdown();
120 m_initialized =
false;
136 delete m_aggregation;
138 delete m_geometricOp;
139 delete m_intersection;
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level.
This class register the contrast action into VP Plugin.
This file defines the Aggregation class.
#define TE_TR(message)
It marks a string in order to get translated.
Plugin implementation for the VP Qt Plugin widget.
#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...
Plugin(const te::plugin::PluginInfo &pluginInfo)
void shutdown()
Do nothing! Just set plugin as stopped.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
This file defines the Buffer class.
bool decode(std::string &s)
Decode the pct-encoded (hex) sequences, if any, return success.
void registerActions()
Function used to register all raster processing actions.
This class register the contrast action into VP Plugin.
This class register the contrast action into VP Plugin.
~Plugin()
Virtual destructor.
This file defines the Intersection class.
The basic information about a plugin.
void unRegisterActions()
Function used to unregister all raster processing actions.
void startup()
Do nothing! Just set plugin as started.