|
From: <bma...@us...> - 2003-02-19 09:23:35
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde
In directory sc8-pr-cvs1:/tmp/cvs-serv2650/src/org/fudaa/fudaa/refonde
Modified Files:
RefondeFilleCalques.java
Log Message:
- Ajout des calques de représentation des domaines poreux (domaines + points de plan).
- Ajout des boutons de gestion des domaines poreux (création, suppression, modification) et des méthodes correspondantes.
Index: RefondeFilleCalques.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFilleCalques.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RefondeFilleCalques.java 30 Jan 2003 13:09:46 -0000 1.1
--- RefondeFilleCalques.java 19 Feb 2003 09:23:31 -0000 1.2
***************
*** 12,15 ****
--- 12,16 ----
import org.fudaa.fudaa.commun.*;
import org.fudaa.ebli.calque.*;
+ import org.fudaa.ebli.calque.dessin.*;
import org.fudaa.ebli.geometrie.*;
import com.memoire.bu.*;
***************
*** 31,40 ****
*/
public class RefondeFilleCalques extends EbliFilleCalques {
! public RefondeCalqueContour clContours;
! public RefondeCalqueMaillage clMaillage;
! public RefondeCalqueAngle clAngles;
! public RefondeCalqueAngleTransmission clAnglesTrans;
! public RefondeCalqueAngleInteraction clSaisieAngle;
! public RefondeCalqueContourInteraction clContoursI;
private BuCommonInterface app_;
--- 32,60 ----
*/
public class RefondeFilleCalques extends EbliFilleCalques {
! public RefondeCalqueContour cqContours;
! public RefondeCalqueMaillage cqMaillage;
! public RefondeCalqueAngle cqAngles;
! public RefondeCalqueAngleTransmission cqAnglesTrans;
! public RefondeCalqueAngleInteraction cqSaisieAngle;
! public RefondeCalqueContourInteraction cqContoursI;
! /** Création interactive de formes - Domaines poreux */
! public BCalqueFormeInteraction cqFormeI;
! /** Affichage des domaines poreux */
! public BCalquePolygone cqDomainePoreux;
! /** Affichage des points des domaines poreux */
! public BCalquePoint cqDomainePoreuxPts;
!
! /** Tools spécifiques de la fenêtre. */
! private JComponent[] btTools_;
! /** Tool création de domaine poreux */
! private BuToggleButton btCreePoreux_;
! /** Tool suppression de domaine poreux */
! private BuButton btSupPoreux_;
! /** Tool modification de domaine poreux */
! private BuButton btModPoreux_;
! /** Tool modification du point d'un plan de domaine poreux */
! private BuButton btModPoint_;
! /** Actions spécifiques actives de la fenetre */
! // private Vector enabledActions_=new Vector();
private BuCommonInterface app_;
***************
*** 44,47 ****
--- 64,68 ----
private BGroupeCalque gcMai_;
private BuToggleButton btSel2Pts_;
+ private RefondeProjet prj_;
// private JMenu mnVoir_;
***************
*** 71,111 ****
gr2Bd_=new Hashtable();
! clContours=new RefondeCalqueContour();
! clContours.setGr2Bd(gr2Bd_);
! clContours.setTitle("Contours");
! clContours.setName("cqCONTOURS");
! cqRoot.add(clContours);
! clMaillage=new RefondeCalqueMaillage();
! clMaillage.setName("Maillage");
! cqRoot.add(clMaillage);
! clAngles=new RefondeCalqueAngle();
! // clAngles.setGr2Bd(gr2Bd_);
! clAngles.setName("Angles d'incidence");
! cqRoot.add(clAngles);
! clAnglesTrans=new RefondeCalqueAngleTransmission();
! clAnglesTrans.setName("Angles de transmission");
! cqRoot.add(clAnglesTrans);
! clSaisieAngle=new RefondeCalqueAngleInteraction(clAngles,_vc,_ac);
! clSaisieAngle.setName("Nouvel angle");
! clSaisieAngle.setGele(true);
! cqRoot.add(clSaisieAngle);
! clContoursI=new RefondeCalqueContourInteraction();
! clContoursI.setTitle("Sélection 2 pts");
! clContoursI.setName("cqSEL2PTS");
! clContoursI.setGele(true);
! cqRoot.getCalqueParNom("cqADMIN").add(clContoursI);
! clContoursI.addSelectionListener(this);
! clContoursI.addSelectionListener(
(BCalqueSelection)cqRoot.getCalqueParNom("cqSELECTIONAFFICHAGE"));
_ac.refresh();
getVueCalque().setBackground(Color.white);
setBoutonRepereVisible(false);
// Bouton supplémentaire de sélection de contours par 2 points
--- 92,173 ----
gr2Bd_=new Hashtable();
! // Domaines poreux
! cqDomainePoreux=new BCalquePolygone();
! cqDomainePoreux.setForeground(new Color(255,0,0,75));
! cqDomainePoreux.setBackground(cqDomainePoreux.getForeground());
! cqDomainePoreux.setTypeSurface(TraceSurface.UNIFORME);
! cqDomainePoreux.setTitle("Domaines poreux");
! cqDomainePoreux.setName("cqPOREUX");
! cqRoot.add(cqDomainePoreux);
! // Symboles de direction des domaines poreux (sous calque domaine poreux)
! // cqDomainePoreuxDir=new BCalqueSymbole();
! // cqDomainePoreuxDir.setForeground(cqDomainePoreux.getForeground());
! // cqDomainePoreuxDir.setTitle("Directions");
! // cqDomainePoreuxDir.setName("cqDIRPOREUX");
! // cqDomainePoreux.add(cqDomainePoreuxDir);
! // Points de plan du domaine poreux
! cqDomainePoreuxPts=new BCalquePoint();
! cqDomainePoreuxPts.setTypePoint(TracePoint.DISQUE);
! cqDomainePoreuxPts.setForeground(Color.red.darker());
! cqDomainePoreuxPts.setTitle("Points des plans");
! cqDomainePoreuxPts.setName("cqPTSPOREUX");
! cqRoot.add(cqDomainePoreuxPts);
! cqContours=new RefondeCalqueContour();
! cqContours.setGr2Bd(gr2Bd_);
! cqContours.setTitle("Contours");
! cqContours.setName("cqCONTOURS");
! cqRoot.add(cqContours);
! cqMaillage=new RefondeCalqueMaillage();
! cqMaillage.setName("Maillage");
! cqRoot.add(cqMaillage);
! cqAngles=new RefondeCalqueAngle();
! // cqAngles.setGr2Bd(gr2Bd_);
! cqAngles.setName("Angles d'incidence");
! cqRoot.add(cqAngles);
!
! cqAnglesTrans=new RefondeCalqueAngleTransmission();
! cqAnglesTrans.setName("Angles de transmission");
! cqRoot.add(cqAnglesTrans);
!
! cqSaisieAngle=new RefondeCalqueAngleInteraction(cqAngles,_vc,_ac);
! cqSaisieAngle.setName("Nouvel angle");
! cqSaisieAngle.setGele(true);
! cqRoot.getCalqueParNom("cqADMIN").add(cqSaisieAngle);
!
! cqContoursI=new RefondeCalqueContourInteraction();
! cqContoursI.setTitle("Sélection 2 pts");
! cqContoursI.setName("cqSEL2PTS");
! cqContoursI.setGele(true);
! cqRoot.getCalqueParNom("cqADMIN").add(cqContoursI);
! cqContoursI.addSelectionListener(this);
! cqContoursI.addSelectionListener(
(BCalqueSelection)cqRoot.getCalqueParNom("cqSELECTIONAFFICHAGE"));
+ // Saisie d'un domaine poreux
+ cqFormeI=new BCalqueFormeInteraction(cqDomainePoreux);
+ cqFormeI.setTitle("Saisie de formes");
+ cqFormeI.setName("cqFORME");
+ cqFormeI.setGele(true);
+ cqFormeI.setTypeForme(DeForme.RECTANGLE);
+ cqFormeI.addFormeEventListener(new FormeEventListener() {
+ public void formeSaisie(FormeEvent _evt) {
+ cqFormeI_formeSaisie(_evt);
+ }
+ });
+ cqRoot.getCalqueParNom("cqADMIN").add(cqFormeI);
+
+ buildTools();
+ associeBoutonCalqueInteraction(cqFormeI,btCreePoreux_);
+
_ac.refresh();
getVueCalque().setBackground(Color.white);
setBoutonRepereVisible(false);
+ setBoutonsStandardVisible(false);
// Bouton supplémentaire de sélection de contours par 2 points
***************
*** 115,129 ****
btSel2Pts_.setEnabled(false);
addBouton(btSel2Pts_);
! associeBoutonCalqueInteraction(clContoursI,btSel2Pts_);
!
! // Création des menus spécifiques
!
! // Menu voir
! // mnVoir_=buildMenuVoir();
! // mnVoir_.setIcon(null);
! // mnVoir_.addActionListener(this);
}
public String[] getEnabledActions() {
return super.getEnabledActions();
}
--- 177,185 ----
btSel2Pts_.setEnabled(false);
addBouton(btSel2Pts_);
! associeBoutonCalqueInteraction(cqContoursI,btSel2Pts_);
}
public String[] getEnabledActions() {
+ // return (String[])enabledActions_.toArray(new String[0]);
return super.getEnabledActions();
}
***************
*** 144,149 ****
// }
public JComponent[] getSpecificTools() {
! return new JComponent[0];
}
--- 200,275 ----
// }
+ /**
+ * Retourne les outils spécifiques
+ */
public JComponent[] getSpecificTools() {
! JComponent[] cpssuper=super.getSpecificTools();
!
! // La valeur de DesktopPane n'est validée qu'une fois la fenêtre ajoutée
! // au desktop. En théorie, il faudrait faire le traitement ci dessous
! // une fois la fenêtre ajoutée. En pratique, on le fait dans la méthode
! // getSpecificTools() appelée chaque fois que la fenêtre est rendue active.
! // B.M. 20.08.2001
! try {
! for (int i=0; i<btTools_.length; i++)
! if (btTools_[i]!=null)
! ((BuPopupButton)btTools_[i]).setDesktop((BuDesktop)getDesktopPane());
! }
! catch( ClassCastException e ) {}
!
! JComponent[] cps=new JComponent[cpssuper.length+btTools_.length];
! System.arraycopy(cpssuper,0,cps,0,cpssuper.length);
! System.arraycopy(btTools_,0,cps,cpssuper.length,btTools_.length);
!
! return cps;
! }
!
! /**
! * Création de la barre d'outils avec les outils de tous les calques.
! */
! private void buildTools() {
! Vector vcps=new Vector();
!
! // Separator
! vcps.add(null);
!
! // Bouton de création de domaine poreux
! btCreePoreux_=new BuToggleButton(RefondeResource.REFONDE.getIcon("creerporeux"));
! btCreePoreux_.setToolTipText("Création d'un domaine poreux");
! btCreePoreux_.setActionCommand("CREERPOREUX");
! // enabledActions_.add("CREERPOREUX");
! btCreePoreux_.addActionListener(this);
! vcps.add(btCreePoreux_);
!
! // Bouton de suppression du domaine poreux
! btSupPoreux_=new BuButton(RefondeResource.REFONDE.getIcon("supporeux"));
! btSupPoreux_.setToolTipText("Suppression du domaine poreux");
! btSupPoreux_.setActionCommand("SUPPRIMERPOREUX");
! // enabledActions_.add("SUPPRIMERPOREUX");
! btSupPoreux_.addActionListener(this);
! btSupPoreux_.setEnabled(false);
! vcps.add(btSupPoreux_);
!
! // Bouton de modification du domaine poreux
! btModPoreux_=new BuButton(RefondeResource.REFONDE.getIcon("proprietesporeux"));
! btModPoreux_.setToolTipText("Propriétés du domaine poreux");
! btModPoreux_.setActionCommand("MODIFIERPOREUX");
! // enabledActions_.add("MODIFIERPOREUX");
! btModPoreux_.addActionListener(this);
! btModPoreux_.setEnabled(false);
! vcps.add(btModPoreux_);
!
! // Bouton de modification du point d'un plan de domaine poreux
! btModPoint_=new BuButton(RefondeResource.REFONDE.getIcon("deplacerpoint"));
! btModPoint_.setToolTipText("Déplacement du point de plan d'un domaine poreux");
! btModPoint_.setActionCommand("DEPLACERPOINT");
! // enabledActions_.add("DEPLACERPOINT");
! btModPoint_.addActionListener(this);
! btModPoint_.setEnabled(false);
! vcps.add(btModPoint_);
!
! btTools_=(JComponent[])vcps.toArray(new JComponent[0]);
!
! // for (int i=0; i<btTools_.length; i++) if (btTools_[i]!=null) btTools_[i].setEnabled(true);
}
***************
*** 162,170 ****
// Cas particulier des angles d'incidence/transmission
! if (_evt.getSource()==clAngles || _evt.getSource()==clAnglesTrans) {
for (int i=0; i<grSelects_.nombre(); i++)
bdSelects_[i]=
((RefondeSymboleData)((GrSymbole)grSelects_.renvoie(i)).data()).angle;
}
else {
for (int i=0; i<grSelects_.nombre(); i++)
--- 288,306 ----
// Cas particulier des angles d'incidence/transmission
! if (_evt.getSource()==cqAngles || _evt.getSource()==cqAnglesTrans) {
for (int i=0; i<grSelects_.nombre(); i++)
bdSelects_[i]=
((RefondeSymboleData)((GrSymbole)grSelects_.renvoie(i)).data()).angle;
}
+ // Domaines poreux
+ else if (_evt.getSource()==cqDomainePoreux) {
+ for (int i=0; i<grSelects_.nombre(); i++)
+ bdSelects_[i]=grSelects_.renvoie(i);
+ }
+ // Points des domaines poreux
+ else if (_evt.getSource()==cqDomainePoreuxPts) {
+ for (int i=0; i<grSelects_.nombre(); i++)
+ bdSelects_[i]=grSelects_.renvoie(i);
+ }
else {
for (int i=0; i<grSelects_.nombre(); i++)
***************
*** 178,182 ****
// Propriétés de bord
! active=(_evt.getSource()==clContours &&
// active=(grClass.size()==1 &&
// grClass.get((new GrPolyligne()).getClass())!=null &&
--- 314,318 ----
// Propriétés de bord
! active=(_evt.getSource()==cqContours &&
// active=(grClass.size()==1 &&
// grClass.get((new GrPolyligne()).getClass())!=null &&
***************
*** 185,189 ****
// Propriétés de fond
! active=(_evt.getSource()==clContours &&
// active=(grClass.size()==1 &&
// grClass.get((new GrPolyligne()).getClass())!=null &&
--- 321,325 ----
// Propriétés de fond
! active=(_evt.getSource()==cqContours &&
// active=(grClass.size()==1 &&
// grClass.get((new GrPolyligne()).getClass())!=null &&
***************
*** 192,222 ****
// Angles d'incidence
! active=((_evt.getSource()==clAngles && grSelects_.nombre()>0) ||
! (_evt.getSource()==clAnglesTrans && grSelects_.nombre()>0));
app_.setEnabledForAction("MODIFIERANGLE",active);
// Angles supplémentaires
! active=((_evt.getSource()==clAngles && grSelects_.nombre()>0));
app_.setEnabledForAction("MODIFIERANGSUP",active);
// Création d'un domaine digue
! active=(_evt.getSource()==clContours && grSelects_.nombre()>0);
app_.setEnabledForAction("CREERDIGUE",active);
// Suppression d'un domaine digue
! active=(_evt.getSource()==clContours && grSelects_.nombre()>0);
app_.setEnabledForAction("SUPPRIMERDIGUE",active);
// Modification des propriétés de maillage sur un domaine
! active=(_evt.getSource()==clContours && grSelects_.nombre()>0);
app_.setEnabledForAction("MODIFIERPROPMAILLAGE",active);
// Maillage d'un domaine
! active=(_evt.getSource()==clContours && grSelects_.nombre()>0);
app_.setEnabledForAction("MAILLER",active);
// Suppression d'un maillage
! active=(_evt.getSource()==clContours && grSelects_.nombre()>0);
app_.setEnabledForAction("SUPPRIMERMAILLAGE",active);
}
--- 328,370 ----
// Angles d'incidence
! active=((_evt.getSource()==cqAngles && grSelects_.nombre()>0) ||
! (_evt.getSource()==cqAnglesTrans && grSelects_.nombre()>0));
app_.setEnabledForAction("MODIFIERANGLE",active);
// Angles supplémentaires
! active=((_evt.getSource()==cqAngles && grSelects_.nombre()>0));
app_.setEnabledForAction("MODIFIERANGSUP",active);
// Création d'un domaine digue
! active=(_evt.getSource()==cqContours && grSelects_.nombre()>0);
app_.setEnabledForAction("CREERDIGUE",active);
// Suppression d'un domaine digue
! active=(_evt.getSource()==cqContours && grSelects_.nombre()>0);
app_.setEnabledForAction("SUPPRIMERDIGUE",active);
// Modification des propriétés de maillage sur un domaine
! active=(_evt.getSource()==cqContours && grSelects_.nombre()>0);
app_.setEnabledForAction("MODIFIERPROPMAILLAGE",active);
// Maillage d'un domaine
! active=(_evt.getSource()==cqContours && grSelects_.nombre()>0);
app_.setEnabledForAction("MAILLER",active);
// Suppression d'un maillage
! active=(_evt.getSource()==cqContours && grSelects_.nombre()>0);
app_.setEnabledForAction("SUPPRIMERMAILLAGE",active);
+
+ // Suppression d'un domaine poreux
+ active=(_evt.getSource()==cqDomainePoreux && grSelects_.nombre()>0);
+ btSupPoreux_.setEnabled(active);
+
+ // Modification d'un domaine poreux
+ active=(_evt.getSource()==cqDomainePoreux && grSelects_.nombre()==1);
+ btModPoreux_.setEnabled(active);
+
+ // Modification d'un point du plan d'un domaine poreux
+ active=(_evt.getSource()==cqDomainePoreuxPts && grSelects_.nombre()==1);
+ btModPoint_.setEnabled(active);
}
***************
*** 234,237 ****
--- 382,520 ----
/**
+ * Création d'un domaine poreux
+ */
+ public void cqFormeI_formeSaisie(FormeEvent _evt) {
+ DeRectangle rect=(DeRectangle)_evt.getForme();
+ GrPolygone pg=(GrPolygone)rect.getGeometrie();
+ RefondeDomainePoreux dm=new RefondeDomainePoreux();
+ dm.setPoints(new GrPoint[]{pg.sommet(0),pg.sommet(2)});
+ dm.setPointsPlan(new GrPoint[]{pg.sommet(0),pg.sommet(1),pg.sommet(2)});
+
+ RefondeDialogProprietesPoreux diPoreux=new RefondeDialogProprietesPoreux(app_.getFrame());
+ diPoreux.setProjet(prj_);
+ diPoreux.setDomainePoreux(dm);
+ diPoreux.show();
+ if (diPoreux.reponse==diPoreux.OK_BUTTON) {
+ cqDomainePoreux.ajoute(dm);
+ // cqDomainePoreuxDir.ajoute(dm.getSymbole());
+ GrPoint[] pts=dm.getPointsPlan();
+ for (int j=0; j<pts.length; j++) cqDomainePoreuxPts.ajoute(pts[j]);
+ prj_.getModeleProprietes().addDomainePoreux(dm);
+ }
+ getVueCalque().repaint();
+
+ // Désactivation du bouton et gel du calque.
+ btCreePoreux_.setSelected(false);
+ cqFormeI.setGele(true);
+ }
+
+ //----------------------------------------------------------------------------
+ // Actions
+ //----------------------------------------------------------------------------
+
+ /**
+ * Action quand une action spécifique à la fenêtre est déclenchée.
+ */
+ public void actionPerformed(ActionEvent _evt) {
+ if (_evt.getActionCommand().equals("SUPPRIMERPOREUX")) cmdSupprimerPoreux();
+ else if (_evt.getActionCommand().equals("MODIFIERPOREUX")) cmdModifierPoreux();
+ else if (_evt.getActionCommand().equals("CREERPOREUX")) cmdCreerPoreux();
+ else if (_evt.getActionCommand().equals("DEPLACERPOINT")) cmdDeplacerPoint();
+ else super.actionPerformed(_evt);
+ }
+
+ /**
+ * Suppression d'un domaine poreux
+ */
+ private void cmdSupprimerPoreux() {
+ if (new BuDialogConfirmation(app_,app_.getInformationsSoftware(),
+ "Suppression du(des) domaine(s) poreux sélectionné(s) ?")
+ .activate()!=JOptionPane.OK_OPTION) return;
+
+ for (int i=0; i<bdSelects_.length; i++) {
+ RefondeDomainePoreux dm=(RefondeDomainePoreux)bdSelects_[i];
+ cqDomainePoreux.enleve(dm);
+ GrPoint[] pts=dm.getPointsPlan();
+ for (int j=0; j<pts.length; j++) cqDomainePoreuxPts.enleve(pts[j]);
+ prj_.getModeleProprietes().removeDomainePoreux(dm);
+ }
+ videSelection();
+ }
+
+ /**
+ * Modification d'un domaine poreux
+ */
+ private void cmdModifierPoreux() {
+ RefondeDomainePoreux dm=(RefondeDomainePoreux)bdSelects_[0];
+ RefondeDialogProprietesPoreux diPoreux=new RefondeDialogProprietesPoreux(app_.getFrame());
+ diPoreux.setProjet(prj_);
+ diPoreux.setDomainePoreux(dm);
+ diPoreux.show();
+ if (diPoreux.reponse==diPoreux.OK_BUTTON) {
+ prj_.getModeleProprietes().modifie=true;
+ getVueCalque().repaint();
+ }
+ }
+
+ /**
+ * Création d'un domaine poreux. On vide juste la selection si necessaire pour
+ * ne pas avoir des comportements bizarres, le reste est fait par le calque de
+ * saisie de forme.
+ */
+ private void cmdCreerPoreux() {
+ if (bdSelects_!=null && bdSelects_.length!=0) videSelection();
+ }
+
+ /**
+ * Déplacement du point du plan d'un domaine poreux.
+ */
+ private void cmdDeplacerPoint() {
+ GrPoint pt=(GrPoint)bdSelects_[0];
+ RefondeDomainePoreux[] dmps=prj_.getModeleProprietes().getDomainesPoreux();
+ int idm=0;
+ int ind=0;
+
+ DMPS:
+ for (idm=0; idm<dmps.length; idm++) {
+ GrPoint[] ptsPlan=dmps[idm].getPointsPlan();
+ for (ind=0; ind<ptsPlan.length; ind++) if (ptsPlan[ind]==pt) break DMPS;
+ }
+
+ final RefondeDomainePoreux dmp=dmps[idm];
+ final int ipt=ind;
+ RefondePnPointPlan pnPoint=new RefondePnPointPlan();
+ pnPoint.setProjet(prj_);
+ pnPoint.setZAutomatique(dmp.isZAutomatique(ipt));
+ pnPoint.setPoint(pt);
+
+ RefondeDialogPanneau di=
+ new RefondeDialogPanneau(app_.getFrame(),pnPoint,"Modification du point",
+ RefondeDialogPanneau.OK_CANCEL_APPLY_OPTION) {
+
+ public boolean actionApply() {
+ RefondePnPointPlan pn=(RefondePnPointPlan)getPanneauPrincipal();
+ GrPoint[] ptsPlan=dmp.getPointsPlan();
+
+ // Controle de validité des valeurs données.
+ if (!pn.isOK()) {
+ new BuDialogError(app_,app_.getInformationsSoftware(),
+ "Un des paramètres n'a pas un format valide").activate();
+ return false;
+ }
+
+ ptsPlan[ipt]=pn.getPoint();
+ dmp.setZAutomatique(pn.isZAutomatique(),ipt);
+ pn.setPoint(ptsPlan[ipt]); // Pour remettre à jour le panneau
+ RefondeFilleCalques.this.getVueCalque().repaint();
+
+ return true;
+ }
+ };
+ di.show();
+ }
+
+ //----------------------------------------------------------------------------
+
+ /**
* Retourne les objets sélectionnés
*/
***************
*** 247,256 ****
public void initialise(RefondeProjet _projet) {
gr2Bd_.clear();
! clContours .initialise(_projet);
! clAngles .initialise(_projet);
! clAnglesTrans.initialise(_projet);
! clSaisieAngle.initialise(_projet);
! clMaillage .initialise(_projet);
! clContoursI .initialise(_projet,clContours);
}
--- 530,553 ----
public void initialise(RefondeProjet _projet) {
gr2Bd_.clear();
! cqContours .initialise(_projet);
! cqAngles .initialise(_projet);
! cqAnglesTrans.initialise(_projet);
! cqSaisieAngle.initialise(_projet);
! cqMaillage .initialise(_projet);
! cqContoursI .initialise(_projet,cqContours);
!
! // Affichage des domaines poreux
! cqDomainePoreux.reinitialise();
! cqDomainePoreuxPts.reinitialise();
! // cqDomainePoreuxDir.reinitialise();
! RefondeDomainePoreux[] dms=_projet.getModeleProprietes().getDomainesPoreux();
! for (int i=0; i<dms.length; i++) {
! cqDomainePoreux.ajoute(dms[i]);
! // cqDomainePoreuxDir.ajoute(dms[i].getSymbole());
! GrPoint[] pts=dms[i].getPointsPlan();
! for (int j=0; j<pts.length; j++) cqDomainePoreuxPts.ajoute(pts[j]);
! }
!
! prj_=_projet;
}
***************
*** 312,334 ****
_calque.setGele(false);
getArbreCalque().repaint();
- }
-
- //------------------------------------------------------------------------------
- //--- ACTIONS ------------------------------------------------------------------
- //------------------------------------------------------------------------------
-
- // public void actionPerformed(ActionEvent _evt) {
- // String action = _evt.getActionCommand();
- //
- // if (action.equals("NUMNOEUDS")) cmdVoirNumNoeuds(((AbstractButton)_evt.getSource()).isSelected());
- // else if (action.equals("NUMELEMENTS")) cmdVoirNumElements(((AbstractButton)_evt.getSource()).isSelected());
- // else super.actionPerformed(_evt);
- // }
-
- /**
- * Recentrage du BVueCalque en fonction des calques visibles
- */
- public void zoomEtendu() {
- getVueCalque().changeRepere(this,getVueCalque().getCalque().getDomaine());
}
}
--- 609,612 ----
|