00001 /* 00002 * Moka : Un modeleur de 3-G-cartes. 00003 * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC 00004 * http://www.sic.sp2mi.univ-poitiers.fr/ 00005 * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS, 00006 * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/ 00007 * 00008 * This file is part of Moka 00009 * 00010 * This program is free software: you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation, either version 3 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 */ 00023 00024 #ifndef CREATION_MAILLAGE_QT_HH 00025 #define CREATION_MAILLAGE_QT_HH 00026 00027 //--------- Include autres classes developees ---------- 00028 class Window ; 00029 00030 //--------------- Include Controler ------------------- 00031 #include "creation-objet.qt.hh" 00032 00033 //--------------------- Include QT -------------------- 00034 #include <QtGui/QCheckBox> 00035 #include <QtGui/QComboBox> 00036 00037 /*******************************************************************/ 00038 /* CLASSE creationMaillage */ 00039 /*******************************************************************/ 00040 class CreationMaillage : public CreationObjet 00041 { 00042 Q_OBJECT 00043 00044 public: 00045 00051 CreationMaillage ( Window * parent , 00052 GMap3d :: CControlerGMap * controler ) ; 00053 00057 ~CreationMaillage ( ) ; 00058 00059 00063 virtual void update ( ) ; 00064 00065 // Accesseurs 00066 00067 void setSubdivisions ( int , int , int ) ; 00068 int getSubdivisions ( int ) const ; 00069 00070 void setCreatedFaces ( uchar ) ; 00071 uchar getCreatedFaces ( ) const ; 00072 00073 void setCellDimension(int); 00074 void setMeshDimension(int); 00075 00076 private slots: 00077 00078 void callbackSubdivisions ( ) ; 00079 void callbackToggleButton ( ) ; 00080 00081 void callbackDimCell ( ) ; 00082 void callbackDimMesh ( ) ; 00083 00084 private: 00085 00086 // SpinBox 00087 QSpinBox * FSaisieX ; 00088 QSpinBox * FSaisieY ; 00089 QSpinBox * FSaisieZ ; 00090 00091 // Affichages 00092 QLabel * FAffCel ; 00093 QLabel * FAffMai ; 00094 QLabel * FAffX ; 00095 QLabel * FAffY ; 00096 QLabel * FAffZ ; 00097 QLabel * FAffSub ; 00098 QLabel * FAffFac ; 00099 00100 //ComboBox 00101 QComboBox * FDimCell ; 00102 QComboBox * FDimMail ; 00103 00104 // Boutons 00105 QCheckBox * FGauche ; 00106 QCheckBox * FDroite ; 00107 QCheckBox * FDevant ; 00108 QCheckBox * FDerriere ; 00109 QCheckBox * FBas ; 00110 QCheckBox * FHaut ; 00111 00112 // Booleen de modification 00113 bool FModifie ; 00114 00115 } ; 00116 00117 #endif