ShadedReliefWidget.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/ShadedReliefWidget.h
22 
23  \brief A widget used to build
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_SHADEDRELIEFWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_SHADEDRELIEFWIDGET_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 // Qt
33 #include <QWidget>
34 
35 // STL
36 #include <memory>
37 #include <string>
38 #include <vector>
39 
40 // Forward declaraion
41 namespace Ui { class ShadedReliefWidgetForm; }
42 
43 namespace te
44 {
45 // Forward declarations
46  namespace se
47  {
48  class ShadedRelief;
49  }
50 
51  namespace qt
52  {
53  namespace widgets
54  {
55 
56  /*!
57  \class ShadedReliefWidget
58 
59  \brief A dialog used to build a ShadedRelief element.
60  */
61  class TEQTWIDGETSEXPORT ShadedReliefWidget : public QWidget
62  {
63  Q_OBJECT
64 
65  public:
66 
67  /** @name Initializer Methods
68  * Methods related to instantiation and destruction.
69  */
70  //@{
71 
72  /*! \brief Constructs a ShadedReliefWidget dialog which is a child of parent, with widget flags set to f. */
73  ShadedReliefWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
74 
75  /*! \brief Destructor. */
77 
78  //@}
79 
80  public:
81 
82  void setShadedRelief(const te::se::ShadedRelief* sr);
83 
84  te::se::ShadedRelief* getShadedRelief() const;
85 
86  protected:
87 
88  /*! \brief Internal method to initialize the widget (e.g.: color, combos, icons, etc.) */
89  void initialize();
90 
91  /*! \brief Updates the widget form based on internal fill element. */
92  void updateUi();
93 
94  protected slots:
95 
96  void onBrightnessToggled(bool flag);
97 
98  void onFactorChanged(double value);
99 
100  signals:
101 
102 
103 
104  private:
105 
106  std::auto_ptr<Ui::ShadedReliefWidgetForm> m_ui; //!< Dialog form.
107  te::se::ShadedRelief* m_sr; //!< SE Shaded relief element.
108 
109  };
110 
111  } // end namespace widgets
112  } // end namespace qt
113 } // end namespace te
114 
115 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_SHADEDRELIEFWIDGET_H
te::se::ShadedRelief * m_sr
SE Shaded relief element.
A dialog used to build a ShadedRelief element.
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
std::auto_ptr< Ui::ShadedReliefWidgetForm > m_ui
Dialog form.
ShadedRelief specifies the application of relief shading (or "hill shading") to a DEM raster to give ...
Definition: ShadedRelief.h:58