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