All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GeometricOpWizardPage.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/GeometricOpWizardPage.h
22 
23  \brief This file defines a class for Basic Geometric Operation Wizard Page.
24 */
25 
26 #ifndef __TERRALIB_VP_INTERNAL_GEOMETRICOPWIZARDPAGE_H
27 #define __TERRALIB_VP_INTERNAL_GEOMETRICOPWIZARDPAGE_H
28 
29 // TerraLib
30 #include "../../maptools/AbstractLayer.h"
31 #include "../../qt/widgets/utils/DoubleListWidget.h"
32 #include "../Config.h"
33 
34 // STL
35 #include <memory>
36 
37 // Qt
38 #include <QWizardPage>
39 
40 // Forward declaration
41 namespace Ui { class GeometricOpWizardPageForm; }
42 
43 namespace te
44 {
45  namespace vp
46  {
47  //class RasterNavigatorWidget;
48 
49  /*!
50  \class GeometricWizardPage
51 
52  \brief This class is GUI used to define the basic geometric operator parameters for the VP operation.
53  */
54  class TEVPEXPORT GeometricOpWizardPage : public QWizardPage
55  {
56  Q_OBJECT
57 
58  public:
59 
60  GeometricOpWizardPage(QWidget* parent = 0);
61 
63 
64  public:
65 
66  /*!
67  \brief This method is used to set the selected layer for segmenter operation
68 
69  \param layer The layer ptr
70 
71  \note This layer MUST HAVE a valid geometry object.
72  */
73  void setLayer(te::map::AbstractLayerPtr layer);
74 
75  te::map::AbstractLayerPtr getLayer();
76 
77  std::vector<std::string> getSelectedProps();
78 
79  public slots:
80 
81  protected:
82 
83  void loadAttributes();
84 
85  //void listBands();
86 
87  private:
88 
89  std::auto_ptr<Ui::GeometricOpWizardPageForm> m_ui;
90  std::auto_ptr<te::qt::widgets::DoubleListWidget> m_widget;
92  std::vector<std::string> m_props;
93  };
94 
95  } // end namespace qt
96 } // end namespace te
97 
98 #endif // __TERRALIB_VP_INTERNAL_GEOMETRICOPWIZARDPAGE_H
std::vector< std::string > m_props
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:64
std::auto_ptr< Ui::GeometricOpWizardPageForm > m_ui
std::auto_ptr< te::qt::widgets::DoubleListWidget > m_widget
te::map::AbstractLayerPtr m_layer
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr