Moka Ihm Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
options-interpolation.qt.hh
Go to the documentation of this file.
1 /*
2  * Moka : Un modeleur de 3-G-cartes.
3  * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4  * http://www.sic.sp2mi.univ-poitiers.fr/
5  * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6  * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7  *
8  * This file is part of Moka
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef OPTIONSINTERPOLATION_QT_HH
25 #define OPTIONSINTERPOLATION_QT_HH
26 
27 //--------- Include autres classes developees ----------
28 #include "controler-gmap.hh"
29 
30 //--------------------- Include QT --------------------
31 #include <QtGui/QSpinBox>
32 #include <QtGui/QCheckBox>
33 #include <QtGui/QComboBox>
34 #include <QtGui/QLabel>
35 #include <QtGui/QTabWidget>
36 #include <QtGui/QGroupBox>
37 
38 
39 class Window ;
40 
41 
45 class OptionsInterpolation : public QWidget
46 {
47  Q_OBJECT
48 
49 public:
50 
57  OptionsInterpolation ( Window * parent , QTabWidget * parentTab ) ;
58 
64 
68  void update ( ) ;
69 
70  // Accesseurs
71  void setSizeX(int);
72  void setSizeY(int);
73  void setSizeZ(int);
74 
75  void setSmoothMethod(int); int getSmoothMethod() const;
76  const CTransformationMatrix & getSmoothMatrix() const;
77 
78  void setInterpolationMerges(bool); bool getInterpolationMerges() const;
79  void setInterpolationSews (bool); bool getInterpolationSews () const;
80 
81  void setSmoothMerges(bool); bool getSmoothMerges() const;
82  void setSmoothSews (bool); bool getSmoothSews () const;
83 
84 
85 public slots:
86  void callbackSizeX();
87  void callbackSizeY();
88  void callbackSizeZ();
89 
92 
93  void callbackSmoothMethod();
94 
95  void callbackSmoothMerges();
96  void callbackSmoothSews();
97 
98 
99 
100 private:
101 
102  // Pointeur su la fenetre principale
103  Window * FParent ;
104  bool FUpdate ;
105 
106  QLabel * FNbDiv [3] , * FAffMethode ;
107  QSpinBox * FSaisieNbDiv [3] ;
108 
109  QCheckBox * FFusionInterpolation , * FCoudreInterpolation ,
110  * FFusionLissage , * FCoudreLissage ;
111 
112  QComboBox * FSaisieMethode ;
113 
114  QGroupBox * FNbSubdivision, * FAffInterpolation , * FAffLissage ;
115 } ;
116 
117 #endif