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 OPTIONSVUE_QT_HH
00025 #define OPTIONSVUE_QT_HH
00026
00027
00028 #include "controler-gmap.hh"
00029 #include "IdWidgets.qt.hh"
00030
00031 #include <QtGui/QSpinBox>
00032 #include <QtGui/QCheckBox>
00033 #include <QtGui/QComboBox>
00034 #include <QtGui/QSlider>
00035 #include <QtGui/QLabel>
00036 #include <QtGui/QPushButton>
00037 #include <QtGui/QGroupBox>
00038
00039 class Window ;
00040
00041 class OptionsFrame ;
00042
00043 class OptionsVue : public QWidget
00044 {
00045 Q_OBJECT
00046
00047 public :
00048
00049 typedef enum { Compact, SemiBurst, Burst, AltBurst,
00050 VertexEmphase, EdgeEmphase,
00051 FaceEmphase, VolumeEmphase } Presetting;
00052
00054 OptionsVue ( Window * parent ,
00055 OptionsFrame * parentTab ) ;
00056
00058 ~OptionsVue ( ) ;
00059
00061 void update ( ) ;
00062
00063
00065 void setPresetting ( int ) ;
00066
00067 void setAlphaCoefs ( float , float , float , float ) ;
00068 void setSewposCoefs ( float , float , float , float ) ;
00069 void setSewsDisplay ( bool , bool , bool , bool ) ;
00070
00071 void setInteractive ( bool ) ;
00072 void setAlphaCoef ( int , float ) ;
00073 void setSewposCoef ( int , float ) ;
00074 void setSewDisplay ( int , bool ) ;
00075 void setSewWidth ( int , int ) ;
00076
00077
00079 bool getInteractive ( ) const ;
00080 float getAlphaCoef ( int ) const ;
00081 float getSewposCoef ( int ) const ;
00082 bool getSewDisplay ( int ) const;
00083 int getSewWidth ( int) const ;
00084
00085
00086 protected :
00087 void applyValues ( ) ;
00088
00089 public slots :
00090 void callbackBurstView ( int id );
00091
00092 void callbackBurstAlpha0 ( ) ;
00093 void callbackSewposAlpha0 ( ) ;
00094 void callbackSew0Width ( ) ;
00095
00096 void callbackBurstAlpha1 ( ) ;
00097 void callbackSewposAlpha1 ( ) ;
00098 void callbackSew1Width ( ) ;
00099
00100 void callbackBurstAlpha2 ( ) ;
00101 void callbackSewposAlpha2 ( ) ;
00102 void callbackSew2Width ( ) ;
00103
00104 void callbackBurstAlpha3 ( ) ;
00105 void callbackSewposAlpha3 ( ) ;
00106 void callbackSew3Width ( ) ;
00107
00108 void callbackSew0 ( ) ;
00109 void callbackSew1 ( ) ;
00110 void callbackSew2 ( ) ;
00111 void callbackSew3 ( ) ;
00112
00117 void callbackToggleInteractive ( ) ;
00118
00123 void callbackApply ( ) ;
00124
00129 void callbackRecover ( ) ;
00130
00131 void callbackPresetting0 ( ) ;
00132 void callbackPresetting1 ( ) ;
00133 void callbackPresetting2 ( ) ;
00134 void callbackPresetting3 ( ) ;
00135 void callbackPresetting4 ( ) ;
00136 void callbackPresetting5 ( ) ;
00137 void callbackPresetting6 ( ) ;
00138 void callbackPresetting7 ( ) ;
00139
00140 private :
00141
00142 void setValueEclatement ( TCoordinate , int i ) ;
00143 void setValuePosition ( float , int i ) ;
00144
00145 OptionsFrame * FParentTab ;
00146 Window * FParent ;
00147 bool FUpdate ;
00148
00149 QGroupBox * FInteractivite, * FTypeEclatement, * FPrereglages , * FParametres ;
00150
00151
00152
00153 QPushButton * FIAppliquer , * FIRecuperer ;
00154
00155
00156 QPushButton * FPCompacte , * FPSemiEclatee , * FPMoka , * FPTopofil ,
00157 * FPSommets , * FPAretes , * FPFaces , * FPVolumes ;
00158
00159 IdRadioButton * FBurstView [ 2 ] ;
00160
00161
00162 QCheckBox * FParCouture [4];
00163 QLabel * FParAlpha [4];
00164 QLabel * FParAffEclatement[4];
00165 QLabel * FParAffPosition [4];
00166 QLabel * FAffEclatement;
00167 QLabel * FAffPosition;
00168 QLabel * FAffEpaisseur;
00169 QLabel * FRegTypeEcla;
00170 QSlider * FParEclatement[4];
00171 QSlider * FParPosition [4];
00172 QSpinBox * FParEpaisseur [4];
00173 };
00174
00175 #endif