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 
64  te::map::AbstractLayerPtr getLayer();
65 
66  void getMinMax(te::map::AbstractLayerPtr inputLayer, double &min, double &max);
67 
68  void setSRID(int newSRID);
69 
70  protected slots:
71 
72  void onInputLayerToolButtonClicked();
73  void onInputComboBoxChanged(int index);
74  void onDummyLineEditEditingFinished();
75  void onStepFixeEnabled(bool);
76  void on_stepVariableraEnabled(bool);
77  void oninsertpushButtonClicked();
78  void ondeletepushButtonClicked();
79  void ondeleteallpushButtonClicked();
80  void onTargetDatasourceToolButtonPressed();
81  void onTargetFileToolButtonPressed();
82  void onOkPushButtonClicked();
83  void onCancelPushButtonClicked();
84  void onSrsToolButtonClicked();
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
#define slots
mntType m_inputType
Input type (TIN, GRID)
#define TEMNTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:41
std::string m_outputArchive
Archive information.
te::map::AbstractLayerPtr m_outputLayer
Generated Layer.
TEMNTEXPORT void getMinMax(te::rst::Raster *inputRst, double &vmin, double &vmax)
mntType
Definition: Enums.h:78
URI C++ Library.
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
std::list< te::map::AbstractLayerPtr > m_layers
List of layers.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
std::unique_ptr< Ui::CreateIsolinesDialogForm > m_ui
te::map::AbstractLayerPtr m_inputLayer
Input layer.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr