Loading...
Searching...
No Matches
ImageOutlineWidget.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/ImageOutlineWidget.h
22
23 \brief A widget used to build Symbolizer element.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_IMAGEOUTLINEWIDGET_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_IMAGEOUTLINEWIDGET_H
28
29// TerraLib
30#include "../Config.h"
31
32// Qt
33#include <QWidget>
34#include <QGridLayout>
35
36// STL
37#include <memory>
38#include <string>
39#include <vector>
40
41// Forward declaraion
42namespace Ui { class ImageOutlineWidgetForm; }
43
44namespace te
45{
46// Forward declarations
47 namespace se
48 {
49 class Symbolizer;
50 class ImageOutline;
51 }
52
53 namespace qt
54 {
55 namespace widgets
56 {
57 class PolygonSymbolizerWidget;
58 class SymbolPreviewWidget;
59
60 /*!
61 \class ImageOutlineWidget
62
63 \brief A dialog used to build a ImageOutlineWidget element.
64 */
66 {
67 Q_OBJECT
68
69 public:
70
71 /** @name Initializer Methods
72 * Methods related to instantiation and destruction.
73 */
74 //@{
75
76 /*! \brief Constructs a ImageOutlineWidget dialog which is a child of parent, with widget flags set to f. */
77 ImageOutlineWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
78
79 /*! \brief Destructor. */
81
82 //@}
83
84 public:
85
87
89
90 protected:
91
92 /*! \brief Updates the widget form based on internal mark element. */
93 void updateUi();
94
96
97 protected slots:
98
100
102
104
105 signals:
106
107
108
109 private:
110
111 std::unique_ptr<Ui::ImageOutlineWidgetForm> m_ui; //!< Dialog form.
112
114 te::qt::widgets::SymbolPreviewWidget* m_preview; //!< Preview Widget used to visualize the symbol.
115
116 QGridLayout* m_layout; //!< Qt Layout object
117
118 te::se::ImageOutline* m_io; //!< SE Image Outline element.
119
120 };
121
122 } // end namespace widgets
123 } // end namespace qt
124} // end namespace te
125
126#endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_IMAGEOUTLINEWIDGET_H
A dialog used to build a ImageOutlineWidget element.
void setImageOutline(const te::se::ImageOutline *io)
std::unique_ptr< Ui::ImageOutlineWidgetForm > m_ui
Dialog form.
void updateUi()
Updates the widget form based on internal mark element.
te::se::ImageOutline * m_io
SE Image Outline element.
te::qt::widgets::PolygonSymbolizerWidget * m_psWidget
Polygon Symbolizer UI.
te::se::ImageOutline * getImageOutline() const
QGridLayout * m_layout
Qt Layout object.
ImageOutlineWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a ImageOutlineWidget dialog which is a child of parent, with widget flags set to f.
te::qt::widgets::SymbolPreviewWidget * m_preview
Preview Widget used to visualize the symbol.
A widget used to build a polygon symbolizer element.
A widget used to preview symbol elements.
ImageOutline specifies how individual source rasters in a multi-raster set (such as a set of satellit...
Definition: ImageOutline.h:54
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