GeometricOpWizard.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/GeometricOpWizard.h
22 
23  \brief A Qt dialog that allows users to run the basic geometric operations defined by VP module.
24 */
25 
26 #ifndef __TERRALIB_VP_INTERNAL_GEOMETRICOPWIZARD_H
27 #define __TERRALIB_VP_INTERNAL_GEOMETRICOPWIZARD_H
28 
29 // TerraLib
30 #ifndef Q_MOC_RUN
31 #include "../../dataaccess/datasource/DataSourceInfo.h"
32 #include "../../maptools/AbstractLayer.h"
33 #include "../../qt/widgets/layer/search/LayerSearchWizardPage.h"
34 #endif
35 #include "../Config.h"
36 #include "../Enums.h"
37 
38 // STL
39 #include <memory>
40 
41 // Qt
42 #include <QWizard>
43 
44 namespace te
45 {
46  namespace vp
47  {
48  class GeometricOpWizardPage;
49  class GeometricOpOutputWizardPage;
50 
51  /*!
52  \class GeometricOpWizard
53 
54  \brief This class is GUI used to define the wizard for the VP geometric operation.
55  */
56  class TEVPEXPORT GeometricOpWizard : public QWizard
57  {
58  Q_OBJECT
59 
60  public:
61 
62  GeometricOpWizard(QWidget* parent);
63 
65 
66  public:
67 
68  virtual bool validateCurrentPage();
69 
70  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
71 
72  void setLayer(te::map::AbstractLayerPtr layer);
73 
74  te::map::AbstractLayerPtr getInLayer();
75 
76  std::vector<te::map::AbstractLayerPtr> getOutLayer();
77 
78  protected:
79 
80  void addPages();
81 
82  bool execute();
83 
84  private:
85 
86  std::auto_ptr<te::vp::GeometricOpWizardPage> m_geomOpPage;
87  std::auto_ptr<te::vp::GeometricOpOutputWizardPage> m_geomOpOutputPage;
88  std::auto_ptr<te::qt::widgets::LayerSearchWizardPage> m_layerSearchPage;
89 
91  te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
92  std::vector<te::map::AbstractLayerPtr> m_outLayer;
93  std::vector<te::vp::GeometricOperation> m_ops;
94  std::string m_attribute;
95 
97  };
98  } // end namespace vp
99 } // end namespace te
100 
101 #endif // __TERRALIB_VP_INTERNAL_GEOMETRICOPWIZARD_H
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
std::vector< te::map::AbstractLayerPtr > m_outLayer
std::auto_ptr< te::vp::GeometricOpWizardPage > m_geomOpPage
URI C++ Library.
te::map::AbstractLayerPtr m_inLayer
std::vector< te::vp::GeometricOperation > m_ops
std::auto_ptr< te::qt::widgets::LayerSearchWizardPage > m_layerSearchPage
This class is GUI used to define the wizard for the VP geometric operation.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
std::auto_ptr< te::vp::GeometricOpOutputWizardPage > m_geomOpOutputPage
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr