28 #include <QtGui/QLabel>
29 #include <QtGui/QBoxLayout>
35 QWidget ( parentTab ) ,
39 QBoxLayout * placement =
new QBoxLayout ( QBoxLayout::TopToBottom,
this ) ;
41 FNbSubdivision =
new QGroupBox(
"Number of subdivisions");
42 QVBoxLayout* nsd_vbl =
new QVBoxLayout(FNbSubdivision);
45 QWidget * WidgetSub0 =
new QWidget (
this ) ;
46 QBoxLayout * sub0 =
new QBoxLayout ( QBoxLayout::LeftToRight, WidgetSub0 ) ;
49 new QLabel ( *
HTML::decode(
"Following the first dimension : ") ) ;
50 FSaisieNbDiv [0] =
new QSpinBox ;
51 FSaisieNbDiv [0] -> setMinimum ( 1 );
52 FSaisieNbDiv [0] -> setMaximum ( 1000 );
53 FSaisieNbDiv [0] -> setAccelerated(
true);
55 sub0 -> addWidget ( FNbDiv [0], 0, Qt::AlignLeft ) ;
56 sub0 -> addWidget ( FSaisieNbDiv [0], 1, Qt::AlignLeft ) ;
59 QWidget * WidgetSub1 =
new QWidget (
this ) ;
60 QBoxLayout * sub1 =
new QBoxLayout ( QBoxLayout::LeftToRight, WidgetSub1 ) ;
62 new QLabel ( *
HTML::decode(
"Following the second dimension :") ) ;
63 FSaisieNbDiv [1] =
new QSpinBox ;
64 FSaisieNbDiv [1] -> setMinimum ( 1 );
65 FSaisieNbDiv [1] -> setMaximum ( 1000 );
66 FSaisieNbDiv [1] -> setAccelerated(
true);
68 sub1 -> addWidget ( FNbDiv [1], 0, Qt::AlignLeft ) ;
69 sub1 -> addWidget ( FSaisieNbDiv [1], 1, Qt::AlignLeft ) ;
72 QWidget * WidgetSub2 =
new QWidget (
this ) ;
73 QBoxLayout * sub2 =
new QBoxLayout ( QBoxLayout::LeftToRight, WidgetSub2 ) ;
75 new QLabel ( *
HTML::decode(
"Following the third dimension : ")) ;
76 FSaisieNbDiv [2] =
new QSpinBox ;
77 FSaisieNbDiv [2] -> setMinimum ( 1 );
78 FSaisieNbDiv [2] -> setMaximum ( 1000 );
79 FSaisieNbDiv [2] -> setAccelerated(
true);
81 sub2 -> addWidget ( FNbDiv [2], 0, Qt::AlignLeft ) ;
82 sub2 -> addWidget ( FSaisieNbDiv [2], 1, Qt::AlignLeft ) ;
84 nsd_vbl -> addWidget ( WidgetSub0 ) ;
85 nsd_vbl -> addWidget ( WidgetSub1 ) ;
86 nsd_vbl -> addWidget ( WidgetSub2 ) ;
90 FAffInterpolation =
new QGroupBox (
"Interpolation" ) ;
91 QVBoxLayout* aip_vbl =
new QVBoxLayout(FAffInterpolation);
93 FFusionInterpolation =
new QCheckBox ( *
HTML::decode(
"Merge created mesh with the initial objet") ) ;
94 FCoudreInterpolation =
new QCheckBox ( *
HTML::decode(
"Sew created meshes corresponding to adjacent cells") ) ;
96 aip_vbl -> addWidget(FFusionInterpolation);
97 aip_vbl -> addWidget(FCoudreInterpolation);
100 FAffLissage =
new QGroupBox (
"Smoothing") ;
101 QVBoxLayout* als_vbl =
new QVBoxLayout(FAffLissage);
103 QWidget * WidgetMethode =
new QWidget ;
104 QBoxLayout * methode =
new QBoxLayout ( QBoxLayout::LeftToRight, WidgetMethode ) ;
106 FAffMethode =
new QLabel ( *
HTML::decode(
"Method: ") ) ;
107 FSaisieMethode =
new QComboBox ;
108 FSaisieMethode -> addItem (
"Hermite" ) ;
109 FSaisieMethode -> addItem (
"Bezier" ) ;
110 FSaisieMethode -> addItem (
"Overhauser" ) ;
111 FSaisieMethode -> addItem (
"Spline") ;
113 methode -> addWidget ( FAffMethode , 0, Qt::AlignLeft) ;
114 methode -> addWidget ( FSaisieMethode , 1, Qt::AlignLeft) ;
116 FFusionLissage =
new QCheckBox ( *
HTML::decode(
"Merge created mesh with the initial objet") ) ;
117 FCoudreLissage =
new QCheckBox ( *
HTML::decode(
"Sew created meshes corresponding to adjacent cells") ) ;
119 als_vbl -> addWidget ( WidgetMethode );
120 als_vbl -> addWidget ( FFusionLissage ) ;
121 als_vbl -> addWidget ( FCoudreLissage ) ;
126 placement -> addWidget ( FNbSubdivision );
127 placement -> addWidget ( FAffInterpolation ) ;
128 placement -> addWidget ( FAffLissage ) ;
130 QObject :: connect ( FSaisieNbDiv [0] ,
131 SIGNAL ( valueChanged (
int ) ) ,
134 QObject :: connect ( FSaisieNbDiv [1] ,
135 SIGNAL ( valueChanged (
int ) ) ,
138 QObject :: connect ( FSaisieNbDiv [2] ,
139 SIGNAL ( valueChanged (
int ) ) ,
143 QObject :: connect ( FFusionInterpolation ,
144 SIGNAL ( clicked ( ) ) ,
147 QObject :: connect ( FCoudreInterpolation ,
148 SIGNAL ( clicked ( ) ) ,
152 QObject :: connect ( FFusionLissage ,
153 SIGNAL ( clicked ( ) ) ,
156 QObject :: connect ( FCoudreLissage ,
157 SIGNAL ( clicked ( ) ) ,
160 QObject :: connect ( FSaisieMethode ,
161 SIGNAL ( activated (
int ) ) ,
180 CParameterOperations* p = FParent -> getControler ( ) -> getParameterOperations ( ) ;
182 FSaisieNbDiv [ 0 ] -> setValue ( p -> getMeshNbSubdivisionsX ( ) ) ;
183 FSaisieNbDiv [ 1 ] -> setValue ( p -> getMeshNbSubdivisionsY ( ) ) ;
184 FSaisieNbDiv [ 2 ] -> setValue ( p -> getMeshNbSubdivisionsZ ( ) ) ;
189 FCoudreInterpolation -> setEnabled ( p -> isActiveInterpolationSews ( ) ) ;
194 FFusionLissage -> setEnabled ( p -> isActiveSmoothMerges ( ) ) ;
195 FCoudreLissage -> setEnabled ( p -> isActiveSmoothSews ( ) ) ;
206 setSizeX ( FSaisieNbDiv [ 0 ] -> value ( ) ) ;
212 setSizeY ( FSaisieNbDiv [ 1 ] -> value ( ) ) ;
218 setSizeZ ( FSaisieNbDiv [ 2 ] -> value ( ) ) ;
255 return FParent -> getControler ( ) ->
261 return FParent -> getControler ( ) ->
267 return FParent -> getControler ( ) ->
273 return FParent -> getControler ( ) ->
278 {
return FParent -> getControler ( ) ->
287 FParent -> getControler ( ) ->
288 getParameterOperations ( ) -> setMeshNbSubdivisionsX ( s ) ;
295 FParent -> getControler ( ) -> getParameterOperations ( )
296 ->setMeshNbSubdivisionsY ( s ) ;
303 FParent -> getControler ( ) ->
304 getParameterOperations ( ) -> setMeshNbSubdivisionsZ ( s ) ;
310 FParent -> getControler ( ) -> getParameterOperations ( )
317 FParent -> getControler ( ) -> getParameterOperations ( )
324 FParent -> getControler ( ) -> getParameterOperations ( )
331 FParent -> getControler ( ) -> getParameterOperations ( )
338 FParent -> getControler ( ) -> getParameterOperations ( )