GeometricOpOutputWizardPage.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/vp/qt/BasicGeometricOpWizardPage.h
22 
23  \brief This file defines a class for a Basic Geometric Operation Wizard Page.
24 */
25 
26 #ifndef __TERRALIB_VP_INTERNAL_GEOMETRICOPOUTPUTWIZARDPAGE_H
27 #define __TERRALIB_VP_INTERNAL_GEOMETRICOPOUTPUTWIZARDPAGE_H
28 
29 // TerraLib
30 #ifndef Q_MOC_RUN
31 #include "../../dataaccess/datasource/DataSourceInfo.h"
32 #include "../../maptools/AbstractLayer.h"
33 #endif
34 #include "../Config.h"
35 #include "../Enums.h"
36 
37 // STL
38 #include <memory>
39 
40 // Qt
41 #include <QWizardPage>
42 
43 // Forward declaration
44 namespace Ui { class GeometricOpOutputWizardPageForm; }
45 
46 namespace te
47 {
48  namespace vp
49  {
50  /*!
51  \class GeometricOpOutputWizardPage
52 
53  \brief This class is GUI used to define the basic geometric operator parameters for the VP operation.
54  */
55  class TEVPEXPORT GeometricOpOutputWizardPage : public QWizardPage
56  {
57  Q_OBJECT
58 
59  public:
60 
61  GeometricOpOutputWizardPage(QWidget* parent = 0);
62 
64 
65  public:
66 
67  bool hasConvexHull();
68 
69  bool hasCentroid();
70 
71  bool hasMBR();
72 
73  bool hasArea();
74 
75  bool hasLine();
76 
77  bool hasPerimeter();
78 
79  std::string getAttribute();
80 
81  void setAttributes(std::vector<std::string> attributes);
82 
83  te::vp::GeometricOpObjStrategy getObjectStrategy();
84 
85  std::string getOutDsName();
86 
87  bool hasOutputLayer();
88 
89  bool getToFile();
90 
91  te::da::DataSourceInfoPtr getDsInfoPtr();
92 
93  std::string getPath();
94 
95  public slots:
96 
97  void onAllObjectsToggled();
98 
99  void onSimpleOperationToggled();
100 
101  void onAttributeOperationToggled();
102 
103  void onAttributeComboBoxChanged(int index);
104 
105  void onTargetDatasourceToolButtonPressed();
106 
107  void onTargetFileToolButtonPressed();
108 
109  private:
110 
111  std::auto_ptr<Ui::GeometricOpOutputWizardPageForm> m_ui;
112 
113  te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
114  std::string m_dsName;
115  bool m_toFile;
116  std::string m_attribute;
117  std::string m_path;
118 
119  };
120 
121  } // end namespace qt
122 } // end namespace te
123 
124 #endif // __TERRALIB_VP_INTERNAL_GEOMETRICOPOUTPUTWIZARDPAGE_H
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
This class is GUI used to define the basic geometric operator parameters for the VP operation...
GeometricOpObjStrategy
Defines the strategy used for the processing of the input geometries.
Definition: Enums.h:115
URI C++ Library.
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
std::auto_ptr< Ui::GeometricOpOutputWizardPageForm > m_ui
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr