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) 2011-2012 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/vp/Plugin.h
22 
23  \brief Plugin implementation for the VP Qt Plugin widget.
24 */
25 
26 #ifndef __TE_QT_PLUGINS_VP_INTERNAL_PLUGIN_H
27 #define __TE_QT_PLUGINS_VP_INTERNAL_PLUGIN_H
28 
29 // TerraLib
30 #include "../../../plugin/Plugin.h"
31 #include "Config.h"
32 
33 // Qt
34 #include <QMenu>
35 
36 namespace te
37 {
38  namespace qt
39  {
40  namespace plugins
41  {
42  namespace vp
43  {
44  class AggregationAction;
45  class BufferAction;
46  class GeometricOpAction;
47  class IntersectionAction;
48  //class PolygonToLineAction;
49  //class SummarizationAction;
50  //class TransformationAction;
51 
52  class Plugin : public te::plugin::Plugin
53  {
54  public:
55 
56  Plugin(const te::plugin::PluginInfo& pluginInfo);
57 
58  ~Plugin();
59 
60  void startup();
61 
62  void shutdown();
63 
64  protected:
65 
66  /*!
67  \brief Function used to register all raster processing actions.
68 
69  */
70  void registerActions();
71 
72  /*!
73  \brief Function used to unregister all raster processing actions.
74 
75  */
76  void unRegisterActions();
77 
78  protected:
79 
80  QMenu* m_vpMenu; //!< VP Main Menu registered.
81 
82  te::qt::plugins::vp::AggregationAction* m_aggregation; //!< Aggregation Operation Action
83  te::qt::plugins::vp::BufferAction* m_buffer; //!< Buffer Operation Action
85  te::qt::plugins::vp::IntersectionAction* m_intersection; //!< Intersection Operation Action
86  //te::qt::plugins::vp::PolygonToLineAction* m_polygonToLine; //!< Polygon to Line Operation Action
87  //te::qt::plugins::vp::SummarizationAction* m_summarization; //!< Summarization Operation Action
88  //te::qt::plugins::vp::TransformationAction* m_transformation; //!< Transformation Operation Action
89 
90  };
91 
92  } // end namespace vp
93  } // end namespace plugins
94  } // end namespace qt
95 } // end namespace te
96 
98 
99 #endif //__TE_QT_PLUGINS_VP_INTERNAL_PLUGIN_H
This class register the contrast action into VP Plugin.
te::qt::plugins::vp::GeometricOpAction * m_geometricOp
Geometric Operation.
Definition: Plugin.h:84
QMenu * m_vpMenu
VP Main Menu registered.
Definition: Plugin.h:80
te::qt::plugins::vp::BufferAction * m_buffer
Buffer Operation Action.
Definition: Plugin.h:83
te::qt::plugins::vp::IntersectionAction * m_intersection
Intersection Operation Action.
Definition: Plugin.h:85
PLUGIN_CALL_BACK_DECLARATION(TEQTPLUGINADOEXPORT)
Configuration flags for the VP Qt Widget plugin.
Plugin(const te::plugin::PluginInfo &pluginInfo)
Definition: Plugin.cpp:58
void shutdown()
Do nothing! Just set plugin as stopped.
Definition: Plugin.cpp:103
te::qt::plugins::vp::AggregationAction * m_aggregation
Aggregation Operation Action.
Definition: Plugin.h:82
A base class for plugin types.
Definition: Plugin.h:50
#define TEQTPLUGINVPEXPORT
You can use this macro in order to export/import classes and functions from all plug-ins files...
Definition: Config.h:53
void registerActions()
Function used to register all raster processing actions.
Definition: Plugin.cpp:123
This class register the contrast action into VP Plugin.
Definition: BufferAction.h:47
This class register the contrast action into VP Plugin.
~Plugin()
Virtual destructor.
Definition: Plugin.cpp:63
The basic information about a plugin.
Definition: PluginInfo.h:61
void unRegisterActions()
Function used to unregister all raster processing actions.
Definition: Plugin.cpp:134
void startup()
Do nothing! Just set plugin as started.
Definition: Plugin.cpp:67