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 // Qt
43 #include <QDialog>
44 
45 namespace Ui { class CreateIsolinesDialogForm; }
46 
47 namespace te
48 {
49  namespace mnt
50  {
51  class TEMNTEXPORT CreateIsolinesDialog : public QDialog
52  {
53  Q_OBJECT
54 
55  public:
56 
57  CreateIsolinesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
58 
60 
61  void setLayers(std::list<te::map::AbstractLayerPtr> layers);
62 
63  te::map::AbstractLayerPtr getLayer();
64 
65  void getMinMax(te::map::AbstractLayerPtr inputLayer, double &min, double &max);
66 
67  void setSRID(int newSRID);
68 
69  protected slots:
70 
71  void onInputLayerToolButtonClicked();
72  void onInputComboBoxChanged(int index);
73  void onDummyLineEditEditingFinished();
74  void onStepFixeEnabled(bool);
75  void on_stepVariableraEnabled(bool);
76  void oninsertpushButtonClicked();
77  void ondeletepushButtonClicked();
78  void ondeleteallpushButtonClicked();
79  void onTargetDatasourceToolButtonPressed();
80  void onTargetFileToolButtonPressed();
81  void onOkPushButtonClicked();
82  void onCancelPushButtonClicked();
83  void onSrsToolButtonClicked();
84 
85  private:
86 
87  std::auto_ptr<Ui::CreateIsolinesDialogForm> m_ui;
88 
89  te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
90  std::string m_outputArchive; //!< Archive information.
91  std::list<te::map::AbstractLayerPtr> m_layers; //!< List of layers.
94 
95  mntType m_inputType; //!< Input type (TIN, GRID)
96  double m_min;
97  double m_max;
98  double m_dummy;
99  bool m_toFile;
102 
103  };
104  } //mnt
105 } //te
106 
107 #endif //__TERRALIB_MNT_INTERNAL_CREATEISOLINESDIALOG_H
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::auto_ptr< Ui::CreateIsolinesDialogForm > m_ui
std::list< te::map::AbstractLayerPtr > m_layers
List of layers.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
te::map::AbstractLayerPtr m_inputLayer
Input layer.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr