OTB  7.2.0
Orfeo Toolbox
mvdProjectionBarWidget.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 
22 #ifndef mvdProjectionBarWidget_h
23 #define mvdProjectionBarWidget_h
24 
25 //
26 // Configuration include.
28 #include "ConfigureMonteverdi.h"
29 
30 
31 /*****************************************************************************/
32 /* INCLUDE SECTION */
33 
34 //
35 // Qt includes (sorted by alphabetic order)
37 #include <QtWidgets>
38 #include <qnamespace.h>
39 
40 //
41 // System includes (sorted by alphabetic order)
42 
43 //
44 // ITK includes (sorted by alphabetic order)
45 
46 //
47 // OTB includes (sorted by alphabetic order)
48 #include "OTBMonteverdiGUIExport.h"
49 //
50 // Monteverdi includes (sorted by alphabetic order)
51 #include "mvdTypes.h"
52 
53 
54 /*****************************************************************************/
55 /* PRE-DECLARATION SECTION */
56 
57 namespace mvd
58 {
59 //
60 // Internal classes pre-declaration.
61 namespace Ui
62 {
63 class ProjectionBarWidget;
64 };
65 
73 class OTBMonteverdiGUI_EXPORT ProjectionBarWidget : public QWidget
74 {
75 
76  Q_OBJECT;
77 
78 public:
80  explicit ProjectionBarWidget(QWidget* p = NULL, Qt::WindowFlags flags = Qt::Widget);
81 
83  ~ProjectionBarWidget() override;
84 
85 public slots:
86  void SetProjectionScale(double scale_x, double scale_y);
87 
88 private:
92  Ui::ProjectionBarWidget* m_UI;
93 
98  void ChangeScale();
99 
100 private slots:
104  void on_projectionScaleLineEdit_editingFinished();
105 
109  void on_projectionScaleLineEdit_returnPressed();
110 
111 signals:
114  void ProjectionScaleChanged(double);
115 };
116 
117 } // end namespace mvd
118 
119 
120 #endif // mvdProjectionBarWidget_h
ProjectionBarWidget widget class.
Ui::ProjectionBarWidget * m_UI
uic generated.