PointSymbolizerProperty.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/widgets/se/PointSymbolizerProperty.h
22 
23  \brief A widget used to define the point symbolizer
24  properties, such as:
25  - general
26  - mark
27  - basic fill
28  - basic stroke
29  - glyph
30 */
31 
32 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_POINTSYMBOLIZERPROPERTY_H
33 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_POINTSYMBOLIZERPROPERTY_H
34 
35 // TerraLib
36 #include "../Config.h"
37 
38 // Qt
39 #include <QWidget>
40 
41 namespace te
42 {
43 // Forward declarations
44  namespace se
45  {
46  class PointSymbolizer;
47  class Symbolizer;
48  }
49 
50  namespace qt
51  {
52  namespace widgets
53  {
54  class GraphicProperty;
55 
56  /*!
57  \class PointSymbolizerProperty
58 
59  \brief A widget used to define the point symbolizer
60  properties, such as:
61  - general
62  - mark
63  - basic fill
64  - basic stroke
65  - glyph
66 
67  */
68 
70  {
71  Q_OBJECT
72 
73  public:
74  /** @name Initializer Methods
75  * Methods related to instantiation and destruction.
76  */
77  //@{
78 
79  /*! \brief Constructor */
80  PointSymbolizerProperty(QWidget* parent);
81 
82  /*! \brief Destructor. */
84 
85  //@}
86 
87  /*!
88  \brief Sets a point symbolizer element to this widget.
89 
90  \param symb A valid point symbolizer element.
91 
92  \note The widget will NOT take the ownership of the given symbolizer.
93  \note The widget form will be update based on given symbolizer parameters.
94  */
95  void setSymbolizer(te::se::PointSymbolizer* symb);
96 
97  /*!
98  \brief Gets the configured point symbolizer element.
99 
100  \return The configured point symbolizer element.
101 
102  \note The caller will take the ownership of the returned symbolizer.
103  */
104  te::se::Symbolizer* getSymbolizer() const;
105 
106  protected slots:
107 
108  void onGraphicChanged();
109 
110  signals:
111 
112  /*! This signal is emitted when the internal point symbolizer element is changed. */
113  void symbolizerChanged();
114 
115  protected:
116 
118 
120 
121  te::se::PointSymbolizer* m_symb; //!< Point symbolizer element that will be configured by this widget.
122  };
123  }
124  }
125 }
126 
127 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_POINTSYMBOLIZERPROPERTY_H
A Symbolizer describes how a feature is to appear on a map.
Definition: Symbolizer.h:80
te::qt::widgets::GraphicProperty * m_graphProp
A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.
A widget used to define the point symbolizer properties, such as:
A widget used to define the general properties of a se object.
URI C++ Library.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
te::se::PointSymbolizer * m_symb
Point symbolizer element that will be configured by this widget.