CreateIsolinesDialog.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/mnt/qt/CreateIsolinesDialog.h
22 
23 \brief A dialog ISolines generation
24 */
25 
26 #ifndef __TERRALIB_MNT_INTERNAL_CREATEISOLINESDIALOG_H
27 #define __TERRALIB_MNT_INTERNAL_CREATEISOLINESDIALOG_H
28 
29 //terralib
30 #ifndef Q_MOC_RUN
31 #include "../../dataaccess/datasource/DataSourceInfo.h"
32 #include "../../maptools/AbstractLayer.h"
33 #endif
34 #include "../core/Config.h"
35 #include "../core/Enums.h"
36 
37 // STL
38 #include <list>
39 #include <map>
40 #include <memory>
41 
42 #undef _CRTDBG_MAP_ALLOC
43 // Qt
44 #include <QDialog>
45 
46 namespace Ui { class CreateIsolinesDialogForm; }
47 
48 namespace te
49 {
50  namespace mnt
51  {
52  class TEMNTEXPORT CreateIsolinesDialog : public QDialog
53  {
54  Q_OBJECT
55 
56  public:
57 
58  CreateIsolinesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
59 
61 
62  void setLayers(std::list<te::map::AbstractLayerPtr> layers);
63 
65 
66  void getMinMax(te::map::AbstractLayerPtr inputLayer, double &min, double &max);
67 
68  void setSRID(int newSRID);
69 
70  protected slots:
71 
73  void onInputComboBoxChanged(int index);
75  void onStepFixeEnabled(bool);
85 
86  private:
87 
88  std::unique_ptr<Ui::CreateIsolinesDialogForm> m_ui;
89 
90  te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
91  std::string m_outputArchive; //!< Archive information.
92  std::list<te::map::AbstractLayerPtr> m_layers; //!< List of layers.
95 
96  mntType m_inputType; //!< Input type (TIN, GRID)
97  double m_min;
98  double m_max;
99  double m_dummy;
100  bool m_toFile;
103 
104  };
105  } //mnt
106 } //te
107 
108 #endif //__TERRALIB_MNT_INTERNAL_CREATEISOLINESDIALOG_H
te::mnt::CreateIsolinesDialog::m_dummy
double m_dummy
Definition: CreateIsolinesDialog.h:99
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::mnt::CreateIsolinesDialog::setLayers
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
te::mnt::CreateIsolinesDialog::on_stepVariableraEnabled
void on_stepVariableraEnabled(bool)
te::mnt::CreateIsolinesDialog::m_ui
std::unique_ptr< Ui::CreateIsolinesDialogForm > m_ui
Definition: CreateIsolinesDialog.h:88
te::map::AbstractLayerPtr
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
Definition: AbstractLayer.h:626
te::da::DataSourceInfoPtr
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
Definition: DataSourceInfo.h:107
te::mnt::CreateIsolinesDialog::getMinMax
void getMinMax(te::map::AbstractLayerPtr inputLayer, double &min, double &max)
te::mnt::CreateIsolinesDialog::m_toFile
bool m_toFile
Definition: CreateIsolinesDialog.h:100
te::mnt::mntType
mntType
Definition: Enums.h:79
te::mnt::CreateIsolinesDialog::m_inputLayer
te::map::AbstractLayerPtr m_inputLayer
Input layer.
Definition: CreateIsolinesDialog.h:93
te::mnt::CreateIsolinesDialog::onStepFixeEnabled
void onStepFixeEnabled(bool)
te::mnt::CreateIsolinesDialog::m_min
double m_min
Definition: CreateIsolinesDialog.h:97
te::mnt::CreateIsolinesDialog::onTargetDatasourceToolButtonPressed
void onTargetDatasourceToolButtonPressed()
te::mnt::CreateIsolinesDialog::~CreateIsolinesDialog
~CreateIsolinesDialog()
te::mnt::CreateIsolinesDialog::onInputComboBoxChanged
void onInputComboBoxChanged(int index)
te::mnt::CreateIsolinesDialog::m_inputType
mntType m_inputType
Input type (TIN, GRID)
Definition: CreateIsolinesDialog.h:96
te::mnt::CreateIsolinesDialog::ondeleteallpushButtonClicked
void ondeleteallpushButtonClicked()
te::mnt::CreateIsolinesDialog::ondeletepushButtonClicked
void ondeletepushButtonClicked()
te::mnt::CreateIsolinesDialog
Definition: CreateIsolinesDialog.h:53
te::mnt::CreateIsolinesDialog::onSrsToolButtonClicked
void onSrsToolButtonClicked()
te::mnt::CreateIsolinesDialog::onOkPushButtonClicked
void onOkPushButtonClicked()
te::mnt::CreateIsolinesDialog::onInputLayerToolButtonClicked
void onInputLayerToolButtonClicked()
Ui
Definition: ConfigInputAddressDialog.h:44
te::mnt::CreateIsolinesDialog::onDummyLineEditEditingFinished
void onDummyLineEditEditingFinished()
te::mnt::CreateIsolinesDialog::m_outsrid
int m_outsrid
Definition: CreateIsolinesDialog.h:102
slots
#define slots
Definition: VirtualMachine.h:48
te::mnt::CreateIsolinesDialog::m_outputArchive
std::string m_outputArchive
Archive information.
Definition: CreateIsolinesDialog.h:91
te::mnt::CreateIsolinesDialog::m_hasDummy
bool m_hasDummy
Definition: CreateIsolinesDialog.h:101
te::mnt::CreateIsolinesDialog::m_layers
std::list< te::map::AbstractLayerPtr > m_layers
List of layers.
Definition: CreateIsolinesDialog.h:92
te::mnt::CreateIsolinesDialog::m_outputLayer
te::map::AbstractLayerPtr m_outputLayer
Generated Layer.
Definition: CreateIsolinesDialog.h:94
te::mnt::CreateIsolinesDialog::oninsertpushButtonClicked
void oninsertpushButtonClicked()
te::mnt::CreateIsolinesDialog::getLayer
te::map::AbstractLayerPtr getLayer()
te::mnt::CreateIsolinesDialog::onTargetFileToolButtonPressed
void onTargetFileToolButtonPressed()
te::mnt::CreateIsolinesDialog::m_outputDatasource
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
Definition: CreateIsolinesDialog.h:90
te::mnt::CreateIsolinesDialog::onCancelPushButtonClicked
void onCancelPushButtonClicked()
te::mnt::CreateIsolinesDialog::setSRID
void setSRID(int newSRID)
te::mnt::CreateIsolinesDialog::m_max
double m_max
Definition: CreateIsolinesDialog.h:98
te::mnt::CreateIsolinesDialog::CreateIsolinesDialog
CreateIsolinesDialog(QWidget *parent=0, Qt::WindowFlags f=0)
TEMNTEXPORT
#define TEMNTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:41