|
From: <bma...@us...> - 2003-02-18 16:46:23
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde
In directory sc8-pr-cvs1:/tmp/cvs-serv18743/src/org/fudaa/fudaa/refonde
Modified Files:
RefondeDialogParametresCalcul.java
Log Message:
- Ajout d'un parametre "prise en compte des fonds poreux" et ajout d'une "condition absorbante d'ordre 2" pour le traitement des frontières.
- Le terme dissipatif est autorisé pour la houle aléatoire.
Index: RefondeDialogParametresCalcul.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeDialogParametresCalcul.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RefondeDialogParametresCalcul.java 30 Jan 2003 13:09:46 -0000 1.1
--- RefondeDialogParametresCalcul.java 18 Feb 2003 16:46:18 -0000 1.2
***************
*** 42,45 ****
--- 42,47 ----
JTextField tfOrdreMax = new JTextField();
JComboBox coCasBord = new JComboBox();
+ JLabel lbFondsPoreux=new JLabel();
+ JCheckBox cbFondsPoreux=new JCheckBox();
// JTextField tfNbIterHR = new JTextField();
// JLabel lbNbIterHR = new JLabel();
***************
*** 101,104 ****
--- 103,110 ----
JLabel lbHtHouleHR = new JLabel();
+ public RefondeDialogParametresCalcul() {
+ this(null,null);
+ }
+
public RefondeDialogParametresCalcul(RefondeFilleCalques _fnCalques) {
this(null,_fnCalques);
***************
*** 134,137 ****
--- 140,144 ----
lbCasBord .setText("Traitement des frontières ouvertes :");
lbOrdreMax .setText("Ordre de troncature max :");
+ lbFondsPoreux.setText("Prise en compte des fonds poreux :");
lbHtMer .setHorizontalAlignment(SwingConstants.TRAILING);
***************
*** 140,150 ****
lbOrdreMax .setHorizontalAlignment(SwingConstants.TRAILING);
! coCasBord .addItem("Condition absorbante");
coCasBord .addItem("Formulation analytique - île");
coCasBord .addItem("Formulation analytique - port");
coCasBord .addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent _evt) {
! lbOrdreMax.setEnabled(coCasBord.getSelectedIndex()!=0);
! tfOrdreMax.setEnabled(coCasBord.getSelectedIndex()!=0);
}
});
--- 147,158 ----
lbOrdreMax .setHorizontalAlignment(SwingConstants.TRAILING);
! coCasBord .addItem("Condition absorbante ordre 1");
! coCasBord .addItem("Condition absorbante ordre 2");
coCasBord .addItem("Formulation analytique - île");
coCasBord .addItem("Formulation analytique - port");
coCasBord .addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent _evt) {
! lbOrdreMax.setEnabled(coCasBord.getSelectedIndex()>1);
! tfOrdreMax.setEnabled(coCasBord.getSelectedIndex()>1);
}
});
***************
*** 164,167 ****
--- 172,177 ----
pnGene.add(lbOrdreMax);
pnGene.add(tfOrdreMax);
+ pnGene.add(lbFondsPoreux);
+ pnGene.add(cbFondsPoreux);
//--- Houle --------------------------------------------------------------
***************
*** 175,179 ****
else lyParams.show(pnParams,"pnParamsHA");
! rbDissipatif.setEnabled(rbHR.isSelected());
if (!rbDissipatif.isEnabled() && rbDissipatif.isSelected()) {
--- 185,190 ----
else lyParams.show(pnParams,"pnParamsHA");
! // B.M. Le 04/02/2003 Le terme dissipatif est autorisé pour la houle aléatoire.
! /* rbDissipatif.setEnabled(rbHR.isSelected());
if (!rbDissipatif.isEnabled() && rbDissipatif.isSelected()) {
***************
*** 182,186 ****
"terme dissipatif").activate();
rbSans.setSelected(true);
! }
}
});
--- 193,197 ----
"terme dissipatif").activate();
rbSans.setSelected(true);
! }*/
}
});
***************
*** 385,390 ****
tfHtMer .setText(""+mdlCal.hauteurMer());
// tfProfExterne.setText(""+mdlCal.profondeurOrigine());
! coCasBord .setSelectedIndex(mdlCal.casBordOuvert());
tfOrdreMax .setText(""+mdlCal.ordreMax());
// Houle régulière
--- 396,407 ----
tfHtMer .setText(""+mdlCal.hauteurMer());
// tfProfExterne.setText(""+mdlCal.profondeurOrigine());
! switch (mdlCal.casBordOuvert()) {
! case RefondeModeleCalcul.BORD_COND_ORDRE_1: coCasBord.setSelectedIndex(0); break;
! case RefondeModeleCalcul.BORD_COND_ORDRE_2: coCasBord.setSelectedIndex(1); break;
! case RefondeModeleCalcul.BORD_FORM_ANA_ILE: coCasBord.setSelectedIndex(2); break;
! case RefondeModeleCalcul.BORD_FORM_ANA_PORT: coCasBord.setSelectedIndex(3); break;
! }
tfOrdreMax .setText(""+mdlCal.ordreMax());
+ cbFondsPoreux.setSelected(mdlCal.fondsPoreux_);
// Houle régulière
***************
*** 442,449 ****
double oldAngle=mdlCal.angleHoule();
! double htMer=0;
// double profExterne=0;
! int casBord=0;
! int ordreMax=0;
double periode=0;
--- 459,467 ----
double oldAngle=mdlCal.angleHoule();
! double htMer=0;
// double profExterne=0;
! int casBord=0;
! int ordreMax=0;
! boolean fondsPoreux=false;
double periode=0;
***************
*** 469,474 ****
htMer =Double.parseDouble(tfHtMer.getText());
// profExterne=Double.parseDouble(tfProfExterne.getText());
! casBord =coCasBord.getSelectedIndex();
ordreMax =Integer.parseInt(tfOrdreMax.getText());
// Houle régulière
--- 487,498 ----
htMer =Double.parseDouble(tfHtMer.getText());
// profExterne=Double.parseDouble(tfProfExterne.getText());
! switch (coCasBord.getSelectedIndex()) {
! case 0: casBord=RefondeModeleCalcul.BORD_COND_ORDRE_1; break;
! case 1: casBord=RefondeModeleCalcul.BORD_COND_ORDRE_2; break;
! case 2: casBord=RefondeModeleCalcul.BORD_FORM_ANA_ILE; break;
! case 3: casBord=RefondeModeleCalcul.BORD_FORM_ANA_PORT; break;
! }
ordreMax =Integer.parseInt(tfOrdreMax.getText());
+ fondsPoreux=cbFondsPoreux.isSelected();
// Houle régulière
***************
*** 559,562 ****
--- 583,587 ----
mdlCal.casBordOuvert(casBord);
mdlCal.ordreMax(ordreMax);
+ mdlCal.setFondsPoreux(fondsPoreux);
// Houle régulière
***************
*** 603,607 ****
}
finally {
! fnCalques_.clAngles.initialise(projet_);
fnCalques_.getVueCalque().repaint();
}
--- 628,632 ----
}
finally {
! fnCalques_.cqAngles.initialise(projet_);
fnCalques_.getVueCalque().repaint();
}
***************
*** 609,612 ****
--- 634,649 ----
}
return true;
+ }
+
+ /**
+ * Pour test de la boite de dialogue.
+ */
+ public static void main(String[] _args) {
+ try {
+ UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
+ }
+ catch (Exception _exc) {}
+
+ new RefondeDialogParametresCalcul().show();
}
}
|