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/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 LineToPolygonAction;
49  class MultipartToSinglepartAction;
50  class PolygonToLineAction;
51  //class SummarizationAction;
52  //class TransformationAction;
53 
54  class Plugin : public te::plugin::Plugin
55  {
56  public:
57 
58  Plugin(const te::plugin::PluginInfo& pluginInfo);
59 
60  ~Plugin();
61 
62  void startup();
63 
64  void shutdown();
65 
66  protected:
67 
68  /*!
69  \brief Function used to register all raster processing actions.
70 
71  */
72  void registerActions();
73 
74  /*!
75  \brief Function used to unregister all raster processing actions.
76 
77  */
78  void unRegisterActions();
79 
80  protected:
81 
82  QMenu* m_vpMenu; //!< VP Main Menu registered.
83 
84  AggregationAction* m_aggregation; //!< Aggregation Operation Action
85  BufferAction* m_buffer; //!< Buffer Operation Action
86  GeometricOpAction* m_geometricOp; //!< Geometric Operation
87  IntersectionAction* m_intersection; //!< Intersection Operation Action
88  LineToPolygonAction* m_lineToPolygon; //!< Line to Polygon Operation Action
89  MultipartToSinglepartAction* m_multipart2singlepart; //!< Intersection Operation Action
90  PolygonToLineAction* m_polygonToLine; //!< Polygon to Line Operation Action
91  //SummarizationAction* m_summarization; //!< Summarization Operation Action
92  //TransformationAction* m_transformation; //!< Transformation Operation Action
93 
94  };
95 
96  } // end namespace vp
97  } // end namespace plugins
98  } // end namespace qt
99 } // end namespace te
100 
102 
103 #endif //__TE_QT_PLUGINS_VP_INTERNAL_PLUGIN_H
This class register the contrast action into VP Plugin.
PLUGIN_CALL_BACK_DECLARATION(TEQTPLUGINADDRESSGEOCODINGEXPORT)
GeometricOpAction * m_geometricOp
Geometric Operation.
Definition: Plugin.h:86
This class register the contrast action into VP Plugin.
LineToPolygonAction * m_lineToPolygon
Line to Polygon Operation Action.
Definition: Plugin.h:88
QMenu * m_vpMenu
VP Main Menu registered.
Definition: Plugin.h:82
IntersectionAction * m_intersection
Intersection Operation Action.
Definition: Plugin.h:87
PolygonToLineAction * m_polygonToLine
Polygon to Line Operation Action.
Definition: Plugin.h:90
Configuration flags for the VP Qt Widget plugin.
Plugin(const te::plugin::PluginInfo &pluginInfo)
Definition: Plugin.cpp:66
MultipartToSinglepartAction * m_multipart2singlepart
Intersection Operation Action.
Definition: Plugin.h:89
void shutdown()
Do nothing! Just set plugin as stopped.
Definition: Plugin.cpp:125
This class register the contrast action into VP Plugin.
AggregationAction * m_aggregation
Aggregation Operation Action.
Definition: Plugin.h:84
BufferAction * m_buffer
Buffer Operation Action.
Definition: Plugin.h:85
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
This class register the contrast action into VP Plugin.
void registerActions()
Function used to register all raster processing actions.
Definition: Plugin.cpp:145
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:71
The basic information about a plugin.
Definition: PluginInfo.h:61
void unRegisterActions()
Function used to unregister all raster processing actions.
Definition: Plugin.cpp:166
void startup()
Do nothing! Just set plugin as started.
Definition: Plugin.cpp:75