00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef OPTIONSAFFICHAGE_QT_HH
00025 #define OPTIONSAFFICHAGE_QT_HH
00026
00027
00028 #include "controler-gmap.hh"
00029 #include "options-vue.qt.hh"
00030
00031
00032 #include <QtGui/QSpinBox>
00033 #include <QtGui/QCheckBox>
00034 #include <QtGui/QLabel>
00035 #include <QtGui/QRadioButton>
00036 #include <QtGui/QTabWidget>
00037 #include <QtGui/QGroupBox>
00038
00039 class Window ;
00040
00044 class OptionsAffichage : public QWidget
00045 {
00046 Q_OBJECT
00047
00048 public :
00049
00056 OptionsAffichage ( Window * parent ,
00057 QTabWidget * parentTab ) ;
00058
00063 ~OptionsAffichage ( ) ;
00064
00068 void update ( ) ;
00069
00070
00071 void applyValues ( ) ;
00072
00073
00074
00075
00076
00077 bool getVerticesDisplay ( ) const ;
00078 bool getSewsDisplay ( ) const ;
00079 bool getNormalDisplay ( ) const ;
00080 bool getFacesDisplay ( ) const ;
00081 bool getFacesCoulAlea ( ) const ;
00082 bool getVolumesCoulAlea ( ) const;
00083 bool getCoulFacesGlobale() const;
00084 bool getCoulTopologie ( ) const;
00085
00086 #ifdef MODULE_ARCHITECTURE
00087 bool getCoulSemantique( ) const;
00088 void hideSemantiqueColoration ( );
00089 #endif
00090
00091 bool getCoulGeometry ( ) const;
00092 int getDartWidth ( ) const ;
00093
00094
00095 bool getGridDisplay ( ) const ;
00096 bool getAxisDisplay() const ;
00097 int getSize ( ) const ;
00098 bool getXy ( ) const ;
00099 bool getXz ( ) const ;
00100 bool getYz ( ) const ;
00101 bool getPx ( ) const ;
00102 bool getPy ( ) const ;
00103 bool getPz ( ) const ;
00104
00105
00106
00107
00112 void setFMain ( ) ;
00113
00114
00115 void setVerticesDisplay ( bool ) ;
00116 void setSewsDisplay ( bool ) ;
00117 void setNormalDisplay ( bool ) ;
00118 void setFacesDisplay ( bool ) ;
00119 void setFacesCoulAlea ();
00120 void setVolumesCoulAlea ();
00121 void setCoulFacesGlobale();
00122 void setCoulTopologie();
00123 #ifdef MODULE_ARCHITECTURE
00124 void setCoulSemantique();
00125 #endif
00126 void setCoulGeometry();
00127 void setDartWidth ( int ) ;
00128
00129
00130 void setGridDisplay ( bool ) ;
00131 void setAxisDisplay ( bool ) ;
00132 void setSize ( int ) ;
00133 void setXy ( bool ) ;
00134 void setXz ( bool ) ;
00135 void setYz ( bool ) ;
00136 void setPx ( bool ) ;
00137 void setPy ( bool ) ;
00138 void setPz ( bool ) ;
00139
00140
00141 void setOrientation(bool);
00142 void setScale (bool);
00143 void setPosition (bool);
00144
00145 public slots:
00146
00147
00148 void callbackToggleNormal ( ) ;
00149 void callbackToggleVertices ( ) ;
00150 void callbackToggleSews ( ) ;
00151 void callbackToggleFaces ( ) ;
00152 void callbackFacesCoulAlea( );
00153 void callbackVolumesCoulAlea( );
00154 void callbackCoulFacesGlobale( );
00155 void callbackCoulTopologie( );
00156 void callbackCoulGeometry( );
00157 #ifdef MODULE_ARCHITECTURE
00158 void callbackCoulSemantique( );
00159 #endif
00160
00161 void callbackToggleGrid ( ) ;
00162 void callbackToggleAxis ( ) ;
00163 void callbackSize ( ) ;
00164 void callbackToggleXy ( ) ;
00165 void callbackToggleXz ( ) ;
00166 void callbackToggleYz ( ) ;
00167 void callbackTogglePx ( ) ;
00168 void callbackTogglePy ( ) ;
00169 void callbackTogglePz ( ) ;
00170
00171
00172 void callbackToggleOrientation();
00173 void callbackToggleScale ();
00174 void callbackTogglePosition ();
00175
00176 private:
00177
00178
00179 Window * FParent ;
00180
00181 bool FUpdate ;
00182
00183
00184 bool FMain ;
00185
00186
00187 QGroupBox * FElements ;
00188 QCheckBox * FENormale , * FECoutures , * FESommets , * FEFacesPleines ;
00189 QRadioButton * FECouleursAleatoire , * FECoulVolumesAleatoire , * FECoulGlobale , * FECoulTopologie,* FECoulGeometry;
00190 #ifdef MODULE_ARCHITECTURE
00191 QRadioButton * FECoulSemantique;
00192 #endif
00193 QGroupBox * bgroup ,* bgroup2;
00194
00195
00196 QGroupBox * FGrille ;
00197 QCheckBox * FAffAxes , * FPlanXY , * FPlanXZ , * FPlanYZ ,
00198 * FValOx , * FValOy , * FValOz ;
00199
00200
00201 QGroupBox * FPlacage ;
00202 QCheckBox * FOrientation , * FTaille , *FPosition ;
00203
00204 QSpinBox * FSaisieTaille ;
00205 } ;
00206
00207 #endif