Loading...
Searching...
No Matches
PointSymbolizerWidget.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/PointSymbolizerWidget.h
22
23 \brief A widget used to build a point symbolizer element.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_POINTSYMBOLIZERWIDGET_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_POINTSYMBOLIZERWIDGET_H
28
29// TerraLib
30#include "../Config.h"
31
32// Qt
33#include <QWidget>
34
35namespace te
36{
37// Forward declarations
38 namespace se
39 {
40 class PointSymbolizer;
41 class Symbolizer;
42 }
43
44 namespace qt
45 {
46 namespace widgets
47 {
48// Forward declarations
49 class GraphicSelectorWidget;
50
51 /*!
52 \class PointSymbolizerWidget
53
54 \brief A widget used to build a point symbolizer element.
55 */
57 {
58 Q_OBJECT
59
60 public:
61
62 /** @name Initializer Methods
63 * Methods related to instantiation and destruction.
64 */
65 //@{
66
67 /*! \brief Constructs a point symbolizer widget which is a child of parent, with widget flags set to f. */
68 PointSymbolizerWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
69
70 /*! \brief Destructor. */
72
73 //@}
74
75 public:
76
77 /*!
78 \brief Sets a point symbolizer element to this widget.
79
80 \param symb A valid point symbolizer element.
81
82 \note The widget will NOT take the ownership of the given symbolizer.
83 \note The widget form will be update based on given symbolizer parameters.
84 */
86
87 /*!
88 \brief Gets the configured point symbolizer element.
89
90 \return The configured point symbolizer element.
91
92 \note The caller will take the ownership of the returned symbolizer.
93 */
95
96 protected:
97
98 /*! \brief Updates the widget form based on internal point symbolizer element. */
99 void updateUi();
100
101 protected slots:
102
104
105 signals:
106
107 /*! This signal is emitted when the internal point symbolizer element is changed. */
109
110 private:
111
112 GraphicSelectorWidget* m_graphicSelector; //!< Graphic selector use to select the point symbolizer graphic element.
113 te::se::PointSymbolizer* m_symb; //!< Point symbolizer element that will be configured by this widget.
114 };
115
116 } // end namespace widgets
117 } // end namespace qt
118} // end namespace te
119
120#endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_POINTSYMBOLIZERWIDGET_H
A widget used to select a graphic element.
A widget used to build a point symbolizer element.
te::se::Symbolizer * getSymbolizer() const
Gets the configured point symbolizer element.
te::se::PointSymbolizer * m_symb
Point symbolizer element that will be configured by this widget.
void updateUi()
Updates the widget form based on internal point symbolizer element.
void setSymbolizer(const te::se::PointSymbolizer *symb)
Sets a point symbolizer element to this widget.
PointSymbolizerWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a point symbolizer widget which is a child of parent, with widget flags set to f.
GraphicSelectorWidget * m_graphicSelector
Graphic selector use to select the point symbolizer graphic element.
A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.
A Symbolizer describes how a feature is to appear on a map.
Definition: Symbolizer.h:81
TerraLib.
#define slots
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63