Loading...
Searching...
No Matches
TINGenerationDialog.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5TerraLib is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 3 of the License,
8or (at your option) any later version.
9
10TerraLib is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License
16along with TerraLib. See COPYING. If not, write to
17TerraLib 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
45namespace Ui { class TINGenerationDialogForm; }
46
47namespace 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
67
68 void setSRID(int newSRID);
69
70 protected slots:
71
75 void onSamplesComboBoxChanged(int index);
86
87 private:
88
89 std::unique_ptr<Ui::TINGenerationDialogForm> m_ui;
90
91 te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
92 std::string m_outputArchive; //!< Archive information.
94 std::list<te::map::AbstractLayerPtr> m_layers; //!< List of layers.
99 te::da::DataSourcePtr m_isolinesDataSource; //!< Isolines DataSourcePtr
100 te::da::DataSourcePtr m_samplesDataSource; //!< Samples DataSourcePtr
101 te::da::DataSourcePtr m_breakDataSource; //!< BreakLines DataSourcePtr
102 std::string m_isoSetName; //!< Isolines DataSetLayer name
103 std::string m_sampleSetName; //!< Samples DataSetLayer name
104 std::string m_breakSetName; //!< BreakLines DataSetLayer name
105 double m_scale; //!<Triangulation scale.
106 double m_tol; //!<Triangulation lines simplification tolerance.
107 double m_breaktol; //!<Triangulation breaklines simplification tolerance.
108 double m_distance; //!<Triangulation lines simplification maximum distance.
109 double m_edgeSize; //!<Triangulation edges minimum size.
110
114 };
115 }
116}
117
118#endif
void onBreakLinesComboBoxChanged(int index)
te::map::AbstractLayerPtr m_breaklinesLayer
BreakLines layer.
std::list< te::map::AbstractLayerPtr > m_layers
List of layers.
std::string m_outputArchive
Archive information.
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
double m_edgeSize
Triangulation edges minimum size.
TINGenerationDialog(QWidget *parent=0, Qt::WindowFlags f=0)
double m_breaktol
Triangulation breaklines simplification tolerance.
std::string m_isoSetName
Isolines DataSetLayer name.
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
te::da::DataSourcePtr m_breakDataSource
BreakLines DataSourcePtr.
std::string m_breakSetName
BreakLines DataSetLayer name.
double m_tol
Triangulation lines simplification tolerance.
double m_distance
Triangulation lines simplification maximum distance.
te::map::AbstractLayerPtr m_isolinesLayer
Isolines layer.
std::unique_ptr< Ui::TINGenerationDialogForm > m_ui
void onIsolinesComboBoxChanged(int index)
double m_scale
Triangulation scale.
te::da::DataSourcePtr m_isolinesDataSource
Isolines DataSourcePtr.
te::map::AbstractLayerPtr m_outputLayer
Generated Layer.
te::map::AbstractLayerPtr getLayer()
void setSRID(int newSRID)
void onSamplesComboBoxChanged(int index)
te::da::DataSourcePtr m_samplesDataSource
Samples DataSourcePtr.
te::map::AbstractLayerPtr m_samplesLayer
Points layer.
std::string m_sampleSetName
Samples DataSetLayer name.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
TerraLib.
#define slots
#define TEMNTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:41