Loading...
Searching...
No Matches
SegmenterAdvancedOptionsWizardPage.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/SegmenterAdvancedOptionsWizardPage.h
22
23 \brief This file defines a class for a Segmenter Advanced Options Wizard page.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_SEGMENTERADVANCEDOPTIONSWIZARDPAGE_H
27#define __TERRALIB_QT_WIDGETS_RP_INTERNAL_SEGMENTERADVANCEDOPTIONSWIZARDPAGE_H
28
29// TerraLib
30#ifndef Q_MOC_RUN
31#include "../../../dataaccess/datasource/DataSource.h"
32#include "../../../maptools/AbstractLayer.h"
33
34#endif
35#include "../Config.h"
36
37// STL
38#include <memory>
39#include <vector>
40
41// Qt
42#include <QWizardPage>
43
44// Forward declaration
45namespace Ui { class SegmenterAdvancedOptionsWizardPageForm; }
46
47namespace te
48{
49
50 //forward declarations
51 namespace da { class DataSetType; }
52 namespace gm { class Geometry; }
53 namespace mem { class DataSet; }
54
55 namespace qt
56 {
57 namespace widgets
58 {
59 /*!
60 \class SegmenterAdvancedOptionsWizardPage
61
62 \brief This class is GUI used to define the segmenter advanced options parameters for the RP constast operation.
63 */
65 {
66 Q_OBJECT
67
68 public:
69
71
73
74 public:
75
76 Ui::SegmenterAdvancedOptionsWizardPageForm* getForm() const;
77
79
81
82 void setOutputLayerPath(const std::string& path);
83
84 void setOutputLayerName(const std::string& name);
85
87
88 public slots:
89
91
93
94 protected:
95
96 /*! Function used to create the output dataset type */
97 std::unique_ptr<te::da::DataSetType> createDataSetType(std::string dataSetName, int srid);
98
99 /*! Function used to create the output data */
100 std::unique_ptr<te::mem::DataSet> createDataSet(te::da::DataSetType* dsType, const std::vector<te::gm::Geometry*>& geoms, std::vector< double >& geomsValues );
101
102 /*! Function used to save the output dataset */
103 void saveDataSet(te::mem::DataSet* dataSet, te::da::DataSetType* dsType, te::da::DataSourcePtr ds, std::string dataSetName);
104
105 private:
106
107 std::unique_ptr<Ui::SegmenterAdvancedOptionsWizardPageForm> m_ui;
108
110
112
113 std::string m_path;
114
115 std::string m_name;
116 };
117
118 } // end namespace widgets
119 } // end namespace qt
120} // end namespace te
121
122#endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_SEGMENTERADVANCEDOPTIONSWIZARDPAGE_H
A class that models the description of a dataset.
Definition: DataSetType.h:73
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
Definition: DataSet.h:66
This class is GUI used to define the segmenter advanced options parameters for the RP constast operat...
void set(te::map::AbstractLayerPtr layer)
void setOutputLayerPath(const std::string &path)
std::unique_ptr< te::da::DataSetType > createDataSetType(std::string dataSetName, int srid)
void setOutputLayerName(const std::string &name)
Ui::SegmenterAdvancedOptionsWizardPageForm * getForm() const
void saveDataSet(te::mem::DataSet *dataSet, te::da::DataSetType *dsType, te::da::DataSourcePtr ds, std::string dataSetName)
std::unique_ptr< te::mem::DataSet > createDataSet(te::da::DataSetType *dsType, const std::vector< te::gm::Geometry * > &geoms, std::vector< double > &geomsValues)
std::unique_ptr< Ui::SegmenterAdvancedOptionsWizardPageForm > m_ui
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
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