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"
39 
40 class QWidget;
41 class QtProperty;
42 
43 namespace te
44 {
45 // Forward declarations
46  namespace se
47  {
48  class Symbolizer;
49  }
50 
51  namespace qt
52  {
53  namespace widgets
54  {
55  class GraphicFillPropertyItem;
56 
57  /*!
58  \class PointSymbolizerProperty
59 
60  \brief A widget used to define the point symbolizer
61  properties, such as:
62  - general
63  - mark
64  - basic fill
65  - basic stroke
66  - glyph
67 
68  */
69 
71  {
72  Q_OBJECT
73 
74  public:
75  /** @name Initializer Methods
76  * Methods related to instantiation and destruction.
77  */
78  //@{
79 
80  /*! \brief Constructor */
81  PointSymbolizerProperty(QWidget* parent);
82 
83  /*! \brief Destructor. */
85 
86  //@}
87 
88  /*!
89  \brief Sets a point symbolizer element to this widget.
90 
91  \param symb A valid point symbolizer element.
92 
93  \note The widget will NOT take the ownership of the given symbolizer.
94  \note The widget form will be update based on given symbolizer parameters.
95  */
96  virtual void setSymbolizer(const te::se::Symbolizer* symb) override;
97 
98  /*!
99  \brief Gets the configured point symbolizer element.
100 
101  \return The configured point symbolizer element.
102 
103  \note The caller will take the ownership of the returned symbolizer.
104  */
105  virtual te::se::Symbolizer* getSymbolizer() const override;
106 
107  virtual void handleValueChanged(QtProperty* qProperty, const QVariant& qVariant) override;
108 
109  protected:
110 
112  };
113  }
114  }
115 }
116 
117 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_POINTSYMBOLIZERPROPERTY_H
A parent widget used to define the symbolizer properties.
A bse item to represent the style items in property listener.
A parent widget used to define the symbolizer properties.
A widget used to define the graphic fill se object.
A widget used to define the point symbolizer properties, such as:
virtual te::se::Symbolizer * getSymbolizer() const override
Gets the configured point symbolizer element.
PointSymbolizerProperty(QWidget *parent)
Constructor.
virtual void setSymbolizer(const te::se::Symbolizer *symb) override
Sets a point symbolizer element to this widget.
te::qt::widgets::GraphicFillPropertyItem * m_graphProp
virtual void handleValueChanged(QtProperty *qProperty, const QVariant &qVariant) override
< This function will be called every time a value has changed
A widget used to define the main property items listener.
A Symbolizer describes how a feature is to appear on a map.
Definition: Symbolizer.h:81
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63