MosaicWizardPage.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/qt/widgets/rp/MosaicWizardPage.h
22 
23  \brief This file defines a class for a Mosaic Wizard page.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_MOSAICWIZARDPAGE_H
27 #define __TERRALIB_QT_WIDGETS_RP_INTERNAL_MOSAICWIZARDPAGE_H
28 
29 // TerraLib
30 #include "../../../geometry/GTParameters.h"
31 #ifndef Q_MOC_RUN
32 #include "../../../maptools/AbstractLayer.h"
33 #include "../../../rp/GeoMosaic.h"
34 #include "../../../rp/SequenceMosaic.h"
35 #include "../../../rp/TiePointsMosaic.h"
36 #endif
37 #include "../Config.h"
38 
39 // STL
40 #include <memory>
41 
42 // Qt
43 #include <QWizardPage>
44 
45 
46 // Forward declaration
47 namespace Ui { class MosaicWizardPageForm; }
48 
49 namespace te
50 {
51  namespace qt
52  {
53  namespace widgets
54  {
55  class TiePointLocatorParametersWidget;
56 
57  /*!
58  \class MosaicWizardPage
59 
60  \brief This class is GUI used to define the mosaic parameters for the RP mosaic operation.
61  */
62  class TEQTWIDGETSEXPORT MosaicWizardPage : public QWizardPage
63  {
64  Q_OBJECT
65 
67  {
70  MOSAIC_SEQUENCE
71  };
72 
73  public:
74 
75  MosaicWizardPage(QWidget* parent = 0);
76 
78 
79  bool isComplete() const;
80 
81  public:
82 
83  bool isGeoMosaic();
84 
85  bool isTiePointMosaic();
86 
87  bool isSequenceMosaic();
88 
89  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
90 
91  te::rp::GeoMosaic::InputParameters getInputGeoParams();
92 
93  te::rp::GeoMosaic::OutputParameters getOutputGeoParams();
94 
96 
98 
99  te::rp::SequenceMosaic::InputParameters getInputSeqParams();
100 
101  te::rp::SequenceMosaic::OutputParameters getOutputSeqParams();
102 
103  te::map::AbstractLayerPtr getTiePointMosaicLayerA();
104 
105  te::map::AbstractLayerPtr getTiePointMosaicLayerB();
106 
107  public slots:
108 
109  void onTiePointsAcquiredToolButtonClicked();
110 
111  protected:
112 
113  void fillMosaicTypes();
114 
115  private:
116 
117  std::auto_ptr<Ui::MosaicWizardPageForm> m_ui;
118 
120 
121  std::list<te::map::AbstractLayerPtr> m_layerList;
122 
123  std::vector< std::vector< te::gm::GTParameters::TiePoint > > m_tiePoints; //!< Tie-points between each adjacent raster pair (te::gm::GTParameters::TiePoint::first are raster (with index i) lines/columns, te::gm::GTParameters::TiePoint::second are raster (with index I+1) lines/columns ,and so on).
124 
125  };
126 
127  } // end namespace widgets
128  } // end namespace qt
129 } // end namespace te
130 
131 #endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_MOSAICWIZARDPAGE_H
std::auto_ptr< Ui::MosaicWizardPageForm > m_ui
GeoMosaic input parameters.
Definition: GeoMosaic.h:56
std::list< te::map::AbstractLayerPtr > m_layerList
te::qt::widgets::TiePointLocatorParametersWidget * m_tiePointParameters
Tie Point parameters widget.
URI C++ Library.
This class is GUI used to define the mosaic parameters for the RP mosaic operation.
This class is used to define a widget for tie point parameters acquirement.
GeoMosaic output parameters.
Definition: GeoMosaic.h:100
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
std::vector< std::vector< te::gm::GTParameters::TiePoint > > m_tiePoints
Tie-points between each adjacent raster pair (te::gm::GTParameters::TiePoint::first are raster (with ...