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
45 namespace Ui { class SegmenterAdvancedOptionsWizardPageForm; }
46 
47 namespace 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 
70  SegmenterAdvancedOptionsWizardPage(QWidget* parent = 0);
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
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::SegmenterAdvancedOptionsWizardPage
SegmenterAdvancedOptionsWizardPage(QWidget *parent=0)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::m_ui
std::unique_ptr< Ui::SegmenterAdvancedOptionsWizardPageForm > m_ui
Definition: SegmenterAdvancedOptionsWizardPage.h:107
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::onEnableBlockProcessingCheckBoxToggled
void onEnableBlockProcessingCheckBoxToggled(bool checked)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::setOutputLayerName
void setOutputLayerName(const std::string &name)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::m_path
std::string m_path
Definition: SegmenterAdvancedOptionsWizardPage.h:113
te::map::AbstractLayerPtr
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
Definition: AbstractLayer.h:626
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::createDataSetType
std::unique_ptr< te::da::DataSetType > createDataSetType(std::string dataSetName, int srid)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::~SegmenterAdvancedOptionsWizardPage
~SegmenterAdvancedOptionsWizardPage()
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::setOutputLayerPath
void setOutputLayerPath(const std::string &path)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::saveDataSet
void saveDataSet(te::mem::DataSet *dataSet, te::da::DataSetType *dsType, te::da::DataSourcePtr ds, std::string dataSetName)
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::createDataSet
std::unique_ptr< te::mem::DataSet > createDataSet(te::da::DataSetType *dsType, const std::vector< te::gm::Geometry * > &geoms, std::vector< double > &geomsValues)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::getForm
Ui::SegmenterAdvancedOptionsWizardPageForm * getForm() const
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::m_name
std::string m_name
Definition: SegmenterAdvancedOptionsWizardPage.h:115
Ui
Definition: ConfigInputAddressDialog.h:44
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::m_layer
te::map::AbstractLayerPtr m_layer
Definition: SegmenterAdvancedOptionsWizardPage.h:109
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::set
void set(te::map::AbstractLayerPtr layer)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage
This class is GUI used to define the segmenter advanced options parameters for the RP constast operat...
Definition: SegmenterAdvancedOptionsWizardPage.h:65
slots
#define slots
Definition: VirtualMachine.h:48
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::onEnableThreadedProcessingcheckBoxToggled
void onEnableThreadedProcessingcheckBoxToggled(bool checked)
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::m_outputLayer
te::map::AbstractLayerPtr m_outputLayer
Definition: SegmenterAdvancedOptionsWizardPage.h:111
te::da::DataSourcePtr
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::applyVectorization
void applyVectorization()
te::da::DataSetType
A class that models the description of a dataset.
Definition: DataSetType.h:73
te::qt::widgets::SegmenterAdvancedOptionsWizardPage::getOutputLayer
te::map::AbstractLayerPtr getOutputLayer()
te::mem::DataSet
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
Definition: DataSet.h:66