Loading...
Searching...
No Matches
ProfileDialog.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/sa/qt/BayesGlobalDialog.h
22
23 \brief A dialog to calculate the global empirical bayes of a dataset.
24*/
25
26#ifndef __TERRALIB_MNT_INTERNAL_PROFILEDIALOG_H
27#define __TERRALIB_MNT_INTERNAL_PROFILEDIALOG_H
28
29// TerraLib
30#include "../../color/RGBAColor.h"
31#ifndef Q_MOC_RUN
32#include "../../dataaccess/datasource/DataSourceInfo.h"
33#include "../../maptools/AbstractLayer.h"
34#include "../core/Enums.h"
35#include "../../qt/af/BaseApplication.h"
36#include "ProfileTools.h"
37#endif
38#include "../core/Config.h"
39
40// Qt
41#include <QDialog>
42
43namespace Ui { class ProfileDialogForm; }
44
45// Forward declarations
46
47namespace te
48{
49 namespace mnt
50 {
52 {
58 };
59
60// Forward declarations
61
62 class TEMNTEXPORT ProfileDialog : public QDialog
63 {
64 Q_OBJECT
65
66 public:
67
68 ProfileDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
69
71
73
74 void setLayers(std::list<te::map::AbstractLayerPtr> layers);
75
77
78 void release();
79
80 Q_SIGNALS:
82
83 protected slots:
84
86 void onInputComboBoxChanged(int index);
87
88 void oneditionEnabled(bool);
90
92
93 void onaddPointMouseToggled(bool checked);
94 void onchangePointToggled(bool checked);
95 void onaddPointToggled(bool checked);
96 void ondeletePointToggled(bool checked);
97 void ondeletePathToggled(bool checked);
98 void oninvertToggled(bool checked);
99
101
103
104 void onDrawTrajectories(const QMap<QString, QString>&);
105
107
108 void DrawSelected(const std::vector<te::gm::LineString*> visadas, int width = 1, bool vertex = true, bool draw = true); // Draws trajectories
109
110 bool setVertexEdition(); //sets parameters to edition of vertexes
111
112 void testGeometries(); //test if geometries is valid
113
114 private:
115
116 std::unique_ptr<Ui::ProfileDialogForm> m_ui;
117
119 float m_tol;
120
123
126
127 std::list<te::map::AbstractLayerPtr> m_layers;
128 mntType m_inputType; //!< Input type (TIN, GRID)
130 double m_dummy;
131 std::unique_ptr<te::da::DataSetType> m_dsType;
133
134 std::vector<te::gm::LineString*> m_viewed;
135 std::vector<te::color::RGBAColor> m_color;
136 bool m_vertex; //draw vertexes of editing line
137 };
138 } // end namespace mnt
139} // end namespace te
140
141#endif // __TERRALIB_MNT_INTERNAL_PROFILEDIALOG_H
This file defines the profile trajectory edition tools.
std::vector< te::gm::LineString * > m_viewed
void onDrawTrajectories(const QMap< QString, QString > &)
void onchangePointToggled(bool checked)
void oneditionEnabled(bool)
ProfileDialog(QWidget *parent=0, Qt::WindowFlags f=0)
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
void DrawSelected(const std::vector< te::gm::LineString * > visadas, int width=1, bool vertex=true, bool draw=true)
void onselectionEnabled(bool)
void onaddPointToggled(bool checked)
te::qt::af::BaseApplication * m_app
te::map::AbstractLayerPtr m_trajectoryLayer
te::map::AbstractLayerPtr getLayer()
std::unique_ptr< Ui::ProfileDialogForm > m_ui
std::list< te::map::AbstractLayerPtr > m_layers
void ondeletePointToggled(bool checked)
te::qt::widgets::AbstractTool * m_tool
te::map::AbstractLayerPtr m_outputLayer
void onVectorInputComboBoxChanged(int index)
mntType m_inputType
Input type (TIN, GRID)
te::map::AbstractLayerPtr m_inputLayer
void oninvertToggled(bool checked)
std::vector< te::color::RGBAColor > m_color
void onInputLayerToolButtonClicked()
void onaddPointMouseToggled(bool checked)
void onInputComboBoxChanged(int index)
std::unique_ptr< te::da::DataSetType > m_dsType
void ondeletePathToggled(bool checked)
This class defines an interface for objects that can receive application events and respond to them,...
Definition: AbstractTool.h:64
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
mntType
Definition: Enums.h:79
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