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 
66  public:
67 
69  {
72  MOSAIC_SEQUENCE
73  };
74 
75  MosaicWizardPage(QWidget* parent = 0);
76 
78 
79  bool isComplete() const;
80 
81  bool isGeoMosaic();
82 
84 
86 
87  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
88 
90 
92 
94 
96 
98 
100 
102 
104 
105  void getTargetMeans( std::vector< double >& targetMeans );
106 
107  void getTargetStdDevs( std::vector< double >& targetStdDevs );
108 
109  public slots:
110 
112 
113  protected:
114 
116 
117  protected slots:
118 
119  void addMeanValuePushButtonClicked(bool checked);
120 
122 
123  void addStdDevPushButtonlicked(bool checked);
124 
125  void removeStdDevPushButtonlicked(bool checked);
126 
127  private:
128 
129  std::unique_ptr<Ui::MosaicWizardPageForm> m_ui;
130 
132 
133  std::list<te::map::AbstractLayerPtr> m_layerList;
134 
135  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).
136 
137  };
138 
139  } // end namespace widgets
140  } // end namespace qt
141 } // end namespace te
142 
143 #endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_MOSAICWIZARDPAGE_H
te::qt::widgets::MosaicWizardPage::~MosaicWizardPage
~MosaicWizardPage()
te::qt::widgets::MosaicWizardPage::isSequenceMosaic
bool isSequenceMosaic()
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::qt::widgets::MosaicWizardPage::m_tiePoints
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 ...
Definition: MosaicWizardPage.h:135
te::qt::widgets::MosaicWizardPage::MOSAIC_TIEPOINT
@ MOSAIC_TIEPOINT
Definition: MosaicWizardPage.h:71
te::map::AbstractLayerPtr
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
Definition: AbstractLayer.h:626
te::qt::widgets::MosaicWizardPage::getTiePointMosaicLayerB
te::map::AbstractLayerPtr getTiePointMosaicLayerB()
te::qt::widgets::MosaicWizardPage::m_ui
std::unique_ptr< Ui::MosaicWizardPageForm > m_ui
Definition: MosaicWizardPage.h:129
te::qt::widgets::MosaicWizardPage::addMeanValuePushButtonClicked
void addMeanValuePushButtonClicked(bool checked)
te::qt::widgets::MosaicWizardPage::MosaicTypes
MosaicTypes
Definition: MosaicWizardPage.h:69
te::qt::widgets::MosaicWizardPage::removeMeanValuePushButtonClicked
void removeMeanValuePushButtonClicked(bool checked)
te::qt::widgets::MosaicWizardPage::removeStdDevPushButtonlicked
void removeStdDevPushButtonlicked(bool checked)
te::qt::widgets::MosaicWizardPage::getTargetStdDevs
void getTargetStdDevs(std::vector< double > &targetStdDevs)
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
te::qt::widgets::MosaicWizardPage::isGeoMosaic
bool isGeoMosaic()
te::qt::widgets::MosaicWizardPage::getInputTPParams
te::rp::TiePointsMosaic::InputParameters getInputTPParams()
te::qt::widgets::MosaicWizardPage::getTiePointMosaicLayerA
te::map::AbstractLayerPtr getTiePointMosaicLayerA()
te::qt::widgets::MosaicWizardPage::getOutputTPParams
te::rp::TiePointsMosaic::OutputParameters getOutputTPParams()
te::rp::TiePointsMosaic::InputParameters
Mosaic input parameters.
Definition: TiePointsMosaic.h:59
te::qt::widgets::MosaicWizardPage::onTiePointsAcquiredToolButtonClicked
void onTiePointsAcquiredToolButtonClicked()
Ui
Definition: ConfigInputAddressDialog.h:44
te::qt::widgets::MosaicWizardPage::isComplete
bool isComplete() const
te::rp::GeoMosaic::OutputParameters
GeoMosaic output parameters.
Definition: GeoMosaic.h:119
te::qt::widgets::MosaicWizardPage::setList
void setList(std::list< te::map::AbstractLayerPtr > &layerList)
te::qt::widgets::MosaicWizardPage::m_tiePointParameters
te::qt::widgets::TiePointLocatorParametersWidget * m_tiePointParameters
Tie Point parameters widget.
Definition: MosaicWizardPage.h:131
slots
#define slots
Definition: VirtualMachine.h:48
te::rp::SequenceMosaic::OutputParameters
Mosaic output parameters.
Definition: SequenceMosaic.h:138
te::rp::GeoMosaic::InputParameters
GeoMosaic input parameters.
Definition: GeoMosaic.h:58
te::qt::widgets::MosaicWizardPage::fillMosaicTypes
void fillMosaicTypes()
te::rp::TiePointsMosaic::OutputParameters
Mosaic output parameters.
Definition: TiePointsMosaic.h:119
te::qt::widgets::MosaicWizardPage::getOutputSeqParams
te::rp::SequenceMosaic::OutputParameters getOutputSeqParams()
te::qt::widgets::TiePointLocatorParametersWidget
This class is used to define a widget for tie point parameters acquirement.
Definition: TiePointLocatorParametersWidget.h:55
te::qt::widgets::MosaicWizardPage::m_layerList
std::list< te::map::AbstractLayerPtr > m_layerList
Definition: MosaicWizardPage.h:133
te::qt::widgets::MosaicWizardPage
This class is GUI used to define the mosaic parameters for the RP mosaic operation.
Definition: MosaicWizardPage.h:63
te::qt::widgets::MosaicWizardPage::isTiePointMosaic
bool isTiePointMosaic()
te::qt::widgets::MosaicWizardPage::MOSAIC_GEO
@ MOSAIC_GEO
Definition: MosaicWizardPage.h:70
te::qt::widgets::MosaicWizardPage::MosaicWizardPage
MosaicWizardPage(QWidget *parent=0)
te::qt::widgets::MosaicWizardPage::addStdDevPushButtonlicked
void addStdDevPushButtonlicked(bool checked)
te::qt::widgets::MosaicWizardPage::getInputGeoParams
te::rp::GeoMosaic::InputParameters getInputGeoParams()
te::qt::widgets::MosaicWizardPage::getTargetMeans
void getTargetMeans(std::vector< double > &targetMeans)
te::qt::widgets::MosaicWizardPage::getOutputGeoParams
te::rp::GeoMosaic::OutputParameters getOutputGeoParams()
te::rp::SequenceMosaic::InputParameters
Mosaic input parameters.
Definition: SequenceMosaic.h:59
te::qt::widgets::MosaicWizardPage::getInputSeqParams
te::rp::SequenceMosaic::InputParameters getInputSeqParams()