GraphicFillPropertyItem.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/GraphicFillPropertyItem.h
22 
23  \brief A widget used to define the graphic fill se object.
24  */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICFILLPROPERTYITEM_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICFILLPROPERTYITEM_H
28 
29  // TerraLib
31 #include "../Config.h"
32 #include "../propertybrowser/AbstractPropertyItem.h"
33 
34 namespace te
35 {
36  // Forward declarations
37  namespace se
38  {
39  class Graphic;
40  }
41 
42  namespace qt
43  {
44  namespace widgets
45  {
46  class GroupPropertyItemHandler;
47  class MarkWellKnownPropertyItem;
48  class MarkGlyphPropertyItem;
49  class MarkExternalGraphicPropertyItem;
50 
51  /*!
52  \class GraphicFillPropertyItem
53 
54  \brief A widget used to define the graphic fill se object.
55 
56  - opacity
57  - size
58  - rotation
59  - well known
60  - glyph
61  - external graphic
62 
63  */
64 
66  {
67  Q_OBJECT
68 
69  public:
70  /** @name Initializer Methods
71  * Methods related to instantiation and destruction.
72  */
73  //@{
74 
75  /*! \brief Constructor */
76  GraphicFillPropertyItem(QtProperty* parent, QtTreePropertyBrowser* propertyBrowser, StylePropertyItemListener* listener, QColor color, QColor subColor, QString caption = tr("Graphic Fill"));
77 
78  /*! \brief Destructor. */
80 
81  //@}
82 
83  bool setGraphic(const te::se::Graphic* graphic);
84 
86 
87  protected slots:
88  void valueChanged(QtProperty* p, double value);
89 
90  protected:
91 
93 
94  QtProperty* m_sizeProperty;
95  QtProperty* m_angleProperty;
96  QtProperty* m_opacityProperty;
97 
101  };
102  }
103  }
104 }
105 
106 #endif //__TERRALIB_QT_WIDGETS_SE_INTERNAL_GRAPHICFILLPROPERTYITEM_H
A widget used to define the graphic fill se object.
te::qt::widgets::MarkGlyphPropertyItem * m_markGlyphProperty
te::qt::widgets::MarkExternalGraphicPropertyItem * m_markExternalGraphicProperty
bool setGraphic(const te::se::Graphic *graphic)
te::qt::widgets::MarkWellKnownPropertyItem * m_markWellKnownProperty
GraphicFillPropertyItem(QtProperty *parent, QtTreePropertyBrowser *propertyBrowser, StylePropertyItemListener *listener, QColor color, QColor subColor, QString caption=tr("Graphic Fill"))
Constructor.
virtual ~GraphicFillPropertyItem()
Destructor.
void valueChanged(QtProperty *p, double value)
te::se::Graphic * getGraphic() const
A widget used to define the graphic mark external graphic se object.
A widget used to define the main property items listener.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
Definition: Graphic.h:67
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