Loading...
Searching...
No Matches
SegmenterWizardPage.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/rp/SegmenterWizardPage.h
22
23 \brief This file defines a class for a Segmenter Wizard page.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_SEGMENTERWIZARDPAGE_H
27#define __TERRALIB_QT_WIDGETS_RP_INTERNAL_SEGMENTERWIZARDPAGE_H
28
29// TerraLib
30#ifndef Q_MOC_RUN
31#include "../../../maptools/AbstractLayer.h"
32#include "../../../rp/Segmenter.h"
33#endif
34
35#include "../Config.h"
36
37// STL
38#include <memory>
39
40// Qt
41#include <QWizardPage>
42
43// Forward declaration
44namespace Ui { class SegmenterWizardPageForm; }
45
46namespace te
47{
48 namespace qt
49 {
50 namespace widgets
51 {
52 class RasterNavigatorWidget;
53
54 /*!
55 \class SegmenterWizardPage
56
57 \brief This class is GUI used to define the segmenter parameters for the RP constast operation.
58 */
59 class TEQTWIDGETSEXPORT SegmenterWizardPage : public QWizardPage
60 {
61 Q_OBJECT
62
63 public:
64
65 SegmenterWizardPage(QWidget* parent = 0);
66
68
69 bool isComplete() const;
70
71 public:
72
73 /*!
74 \brief This method is used to set the selected layer for segmenter operation
75
76 \param layer The layer ptr
77
78 \note This layer MUST HAVE a valid raster object.
79 */
81
83
85
87
88
89 public slots:
90
92
93 void apply();
94
95 protected:
96
98
99 void listBands();
100
101 private:
102
103 std::unique_ptr<Ui::SegmenterWizardPageForm> m_ui;
104 std::unique_ptr<te::qt::widgets::RasterNavigatorWidget> m_navigator;
105 std::unique_ptr<te::rst::Raster> m_inputRst;
107 };
108
109 } // end namespace widgets
110 } // end namespace qt
111} // end namespace te
112
113#endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_SEGMENTERWIZARDPAGE_H
This class is GUI used to define the segmenter parameters for the RP constast operation.
te::rp::Segmenter::InputParameters getInputParams()
std::unique_ptr< te::qt::widgets::RasterNavigatorWidget > m_navigator
te::map::AbstractLayerPtr get()
void set(te::map::AbstractLayerPtr layer)
This method is used to set the selected layer for segmenter operation.
std::unique_ptr< Ui::SegmenterWizardPageForm > m_ui
SegmenterWizardPage(QWidget *parent=0)
te::rp::Segmenter::OutputParameters getOutputParams()
void onStrategyTypeComboBoxActivated(int index)
std::unique_ptr< te::rst::Raster > m_inputRst
Segmenter Input Parameters.
Definition: Segmenter.h:82
Segmenter Output Parameters.
Definition: Segmenter.h:153
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
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