TINGenerationDialog.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/TINGenerationDialog.h
22 
23 \brief A dialog TIN generation
24 */
25 #ifndef __TERRALIB_MNT_INTERNAL_TINGENERATIONDIALOG_H
26 #define __TERRALIB_MNT_INTERNAL_TINGENERATIONDIALOG_H
27 
28 // Terralib
29 #ifndef Q_MOC_RUN
30 #include "../../common/UnitOfMeasure.h"
31 #include "../../dataaccess/datasource/DataSource.h"
32 #include "../../dataaccess/datasource/DataSourceInfo.h"
33 #include "../../maptools/AbstractLayer.h"
34 #endif
35 #include "../core/Config.h"
36 
37 // STL
38 #include <list>
39 #include <map>
40 #include <memory>
41 
42 // Qt
43 #include <QDialog>
44 
45 namespace Ui { class TINGenerationDialogForm; }
46 
47 namespace te
48 {
49  namespace mnt
50  {
51  class TEMNTEXPORT TINGenerationDialog : public QDialog
52  {
53  Q_OBJECT
54 
55  public:
56  TINGenerationDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
57 
59 
60  /*!
61  \brief Set the layer that can be used
62  \param layers List of AbstractLayerPtr
63  */
64  void setLayers(std::list<te::map::AbstractLayerPtr> layers);
65 
66  te::map::AbstractLayerPtr getLayer();
67 
68  void setSRID(int newSRID);
69 
70  protected slots:
71 
72  void onInputIsolinesToolButtonClicked();
73  void onIsolinesComboBoxChanged(int index);
74  void onInputSamplesToolButtonClicked();
75  void onSamplesComboBoxChanged(int index);
76  void onScalePushButtonClicked();
77  void onYesToggled();
78  void onNoToggled();
79  void onBreakLinesComboBoxChanged(int index);
80  void onInputBreaklineToolButtonClicked();
81  void onTargetDatasourceToolButtonPressed();
82  void onTargetFileToolButtonPressed();
83  void onHelpPushButtonClicked();
84  void onOkPushButtonClicked();
85  void onCancelPushButtonClicked();
86  void onSrsToolButtonClicked();
87 
88  private:
89 
90  std::auto_ptr<Ui::TINGenerationDialogForm> m_ui;
91 
92  te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
93  std::string m_outputArchive; //!< Archive information.
94  bool m_toFile;
95  std::list<te::map::AbstractLayerPtr> m_layers; //!< List of layers.
100  te::da::DataSourcePtr m_isolinesDataSource; //!< Isolines DataSourcePtr
101  te::da::DataSourcePtr m_samplesDataSource; //!< Samples DataSourcePtr
102  te::da::DataSourcePtr m_breakDataSource; //!< BreakLines DataSourcePtr
103  std::string m_isoSetName; //!< Isolines DataSetLayer name
104  std::string m_sampleSetName; //!< Samples DataSetLayer name
105  std::string m_breakSetName; //!< BreakLines DataSetLayer name
106  double m_scale; //!<Triangulation scale.
107  double m_tol; //!<Triangulation lines simplification tolerance.
108  double m_breaktol; //!<Triangulation breaklines simplification tolerance.
109  double m_distance; //!<Triangulation lines simplification maximum distance.
110  double m_edgeSize; //!<Triangulation edges minimum size.
111 
115  };
116  }
117 }
118 
119 #endif
double m_scale
Triangulation scale.
std::list< te::map::AbstractLayerPtr > m_layers
List of layers.
te::map::AbstractLayerPtr m_outputLayer
Generated Layer.
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1438
std::string m_breakSetName
BreakLines DataSetLayer name.
#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_sampleSetName
Samples DataSetLayer name.
double m_distance
Triangulation lines simplification maximum distance.
double m_tol
Triangulation lines simplification tolerance.
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
std::string m_isoSetName
Isolines DataSetLayer name.
URI C++ Library.
double m_breaktol
Triangulation breaklines simplification tolerance.
te::da::DataSourcePtr m_breakDataSource
BreakLines DataSourcePtr.
std::auto_ptr< Ui::TINGenerationDialogForm > m_ui
te::map::AbstractLayerPtr m_samplesLayer
Points layer.
te::da::DataSourcePtr m_samplesDataSource
Samples DataSourcePtr.
te::da::DataSourcePtr m_isolinesDataSource
Isolines DataSourcePtr.
te::map::AbstractLayerPtr m_isolinesLayer
Isolines layer.
te::map::AbstractLayerPtr m_breaklinesLayer
BreakLines layer.
std::string m_outputArchive
Archive information.
double m_edgeSize
Triangulation edges minimum size.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr