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 #include "../../dataaccess/datasource/DataSourceInfo.h"
31 #include "../../maptools/AbstractLayer.h"
32 #include "../../qt/widgets/layer/search/LayerSearchWizardPage.h"
33 #include "../Config.h"
34 #include "../Enums.h"
35 
36 // STL
37 #include <memory>
38 
39 // Qt
40 #include <QWizard>
41 
42 namespace te
43 {
44  namespace vp
45  {
46  class GeometricOpWizardPage;
47  class GeometricOpOutputWizardPage;
48 
49  /*!
50  \class GeometricOpWizard
51 
52  \brief This class is GUI used to define the wizard for the VP geometric operation.
53  */
54  class TEVPEXPORT GeometricOpWizard : public QWizard
55  {
56  Q_OBJECT
57 
58  public:
59 
60  GeometricOpWizard(QWidget* parent);
61 
63 
64  public:
65 
66  virtual bool validateCurrentPage();
67 
68  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
69 
70  void setLayer(te::map::AbstractLayerPtr layer);
71 
72  te::map::AbstractLayerPtr getInLayer();
73 
74  std::vector<te::map::AbstractLayerPtr> getOutLayer();
75 
76  protected:
77 
78  void addPages();
79 
80  bool execute();
81 
82  private:
83 
84  std::auto_ptr<te::vp::GeometricOpWizardPage> m_geomOpPage;
85  std::auto_ptr<te::vp::GeometricOpOutputWizardPage> m_geomOpOutputPage;
86  std::auto_ptr<te::qt::widgets::LayerSearchWizardPage> m_layerSearchPage;
87 
89  te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
90  std::vector<te::map::AbstractLayerPtr> m_outLayer;
91  std::vector<te::vp::GeometricOperation> m_ops;
92  std::string m_attribute;
93 
95  };
96  } // end namespace vp
97 } // end namespace te
98 
99 #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