You can subscribe to this list here.
2003 |
Jan
|
Feb
(89) |
Mar
(219) |
Apr
(82) |
May
(33) |
Jun
(11) |
Jul
(129) |
Aug
(357) |
Sep
(34) |
Oct
(37) |
Nov
(42) |
Dec
(182) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(74) |
Mar
(196) |
Apr
(205) |
May
(109) |
Jun
(268) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Frederic D. <de...@us...> - 2004-06-11 16:47:41
|
Update of /cvsroot/fudaa/fudaa_devel/aide/src/prepro/src/reflux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13180/src/prepro/src/reflux Modified Files: reflux-general.inc.xml reflux-superviseur.inc.xml reflux.xml Log Message: Index: reflux-general.inc.xml =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/aide/src/prepro/src/reflux/reflux-general.inc.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** reflux-general.inc.xml 11 Jun 2004 16:07:38 -0000 1.2 --- reflux-general.inc.xml 11 Jun 2004 16:47:31 -0000 1.3 *************** *** 1,160 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <chapter lang="fr"> ! <title>Editeur des paramètres généraux</title> ! <para>Cet éditeur contient les données générales du projet et permet de modifier les paramètres généraux du projet. Il est accessible par le menu Projet>Paramètres généraux ou par le raccourci clavier <quote>Ctrl+Alt-G</quote>.</para> ! <section><title>Le menu "Projet"</title> ! <informaltable frame="all"> ! <tgroup cols="2"> ! <tbody><row> ! <entry> ! <para>Intégration en temps</para> ! </entry> ! <entry> ! <para>Active une fenêtre de dialogue afin de modifier les paramètres concernant le temps ( stationnaire,transitoire, méthode, ...) du projet. voir <xref linkend="cha-integration-temps"/></para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Calculer</para> ! </entry> ! <entry> ! <para>Permet de lancer le calcul du projet en cours dans une fenêtre indépendante. Vous pouvez ainsi quitter l'application après le lancement de l'exécutable reflux.</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Paramètres généraux</para> ! </entry> ! <entry> ! <para>Active cet éditeur</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Editeur 2D</para> ! </entry> ! <entry> ! <para>Active l'éditeur graphique des objets géométriques. Cet éditeur permet de modifier les conditions limites, les paramètres physiques,...</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Courbes temporelles</para> ! </entry> ! <entry> ! <para>Active l'éditeur pour les courbes temporelles utilisées pour les conditions limites liquides.</para> ! </entry> ! </row></tbody> ! </tgroup> ! </informaltable></section> ! <caution><para>Le calcul est lancé dans le répertoire courant du projet. Tous les résultats antérieurs ! seront effacés par l'exécutable.</para></caution> ! <section><title>Panneau "projet"</title> ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/reflux/panel-project.png" width="579" depth="157"/> ! </imageobject> ! <textobject><phrase>Reflux: le panneau principal du projet</phrase></textobject> ! </mediaobject> ! <itemizedlist> ! <listitem> ! <para>Le chemin absolu du fichier ( il est possible de l'éditer ) </para> ! </listitem> ! <listitem> ! <para>La date du dernier enregistrement </para> ! </listitem> ! <listitem> ! <para>Son état actuel : modifié ou non par le pré-processeur </para> ! </listitem> ! <listitem> ! <para>Le type du projet. Il est possible d'ajouter le caractère "LMG" ( longueur de mélange) au projet. </para> ! </listitem> ! </itemizedlist> ! </section> ! <section id="sect-panneau-proprietes-calcul"><title>Panneau <quote>Propriétés du calcul</quote></title> ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/reflux/panel-keywords.png" width="663" depth="350"/> ! </imageobject> ! <textobject><phrase>Reflux: le panneau principal du projet</phrase></textobject> ! </mediaobject> ! <para>Ce panneau est séparé en deux parties: la colonne de gauche regroupe les filtres, la colonne principale contient le tableau des paramètres et le panneau d'information. En plaçant la souris entre ces 2 colonnes, vous pouvez redimensionner la colonne de gauche ou la fermer complètement.</para> ! <para>Les paramètres modifiés sont affichés en bleu et les erreurs en rouge.</para> ! <section> ! <title>Les filtres</title> ! <para>Plusieurs types de filtre peuvent être combinés:</para> ! <informaltable frame="all"> ! <tgroup cols="2"> ! <tbody><row> ! <entry> ! <para>Nom</para> ! </entry> ! <entry> ! <para>Permet d'afficher les mot-clés contenant la chaîne de caractère saisie (les majuscules/minuscules sont ignorées).</para> ! <tip><para>Le raccourci <quote>Ctrl+F</quote> permet d'accéder directement à la zone de saisie.</para></tip> ! </entry> ! </row> ! <row> ! <entry> ! <para>Etat</para> ! </entry> ! <entry> ! <para>Affiche les mot-clés modifiés, non-modifiés ou comportant des erreurs.</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Mode</para> ! </entry> ! <entry> ! <para>Permet de spécifier le type d'utilisateur.</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Rubrique</para> ! </entry> ! <entry> ! <para>Permet d'afficher les mot-clés d'une rubrique spécifique. Vous pouvez sélectionner plusieurs rubriques grâce aux modificateurs Ctrl et Maj. Pour déselectionner une rubrique, utiliser la touche Ctrl.</para> ! </entry> ! </row></tbody> ! </tgroup> ! </informaltable> ! <section><title>Annuler les filtres</title> ! <para>En cliquant-droit sur un filtre, un menu vous permettra d'initialiser ce filtre. Pour initialiser TOUS les filtres, vous devez utiliser le menu contextuel du tableau (voir ci-dessous) et choisir l'item Aucun .</para></section> ! ! <section><title>Modifier l'affichage et menu contextuel</title> ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/telemac/menu-contextuel-mot-cles.png" width="153" depth="171"/> ! </imageobject> ! <textobject><phrase>Reflux: menu contextuel</phrase></textobject> ! </mediaobject> ! <para>Pour accéder à ce menu, il suffit de cliquer avec le bouton droit dans la colonne centrale. La première partie (Filtre) du menu permet de modifier les filtres en cours. La deuxième partie (Affichage) offre la possibilité de choisir les colonnes à afficher.</para> ! <para>L'entête du tableau permet de dimensionner/déplacer les colonnes ou de classer leur contenu.</para> ! <tip><para>Les modifications sont automatiquement enregistrées et seront rétablies à la prochaine session.</para></tip> ! </section> ! <section><title>Editer les mot-clés</title> ! <para>Pour modifier un mot-clé, vous pouvez:</para> ! <itemizedlist> ! <listitem> ! <para>Cliquer sur le champ à modifier dans la colonne Valeur </para> ! </listitem> ! <listitem> ! <para>Si une ligne est sélectionnée, utiliser le bouton ! <inlinemediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/editer_16.png" width="16" depth="16"/> ! </imageobject> ! <textobject><phrase>Editer</phrase></textobject></inlinemediaobject> ou le raccourci <quote>Ctrl+E</quote>.</para> ! </listitem> ! </itemizedlist> ! <para>Pour annuler la modification d'un (ou de plusieurs) mot-clé, il suffit de sélectionner la (ou les) ligne correspondante et d'utiliser le bouton <inlinemediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/annuler_16.png" width="16" depth="16"/> ! </imageobject> ! <textobject><phrase>Annuler</phrase></textobject></inlinemediaobject> ou <quote>Ctrl+D</quote>.</para> ! </section> ! </section> ! </section> ! </chapter> --- 1,160 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <chapter lang="fr"> ! <title>Editeur des paramètres généraux</title> ! <para>Cet éditeur contient les données générales du projet et permet de modifier les paramètres généraux du projet. Il est accessible par le menu Projet>Paramètres généraux ou par le raccourci clavier <quote>Ctrl+Alt-G</quote>.</para> ! <section><title>Le menu "Projet"</title> ! <informaltable frame="all"> ! <tgroup cols="2"> ! <tbody><row> ! <entry> ! <para>Intégration en temps</para> ! </entry> ! <entry> ! <para>Active une fenêtre de dialogue afin de modifier les paramètres concernant le temps ( stationnaire,transitoire, méthode, ...) du projet. voir <xref linkend="cha-integration-temps"/></para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Calculer</para> ! </entry> ! <entry> ! <para>Permet de lancer le calcul du projet en cours dans une fenêtre indépendante. Vous pouvez ainsi quitter l'application après le lancement de l'exécutable reflux.</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Paramètres généraux</para> ! </entry> ! <entry> ! <para>Active cet éditeur</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Editeur 2D</para> ! </entry> ! <entry> ! <para>Active l'éditeur graphique des objets géométriques. Cet éditeur permet de modifier les conditions limites, les paramètres physiques,...</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Courbes temporelles</para> ! </entry> ! <entry> ! <para>Active l'éditeur pour les courbes temporelles utilisées pour les conditions limites liquides.</para> ! </entry> ! </row></tbody> ! </tgroup> ! </informaltable></section> ! <caution><para>Le calcul est lancé dans le répertoire courant du projet. Tous les résultats antérieurs ! seront effacés par l'exécutable.</para></caution> ! <section><title>Panneau "projet"</title> ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/reflux/panel-project.png" width="579" depth="157"/> ! </imageobject> ! <textobject><phrase>Reflux: le panneau principal du projet</phrase></textobject> ! </mediaobject> ! <itemizedlist> ! <listitem> ! <para>Le chemin absolu du fichier ( il est possible de l'éditer ) </para> ! </listitem> ! <listitem> ! <para>La date du dernier enregistrement </para> ! </listitem> ! <listitem> ! <para>Son état actuel : modifié ou non par le pré-processeur </para> ! </listitem> ! <listitem> ! <para>Le type du projet. Il est possible d'ajouter le caractère "LMG" ( longueur de mélange) au projet. </para> ! </listitem> ! </itemizedlist> ! </section> ! <section id="sect-panneau-proprietes-calcul"><title>Panneau <quote>Propriétés du calcul</quote></title> ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/reflux/panel-keywords.png" width="663" depth="350"/> ! </imageobject> ! <textobject><phrase>Reflux: le panneau principal du projet</phrase></textobject> ! </mediaobject> ! <para>Ce panneau est séparé en deux parties: la colonne de gauche regroupe les filtres, la colonne principale contient le tableau des paramètres et le panneau d'information. En plaçant la souris entre ces 2 colonnes, vous pouvez redimensionner la colonne de gauche ou la fermer complètement.</para> ! <para>Les paramètres modifiés sont affichés en bleu et les erreurs en rouge.</para> ! <section> ! <title>Les filtres</title> ! <para>Plusieurs types de filtre peuvent être combinés:</para> ! <informaltable frame="all"> ! <tgroup cols="2"> ! <tbody><row> ! <entry> ! <para>Nom</para> ! </entry> ! <entry> ! <para>Permet d'afficher les mot-clés contenant la chaîne de caractère saisie (les majuscules/minuscules sont ignorées).</para> ! <tip><para>Le raccourci <quote>Ctrl+F</quote> permet d'accéder directement à la zone de saisie.</para></tip> ! </entry> ! </row> ! <row> ! <entry> ! <para>Etat</para> ! </entry> ! <entry> ! <para>Affiche les mot-clés modifiés, non-modifiés ou comportant des erreurs.</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Mode</para> ! </entry> ! <entry> ! <para>Permet de spécifier le type d'utilisateur.</para> ! </entry> ! </row> ! <row> ! <entry> ! <para>Rubrique</para> ! </entry> ! <entry> ! <para>Permet d'afficher les mot-clés d'une rubrique spécifique. Vous pouvez sélectionner plusieurs rubriques grâce aux modificateurs Ctrl et Maj. Pour déselectionner une rubrique, utiliser la touche Ctrl.</para> ! </entry> ! </row></tbody> ! </tgroup> ! </informaltable> ! <section><title>Annuler les filtres</title> ! <para>En cliquant-droit sur un filtre, un menu vous permettra d'initialiser ce filtre. Pour initialiser TOUS les filtres, vous devez utiliser le menu contextuel du tableau (voir ci-dessous) et choisir l'item Aucun .</para></section> ! ! <section><title>Modifier l'affichage et menu contextuel</title> ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/telemac/menu-contextuel-mot-cles.png" width="153" depth="171"/> ! </imageobject> ! <textobject><phrase>Reflux: menu contextuel</phrase></textobject> ! </mediaobject> ! <para>Pour accéder à ce menu, il suffit de cliquer avec le bouton droit dans la colonne centrale. La première partie (Filtre) du menu permet de modifier les filtres en cours. La deuxième partie (Affichage) offre la possibilité de choisir les colonnes à afficher.</para> ! <para>L'entête du tableau permet de dimensionner/déplacer les colonnes ou de classer leur contenu.</para> ! <tip><para>Les modifications sont automatiquement enregistrées et seront rétablies à la prochaine session.</para></tip> ! </section> ! <section><title>Editer les mot-clés</title> ! <para>Pour modifier un mot-clé, vous pouvez:</para> ! <itemizedlist> ! <listitem> ! <para>Cliquer sur le champ à modifier dans la colonne Valeur </para> ! </listitem> ! <listitem> ! <para>Si une ligne est sélectionnée, utiliser le bouton ! <inlinemediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/editer_16.png" width="16" depth="16"/> ! </imageobject> ! <textobject><phrase>Editer</phrase></textobject></inlinemediaobject> ou le raccourci <quote>Ctrl+E</quote>.</para> ! </listitem> ! </itemizedlist> ! <para>Pour annuler la modification d'un (ou de plusieurs) mot-clé, il suffit de sélectionner la (ou les) ligne correspondante et d'utiliser le bouton <inlinemediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/annuler_16.png" width="16" depth="16"/> ! </imageobject> ! <textobject><phrase>Annuler</phrase></textobject></inlinemediaobject> ou <quote>Ctrl+D</quote>.</para> ! </section> ! </section> ! </section> ! </chapter> Index: reflux.xml =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/aide/src/prepro/src/reflux/reflux.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** reflux.xml 11 Jun 2004 16:08:19 -0000 1.3 --- reflux.xml 11 Jun 2004 16:47:31 -0000 1.4 *************** *** 1,35 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <!DOCTYPE book SYSTEM "../../template/book.dtd" ! [ ! <!ENTITY url "../../"> ! <!ENTITY preface SYSTEM "../common/preface.inc.xml"> ! <!ENTITY cha-common-general SYSTEM "../common/common-general.inc.xml"> ! <!ENTITY cha-general SYSTEM "reflux-general.inc.xml"> ! <!ENTITY cha-editeur2D SYSTEM "reflux-editeur2D.inc.xml"> ! <!ENTITY cha-superviseur SYSTEM "reflux-superviseur.inc.xml"> ! <!ENTITY cha-courbes-temporelles SYSTEM "../common/common-courbes-temporelles.inc.xml"> ! <!ENTITY cha-si SYSTEM "reflux-solutions-initiales.inc.xml"> ! <!ENTITY cha-integration-temps SYSTEM "reflux-integration-temps.inc.xml"> ! <!ENTITY cha-param-calcul SYSTEM "reflux-parametres-calcul.inc.xml"> ! <!ENTITY cha-donnees-hydraulique SYSTEM "reflux-donnees-hydraulique.inc.xml"> ! ]> ! <book lang="fr"> ! <title>Préprocesseur Reflux &version.number;</title> ! <subtitle>Documentation utilisateur</subtitle> ! &preface; ! &cha-common-general; ! ! &cha-superviseur; ! <part> ! <title>Editeur projet hydraulique</title> ! &cha-general; ! &cha-editeur2D; ! &common-courbes-temp; ! &cha-si; ! &cha-integration-temps; ! &cha-param-calcul; ! &cha-donnees-hydraulique; ! </part> ! &common-meshviewer; ! </book> \ No newline at end of file --- 1,35 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <!DOCTYPE book SYSTEM "../../template/book.dtd" ! [ ! <!ENTITY url "../../"> ! <!ENTITY preface SYSTEM "../common/preface.inc.xml"> ! <!ENTITY cha-common-general SYSTEM "../common/common-general.inc.xml"> ! <!ENTITY cha-general SYSTEM "reflux-general.inc.xml"> ! <!ENTITY cha-editeur2D SYSTEM "reflux-editeur2D.inc.xml"> ! <!ENTITY cha-superviseur SYSTEM "reflux-superviseur.inc.xml"> ! <!ENTITY cha-courbes-temporelles SYSTEM "../common/common-courbes-temporelles.inc.xml"> ! <!ENTITY cha-si SYSTEM "reflux-solutions-initiales.inc.xml"> ! <!ENTITY cha-integration-temps SYSTEM "reflux-integration-temps.inc.xml"> ! <!ENTITY cha-param-calcul SYSTEM "reflux-parametres-calcul.inc.xml"> ! <!ENTITY cha-donnees-hydraulique SYSTEM "reflux-donnees-hydraulique.inc.xml"> ! ]> ! <book lang="fr"> ! <title>Préprocesseur Reflux &version.number;</title> ! <subtitle>Documentation utilisateur</subtitle> ! &preface; ! &cha-common-general; ! ! &cha-superviseur; ! <part> ! <title>Editeur projet hydraulique</title> ! &cha-general; ! &cha-editeur2D; ! &common-courbes-temp; ! &cha-si; ! &cha-integration-temps; ! &cha-param-calcul; ! &cha-donnees-hydraulique; ! </part> ! &common-meshviewer; ! </book> \ No newline at end of file Index: reflux-superviseur.inc.xml =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/aide/src/prepro/src/reflux/reflux-superviseur.inc.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** reflux-superviseur.inc.xml 11 Jun 2004 16:07:38 -0000 1.2 --- reflux-superviseur.inc.xml 11 Jun 2004 16:47:31 -0000 1.3 *************** *** 1,59 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <part lang="fr"> ! <title>Superviseur</title> ! &common-superviseur; ! <chapter><title>Extension des fichiers</title> ! <para>Afin de proposer les actions adaptées au fichier sélectionné, le superviseur essaie ! de déterminer le type du fichier à partir de l'extension de ce dernier. ! Le tableau ci-dessous liste les fichiers reconnu par le superviseur. ! </para> ! &common-reflux-extension; ! <section><title>Les fichiers des autres systèmes</title> ! <para>A titre d'indication, vous trouverez ci-dessous la liste des fichiers utilisés par les autres ! système supporté par la préprocesseur.</para> ! &common-telemac-extension; ! </section> ! </chapter> ! <chapter><title>Les actions disponibles</title> ! <para> ! Pour visualiser les actions proposées par le superviseur, sélectionner un fichier et activer le menu ! contextuel. Dans l'illustration suivant, le fichier sélectionné est un fichier inp. Toutes les actions ! sont activées. ! </para> ! ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/superviseur/menu-reflux.png" width="178" depth="180"/> ! </imageobject> ! <textobject><phrase>Menu contextuel pour les fichiers</phrase></textobject> ! </mediaobject> ! <section><title>Ouvrir</title> ! <para>Cette action permet d'ouvrir le fichier sélectionné. L'éditeur choisi est spécifié entre parenthèses. ! Si le fichier sélectionné est un fichier inp (ou xpre), l'éditeur de projet est choisi. Pour un fichier de géométrie, ! il s'agira de l'éditeur <literal>Meshview</literal>. Par défaut, l'outil <literal>Console</literal> sera ! utilisé comme éditeur. ! </para> ! </section> ! <section><title>Créer projet Reflux</title> ! <para>Cette action est activée si un fichier de <literal>géométrie</literal> est sélectionné. ! Elle permet de créer un projet &reflux; utilisant le fichier sélectionné comme ! fichier de géométrie. ! </para> ! <tip><para>Vous pouvez créer un nouveau projet &reflux; à partir d'un fichier inp: seule la ! géométrie sera prise en compte.</para></tip> ! </section> ! <section><title>Exécuter Reflux</title> ! <para>Si un fichier inp (ou inpx) est sélectionné, cette action permet de lancer &reflux; sur le fichier ! sélectionné.</para> ! <caution><para>L'exécutable &reflux; est lancé dans le répertoire du fichier sélectionné. Tous les ! fichiers de sortie existants seront écrasés.</para></caution> ! </section> ! <section><title>Post</title> ! <para>Si un fichier <quote>inp</quote> ou <quote>sfv</quote> (solutions) est sélectionné, ! une fenêtre de post-traitement sera ouverte par cette action. Les deux ! fichiers sont nécessaires au lancement du post-traitement: le fichier ! <quote>sfv</quote> ne contient pas la géométrie.</para> ! </section> ! </chapter> ! </part> \ No newline at end of file --- 1,59 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <part lang="fr"> ! <title>Superviseur</title> ! &common-superviseur; ! <chapter><title>Extension des fichiers</title> ! <para>Afin de proposer les actions adaptées au fichier sélectionné, le superviseur essaie ! de déterminer le type du fichier à partir de l'extension de ce dernier. ! Le tableau ci-dessous liste les fichiers reconnu par le superviseur. ! </para> ! &common-reflux-extension; ! <section><title>Les fichiers des autres systèmes</title> ! <para>A titre d'indication, vous trouverez ci-dessous la liste des fichiers utilisés par les autres ! système supporté par la préprocesseur.</para> ! &common-telemac-extension; ! </section> ! </chapter> ! <chapter><title>Les actions disponibles</title> ! <para> ! Pour visualiser les actions proposées par le superviseur, sélectionner un fichier et activer le menu ! contextuel. Dans l'illustration suivant, le fichier sélectionné est un fichier inp. Toutes les actions ! sont activées. ! </para> ! ! <mediaobject> ! <imageobject> ! <imagedata align="center" fileref="&url;images/superviseur/menu-reflux.png" width="178" depth="180"/> ! </imageobject> ! <textobject><phrase>Menu contextuel pour les fichiers</phrase></textobject> ! </mediaobject> ! <section><title>Ouvrir</title> ! <para>Cette action permet d'ouvrir le fichier sélectionné. L'éditeur choisi est spécifié entre parenthèses. ! Si le fichier sélectionné est un fichier inp (ou xpre), l'éditeur de projet est choisi. Pour un fichier de géométrie, ! il s'agira de l'éditeur <literal>Meshview</literal>. Par défaut, l'outil <literal>Console</literal> sera ! utilisé comme éditeur. ! </para> ! </section> ! <section><title>Créer projet Reflux</title> ! <para>Cette action est activée si un fichier de <literal>géométrie</literal> est sélectionné. ! Elle permet de créer un projet &reflux; utilisant le fichier sélectionné comme ! fichier de géométrie. ! </para> ! <tip><para>Vous pouvez créer un nouveau projet &reflux; à partir d'un fichier inp: seule la ! géométrie sera prise en compte.</para></tip> ! </section> ! <section><title>Exécuter Reflux</title> ! <para>Si un fichier inp (ou inpx) est sélectionné, cette action permet de lancer &reflux; sur le fichier ! sélectionné.</para> ! <caution><para>L'exécutable &reflux; est lancé dans le répertoire du fichier sélectionné. Tous les ! fichiers de sortie existants seront écrasés.</para></caution> ! </section> ! <section><title>Post</title> ! <para>Si un fichier <quote>inp</quote> ou <quote>sfv</quote> (solutions) est sélectionné, ! une fenêtre de post-traitement sera ouverte par cette action. Les deux ! fichiers sont nécessaires au lancement du post-traitement: le fichier ! <quote>sfv</quote> ne contient pas la géométrie.</para> ! </section> ! </chapter> ! </part> \ No newline at end of file |
From: Frederic D. <de...@us...> - 2004-06-11 16:47:41
|
Update of /cvsroot/fudaa/fudaa_devel/aide/src/prepro/src_web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13180/src/prepro/src_web Modified Files: installation-unix.en.html Log Message: Index: installation-unix.en.html =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/aide/src/prepro/src_web/installation-unix.en.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** installation-unix.en.html 11 Jun 2004 15:57:59 -0000 1.2 --- installation-unix.en.html 11 Jun 2004 16:47:31 -0000 1.3 *************** *** 1,117 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html> ! <head> ! <meta content="text/html; charset=ISO-8859-1" ! http-equiv="content-type"> ! <title>Preprocessor installation Unix/Linux</title> ! <style type="text/css"> ! h1 {color: #996600; font-family: helvetica sans-serif; text-align: center; ! margin-top:10px; ! } ! h2 {color: #996600; font-family: helvetica ! sans-serif; text-align: left; margin-left:0px; margin-top:20px; ! border-bottom:1px solid #996600; } </style> ! </head> ! <body> ! <h1>Preprocessor installation<br> ! </h1> ! <h1>Unix/Linux</h1> ! <span style="font-weight: bold;"><span style="font-weight: bold;">The ! preprocessor require </span><a style="font-weight: bold;" ! href="http://java.sun.com">java</a><span style="font-weight: bold;"> ! (version 1.4 or above)</span></span><span style="font-weight: bold;">. </span><br> ! <br> ! To verify if java is installed, enter "<span style="font-style: italic;">java ! -version"</span> in a command line ! window: <span style="font-style: italic;">. </span>If ! the response is "java version 1.4...", then you can install the ! preprocessor. Otherwise, java must be installed.<br> ! <h2>How to Installation ! java</h2> ! <h3 style="margin-left: 40px;">Step 1 : get the java installer</h3> ! <h3 style="margin-left: 40px;"></h3> ! <div style="margin-left: 80px;">If a java installer (see below) is not ! provided with the preprocessor, you ! can download it from <a ! href="http://java.sun.com/j2se/1.4.2/download.html">http://java.sun.com/j2se/1.4.2/download.html.</a> ! : choose "Download J2SE JRE" and the file corresponding to your ! operating system.<br> ! <br> ! <table style="text-align: left; width: 1032px; height: 144px;" ! border="1" cellspacing="2" cellpadding="2"> ! <tbody> ! <tr> ! <td style="vertical-align: top;"><span style="font-weight: bold;">Filename</span><br> ! </td> ! <td style="vertical-align: top;"><span style="font-weight: bold;">Operating ! System</span><br> ! </td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-linux-i586.bin (xxx is ! the version number) </td> ! <td style="vertical-align: top;">Linux<br> ! </td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-solaris-sparc-i586.sh</td> ! <td style="vertical-align: top;">Solaris Sparc 32 bits<br> ! </td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-solaris-sparcv9-i586.sh</td> ! <td style="vertical-align: top;">Solaris Sparc 64 bits</td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-solaris-i586.sh</td> ! <td style="vertical-align: top;">Solaris x86<br> ! </td> ! </tr> ! </tbody> ! </table> ! <br> ! </div> ! <h3 style="margin-left: 40px;">Step 2 : launch the java installer and ! follow the instructions</h3> ! <h3><span style="font-weight: bold;"></span></h3> ! <br> ! <ul> ! <li>Solaris 64-bit requires users to first install 32-bit. <br> ! </li> ! <li>Information on <b><a ! href="http://java.sun.com/j2se/1.4.2/download-info.html" ! target="_blank">install formats</a></b> </li> ! </ul> ! <h2>Preprocessor ! installation<br> ! </h2> ! <ul> ! <li>If needed, download the preprocessor from the site <span ! style="text-decoration: underline;"></span><a ! href="http://fudaa.sourceforge.net/prepro/"> ! http://fudaa.sourceforge.net/prepro/</a><a ! href="http://fudaa.sourceforge.net/prepro/"></a> </li> ! <li>Enter the following in a command line window: "<span ! style="font-style: italic;">java -jar Fudaa_Prepro_xxx_Setup.jar</span>" ! (xxx is the version number). If "java" isn't in your path, ! you have to use the absolute pathname.<br> ! </li> ! <li>Follow the instructions (if the installer doesn't start, you need ! to install a java runtime environment)<br> ! </li> ! <li>Once the preprocessor is installed, you can use script ! "supervisor.sh" which has been created in the installation folder ! ("$HOME/Fudaa-Prepro" by default)<br> ! </li> ! </ul> ! <br> ! <span style="font-weight: bold;"> If the installer doesn't ! work, you have to install java.</span><br> ! <span style="font-weight: bold;"></span><span style="font-weight: bold;"></span><span ! style="font-weight: bold;"></span><br> ! <h2>Updates</h2> ! <div style="margin-left: 40px;">Updates are available from <a ! href="http://fudaa.sourceforge.net/prepro/">http://fudaa.sourceforge.net/prepro/</a><br> ! </div> ! </body> ! </html> --- 1,117 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html> ! <head> ! <meta content="text/html; charset=ISO-8859-1" ! http-equiv="content-type"> ! <title>Preprocessor installation Unix/Linux</title> ! <style type="text/css"> ! h1 {color: #996600; font-family: helvetica sans-serif; text-align: center; ! margin-top:10px; ! } ! h2 {color: #996600; font-family: helvetica ! sans-serif; text-align: left; margin-left:0px; margin-top:20px; ! border-bottom:1px solid #996600; } </style> ! </head> ! <body> ! <h1>Preprocessor installation<br> ! </h1> ! <h1>Unix/Linux</h1> ! <span style="font-weight: bold;"><span style="font-weight: bold;">The ! preprocessor require </span><a style="font-weight: bold;" ! href="http://java.sun.com">java</a><span style="font-weight: bold;"> ! (version 1.4 or above)</span></span><span style="font-weight: bold;">. </span><br> ! <br> ! To verify if java is installed, enter "<span style="font-style: italic;">java ! -version"</span> in a command line ! window: <span style="font-style: italic;">. </span>If ! the response is "java version 1.4...", then you can install the ! preprocessor. Otherwise, java must be installed.<br> ! <h2>How to Installation ! java</h2> ! <h3 style="margin-left: 40px;">Step 1 : get the java installer</h3> ! <h3 style="margin-left: 40px;"></h3> ! <div style="margin-left: 80px;">If a java installer (see below) is not ! provided with the preprocessor, you ! can download it from <a ! href="http://java.sun.com/j2se/1.4.2/download.html">http://java.sun.com/j2se/1.4.2/download.html.</a> ! : choose "Download J2SE JRE" and the file corresponding to your ! operating system.<br> ! <br> ! <table style="text-align: left; width: 1032px; height: 144px;" ! border="1" cellspacing="2" cellpadding="2"> ! <tbody> ! <tr> ! <td style="vertical-align: top;"><span style="font-weight: bold;">Filename</span><br> ! </td> ! <td style="vertical-align: top;"><span style="font-weight: bold;">Operating ! System</span><br> ! </td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-linux-i586.bin (xxx is ! the version number) </td> ! <td style="vertical-align: top;">Linux<br> ! </td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-solaris-sparc-i586.sh</td> ! <td style="vertical-align: top;">Solaris Sparc 32 bits<br> ! </td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-solaris-sparcv9-i586.sh</td> ! <td style="vertical-align: top;">Solaris Sparc 64 bits</td> ! </tr> ! <tr> ! <td style="vertical-align: top;">j2re-xxx-solaris-i586.sh</td> ! <td style="vertical-align: top;">Solaris x86<br> ! </td> ! </tr> ! </tbody> ! </table> ! <br> ! </div> ! <h3 style="margin-left: 40px;">Step 2 : launch the java installer and ! follow the instructions</h3> ! <h3><span style="font-weight: bold;"></span></h3> ! <br> ! <ul> ! <li>Solaris 64-bit requires users to first install 32-bit. <br> ! </li> ! <li>Information on <b><a ! href="http://java.sun.com/j2se/1.4.2/download-info.html" ! target="_blank">install formats</a></b> </li> ! </ul> ! <h2>Preprocessor ! installation<br> ! </h2> ! <ul> ! <li>If needed, download the preprocessor from the site <span ! style="text-decoration: underline;"></span><a ! href="http://fudaa.sourceforge.net/prepro/"> ! http://fudaa.sourceforge.net/prepro/</a><a ! href="http://fudaa.sourceforge.net/prepro/"></a> </li> ! <li>Enter the following in a command line window: "<span ! style="font-style: italic;">java -jar Fudaa_Prepro_xxx_Setup.jar</span>" ! (xxx is the version number). If "java" isn't in your path, ! you have to use the absolute pathname.<br> ! </li> ! <li>Follow the instructions (if the installer doesn't start, you need ! to install a java runtime environment)<br> ! </li> ! <li>Once the preprocessor is installed, you can use script ! "supervisor.sh" which has been created in the installation folder ! ("$HOME/Fudaa-Prepro" by default)<br> ! </li> ! </ul> ! <br> ! <span style="font-weight: bold;"> If the installer doesn't ! work, you have to install java.</span><br> ! <span style="font-weight: bold;"></span><span style="font-weight: bold;"></span><span ! style="font-weight: bold;"></span><br> ! <h2>Updates</h2> ! <div style="margin-left: 40px;">Updates are available from <a ! href="http://fudaa.sourceforge.net/prepro/">http://fudaa.sourceforge.net/prepro/</a><br> ! </div> ! </body> ! </html> |
From: Frederic D. <de...@us...> - 2004-06-11 16:41:49
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8604 Modified Files: distribution.xml Log Message: Index: distribution.xml =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/distribution.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** distribution.xml 1 Jun 2004 11:27:46 -0000 1.20 --- distribution.xml 11 Jun 2004 16:41:40 -0000 1.21 *************** *** 408,411 **** --- 408,412 ---- <classpath path="${fudaaDist.classpath}"/> <class name="org.fudaa.fudaa.tr.Tr"/> + <class name="org.fudaa.fudaa.tr.TrEditor"/> <class name="org.fudaa.fudaa.tr.TrMesh"/> <class name="org.fudaa.fudaa.tr.TrPost"/> |
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7396/src/org/fudaa/fudaa/tr/data Modified Files: MvFindComponentBcPoint.java TrBcBoundaryLegendPanel.java TrSolutionInitModelDefault.java TrBcBoundaryMiddleModel.java TrBcBoundaryMiddleModelDefault.java TrSolutionInitLayer.java TrBcBoundaryBlockModelDefault.java TrBcBoundaryLayerAbstract.java TrSiPlanLayer.java TrVisuPanel.java TrBcBoundaryMiddleLayer.java TrBcPointLayer.java TrBcBoundaryBlockModel.java TrBcBoundaryBlockLayer.java Added Files: TrRubarAreteEditor.java TrBcBoundaryLayer.java Log Message: Ajout de rubar Index: TrSolutionInitModelDefault.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrSolutionInitModelDefault.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrSolutionInitModelDefault.java 31 Mar 2004 08:17:47 -0000 1.2 --- TrSolutionInitModelDefault.java 11 Jun 2004 16:40:38 -0000 1.3 *************** *** 15,19 **** import org.fudaa.dodico.h2d.reflux.H2dRefluxSolutionInitialeInterface; import org.fudaa.dodico.h2d.type.H2dVariableType; - import org.fudaa.ebli.calque.ZModeleDonneesListener; import org.fudaa.ebli.commun.EbliListeSelectionInterface; import org.fudaa.ebli.geometrie.GrBoite; --- 15,18 ---- *************** *** 131,139 **** } - /** - * @see org.fudaa.ebli.calque.ZModeleDonnees#setListener(org.fudaa.ebli.calque.ZModeleDonneesListener) - */ - public void setListener(ZModeleDonneesListener _l) { - } /** --- 130,133 ---- Index: TrBcBoundaryMiddleLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryMiddleLayer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TrBcBoundaryMiddleLayer.java 5 May 2004 12:42:39 -0000 1.6 --- TrBcBoundaryMiddleLayer.java 11 Jun 2004 16:40:38 -0000 1.7 *************** *** 1,4 **** ! /* ! * @file TrBoundaryLayer.java * @creation 21 nov. 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 21 nov. 2003 * @modification $Date$ *************** *** 14,17 **** --- 13,17 ---- import java.awt.Graphics; import java.awt.Graphics2D; + import java.util.List; import org.fudaa.ctulu.CtuluLib; *************** *** 46,50 **** public TrBcBoundaryMiddleLayer(TrBcBoundaryMiddleModel _m) { m_= _m; ! m_.setListener(this); } public void paintComponent(Graphics g) { --- 46,56 ---- public TrBcBoundaryMiddleLayer(TrBcBoundaryMiddleModel _m) { m_= _m; ! } ! ! public List getUsedBoundaryType() { ! return m_.getUsedBoundaryType(); ! } ! public int getNbBoundaryType() { ! return m_.getNbBoundaryType(); } public void paintComponent(Graphics g) { *************** *** 245,249 **** * */ ! public int[] getPtIdx() { if (!isSelectionEmpty()) { TIntObjectIterator itIntObj= selection_.getIterator(); --- 251,255 ---- * */ ! public int[] getSelectedPtIdx() { if (!isSelectionEmpty()) { TIntObjectIterator itIntObj= selection_.getIterator(); *************** *** 272,276 **** * */ ! public int[] getElementIdx() { return null; } --- 278,282 ---- * */ ! public int[] getSelectedElementIdx() { return null; } Index: TrBcBoundaryMiddleModel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryMiddleModel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TrBcBoundaryMiddleModel.java 12 Feb 2004 16:15:21 -0000 1.4 --- TrBcBoundaryMiddleModel.java 11 Jun 2004 16:40:38 -0000 1.5 *************** *** 8,11 **** --- 8,13 ---- */ package org.fudaa.fudaa.tr.data; + import java.util.List; + import org.fudaa.dodico.h2d.H2dBcFrontierMiddleInterface; *************** *** 28,31 **** --- 30,44 ---- */ public H2dBcFrontierMiddleInterface getFrontier(int _idxFrontier); + + + /** + * @return la liste des bords utilises. + */ + public List getUsedBoundaryType(); + + /** + * @return le nombre de type de bords geree + */ + public int getNbBoundaryType(); /** * Initialise <code>_p</code> a partir des donnees du point --- NEW FILE: TrBcBoundaryLayer.java --- /** * @creation 10 juin 2004 * @modification $Date: 2004/06/11 16:40:38 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.fudaa.tr.data; import java.util.List; import org.fudaa.dodico.h2d.type.H2dBoundaryType; import org.fudaa.ebli.trace.TraceLigne; /** * @author Fred Deniger * @version $Id: TrBcBoundaryLayer.java,v 1.1 2004/06/11 16:40:38 deniger Exp $ */ public interface TrBcBoundaryLayer { /** * @param _t le type de bord a considerer * @return le type de ligne a utiliser pour le type de bord */ public TraceLigne.Data getTlData(H2dBoundaryType _t); /** * @return la liste des bords utilises par le modele */ public List getUsedBoundaryType(); /** * @return le titre */ public String getTitle(); } Index: TrBcBoundaryLegendPanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryLegendPanel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TrBcBoundaryLegendPanel.java 5 May 2004 12:42:39 -0000 1.4 --- TrBcBoundaryLegendPanel.java 11 Jun 2004 16:40:38 -0000 1.5 *************** *** 1,3 **** ! /* * @file TrBordLegendePanel.java * @creation 8 oct. 2003 --- 1,3 ---- ! /** * @file TrBordLegendePanel.java * @creation 8 oct. 2003 *************** *** 8,22 **** */ package org.fudaa.fudaa.tr.data; ! import java.awt.LayoutManager; import java.util.Iterator; ! import java.util.List; ! import com.memoire.bu.BuGridLayout; ! import com.memoire.bu.BuLabel; ! import com.memoire.bu.BuPanel; import org.fudaa.dodico.h2d.type.H2dBoundaryType; import org.fudaa.ebli.palette.BSelecteurTraitComponent; - import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.fdico.FdicoLib; ! import org.fudaa.fudaa.tr.common.TrLib; /** * @author deniger --- 8,27 ---- */ package org.fudaa.fudaa.tr.data; ! import java.awt.BorderLayout; ! import java.awt.Color; import java.util.Iterator; ! ! import javax.swing.BorderFactory; ! import javax.swing.JLabel; ! import javax.swing.SwingConstants; ! import org.fudaa.dodico.h2d.type.H2dBoundaryType; import org.fudaa.ebli.palette.BSelecteurTraitComponent; import org.fudaa.fudaa.fdico.FdicoLib; ! ! import com.memoire.bu.BuBorderLayout; ! import com.memoire.bu.BuGridLayout; ! import com.memoire.bu.BuLabel; ! import com.memoire.bu.BuPanel; /** * @author deniger *************** *** 25,47 **** public class TrBcBoundaryLegendPanel extends BuPanel { /** ! * */ public TrBcBoundaryLegendPanel( ! TrBcBoundaryLayerAbstract _cqBord, ! List _bord) { ! init(_cqBord, _bord); ! setOpaque(false); } ! public void init(TrBcBoundaryLayerAbstract _cqBord, List _bord) { removeAll(); ! setLayout(new BuGridLayout(2, 5, 2)); ! for (Iterator it= _bord.iterator(); it.hasNext();) { H2dBoundaryType b= (H2dBoundaryType)it.next(); BuLabel lb= new BuLabel(b.getNom()); lb.setOpaque(false); lb.setFont(FdicoLib.FONT_DIALOG); ! add(lb); ! add(new BSelecteurTraitComponent(_cqBord.getTlData(b))); } } } --- 30,61 ---- public class TrBcBoundaryLegendPanel extends BuPanel { /** ! * @param _cqBord le bord en question */ public TrBcBoundaryLegendPanel( ! TrBcBoundaryLayer _cqBord) { ! init(_cqBord); } ! /** ! * @param _cqBord ! */ ! public final void init(TrBcBoundaryLayer _cqBord) { removeAll(); ! setBorder(BorderFactory.createEmptyBorder(3,3,1,3)); ! setLayout(new BuBorderLayout()); ! JLabel l=new JLabel(_cqBord.getTitle()); ! l.setHorizontalAlignment(SwingConstants.CENTER); ! add(l,BuBorderLayout.NORTH); ! BuPanel p=new BuPanel(); ! p.setOpaque(false); ! p.setLayout(new BuGridLayout(2, 5, 2)); ! for (Iterator it= _cqBord.getUsedBoundaryType().iterator(); it.hasNext();) { H2dBoundaryType b= (H2dBoundaryType)it.next(); BuLabel lb= new BuLabel(b.getNom()); lb.setOpaque(false); lb.setFont(FdicoLib.FONT_DIALOG); ! p.add(lb); ! p.add(new BSelecteurTraitComponent(_cqBord.getTlData(b))); } + add(p,BuBorderLayout.CENTER); } } Index: TrBcBoundaryBlockModelDefault.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryBlockModelDefault.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TrBcBoundaryBlockModelDefault.java 12 Feb 2004 16:15:21 -0000 1.4 --- TrBcBoundaryBlockModelDefault.java 11 Jun 2004 16:40:38 -0000 1.5 *************** *** 8,11 **** --- 8,13 ---- */ package org.fudaa.fudaa.tr.data; + import java.util.List; + import org.fudaa.dodico.ef.EfGrid; import org.fudaa.dodico.ef.EfNode; *************** *** 117,119 **** --- 119,127 ---- } + public int getNbBoundaryType() { + return clMng_.getNbBoundaryType(); + } + public List getUsedBoundaryType() { + return clMng_.getUsedBoundaryType(); + } } Index: TrVisuPanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrVisuPanel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrVisuPanel.java 1 Jun 2004 11:27:43 -0000 1.2 --- TrVisuPanel.java 11 Jun 2004 16:40:38 -0000 1.3 *************** *** 78,81 **** --- 78,86 ---- */ public abstract void editBcPoint(); + + /** + * @return true si les points sont editables + */ + public abstract boolean isBcPointEditable(); /** * Doit renvoyer true si les points du maillage sont editables Index: TrSiPlanLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrSiPlanLayer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TrSiPlanLayer.java 1 Jun 2004 11:27:43 -0000 1.3 --- TrSiPlanLayer.java 11 Jun 2004 16:40:38 -0000 1.4 *************** *** 58,71 **** /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#getElementIdx() */ ! public int[] getElementIdx() { return null; } /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#getPtIdx() */ ! public int[] getPtIdx() { if (isSelectionEmpty()) return null; --- 58,71 ---- /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#getSelectedElementIdx() */ ! public int[] getSelectedElementIdx() { return null; } /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#getSelectedPtIdx() */ ! public int[] getSelectedPtIdx() { if (isSelectionEmpty()) return null; Index: TrBcPointLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcPointLayer.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TrBcPointLayer.java 5 May 2004 12:42:39 -0000 1.7 --- TrBcPointLayer.java 11 Jun 2004 16:40:38 -0000 1.8 *************** *** 219,223 **** * */ ! public int[] getPtIdx() { if (!isSelectionEmpty()) { TIntObjectIterator it= selection_.getIterator(); --- 219,223 ---- * */ ! public int[] getSelectedPtIdx() { if (!isSelectionEmpty()) { TIntObjectIterator it= selection_.getIterator(); *************** *** 241,245 **** * */ ! public int[] getElementIdx() { return null; } --- 241,245 ---- * */ ! public int[] getSelectedElementIdx() { return null; } Index: TrSolutionInitLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrSolutionInitLayer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrSolutionInitLayer.java 31 Mar 2004 08:17:47 -0000 1.2 --- TrSolutionInitLayer.java 11 Jun 2004 16:40:38 -0000 1.3 *************** *** 18,22 **** import org.fudaa.fudaa.meshviewer.layer.MvNodeLayer; - /** * @author Fred Deniger --- 18,21 ---- *************** *** 25,32 **** public class TrSolutionInitLayer extends MvNodeLayer { ! boolean paintInonde_; private TrPalierSurface surfPainter_; - /** * @param _m le modele du calque --- 24,30 ---- public class TrSolutionInitLayer extends MvNodeLayer { ! boolean paintInonde_; private TrPalierSurface surfPainter_; /** * @param _m le modele du calque *************** *** 37,56 **** surfPainter_ = new TrPalierSurface(); surfPainter_.setPalier(0.001); ! setForeground(new Color(204,204,255)); } - /** * @see javax.swing.JComponent#paintComponent(java.awt.Graphics) */ ! public void paintComponent(Graphics _g) { if (!isVisible()) return; ! if ((modele_ == null) || (modele_.getNombre() <= 0)) ! return; GrBoite clip = getClipReel(_g); GrBoite domaine = modele_.getDomaine(); ! if (!domaine.intersectXY(clip)) { ! return; ! } GrMorphisme versEcran = getVersEcran(); boolean attenue = isAttenue(); --- 35,50 ---- surfPainter_ = new TrPalierSurface(); surfPainter_.setPalier(0.001); ! setForeground(new Color(204, 204, 255)); } /** * @see javax.swing.JComponent#paintComponent(java.awt.Graphics) */ ! public void paintDonnees(Graphics _g) { if (!isVisible()) return; ! if ((modele_ == null) || (modele_.getNombre() <= 0)) return; GrBoite clip = getClipReel(_g); GrBoite domaine = modele_.getDomaine(); ! if (!domaine.intersectXY(clip)) { return; } GrMorphisme versEcran = getVersEcran(); boolean attenue = isAttenue(); *************** *** 60,65 **** Color foreground = getForeground(); ! if (attenue) ! foreground = attenueCouleur(foreground); if (!rapide && paintInonde_) { GrPolygone p = new GrPolygone(); --- 54,58 ---- Color foreground = getForeground(); ! if (attenue) foreground = attenueCouleur(foreground); if (!rapide && paintInonde_) { GrPolygone p = new GrPolygone(); *************** *** 67,71 **** double[] cote = new double[3]; TrSolutionInitModel m = (TrSolutionInitModel) modele_; ! for (int i = m.getEltNb()-1; i >=0; i--) { m.polygone(p, i); p.boite(bPoly); --- 60,64 ---- double[] cote = new double[3]; TrSolutionInitModel m = (TrSolutionInitModel) modele_; ! for (int i = m.getEltNb() - 1; i >= 0; i--) { m.polygone(p, i); p.boite(bPoly); *************** *** 74,83 **** m.getCote(cote, i); surfPainter_.paint((Graphics2D) _g, p.sommets.renvoie(0), p.sommets.renvoie(1), p.sommets ! .renvoie(2), cote[0], cote[1], cote[2],foreground,Color.white); } } } ! //on ne dessine que les selections ! super.paintSpecificComponent(_g, true); } ! } --- 67,75 ---- m.getCote(cote, i); surfPainter_.paint((Graphics2D) _g, p.sommets.renvoie(0), p.sommets.renvoie(1), p.sommets ! .renvoie(2), cote[0], cote[1], cote[2], foreground, Color.white); } } } ! } ! } \ No newline at end of file --- NEW FILE: TrRubarAreteEditor.java --- /** * @creation 11 juin 2004 * @modification $Date: 2004/06/11 16:40:38 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.fudaa.tr.data; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.swing.BorderFactory; import org.fudaa.dodico.commun.DodicoCommandManager; import org.fudaa.dodico.h2d.rubar.H2dRubarArete; import org.fudaa.dodico.h2d.rubar.H2dRubarBcTypeList; import org.fudaa.dodico.h2d.rubar.H2dRubarBoundaryType; import org.fudaa.dodico.h2d.rubar.H2dRubarParameters; import org.fudaa.ebli.dialog.EbliSimpleDialogPanel; import org.fudaa.fudaa.tr.common.TrResource; import com.memoire.bu.BuComboBox; import com.memoire.bu.BuGridLayout; /** * @author Fred Deniger * @version $Id: TrRubarAreteEditor.java,v 1.1 2004/06/11 16:40:38 deniger Exp $ */ public class TrRubarAreteEditor extends EbliSimpleDialogPanel { private BuComboBox cb_; private H2dRubarParameters parameters_; private DodicoCommandManager cmdMng_; H2dRubarArete[] ar_; /** * @param _ar les aretes a editer * @param _bord la liste des bords possibles * @param _mng :le */ public TrRubarAreteEditor(H2dRubarArete[] _ar, H2dRubarParameters _mng, DodicoCommandManager _cmdMng) { super(false); ar_ = _ar; parameters_ = _mng; cmdMng_ = _cmdMng; setLayout(new BuGridLayout(2, 5, 5)); setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); H2dRubarBoundaryType common = H2dRubarArete.getCommonType(_ar); Object[] bord = null; if (common == H2dRubarBcTypeList.MIXTE) { List bordL = new ArrayList(parameters_.getBordList()); bordL.add(H2dRubarBcTypeList.MIXTE); bord = bordL.toArray(); Arrays.sort(bord); } else bord = parameters_.getBordList().toArray(); if (common != null) { addLabel(TrResource.getS("Type du bord")); cb_ = new BuComboBox(bord); add(cb_); cb_.setSelectedItem(common); } } /** * @see org.fudaa.ebli.dialog.EbliSimpleDialogPanel#apply() */ public void apply() { if (cb_ != null) { H2dRubarBoundaryType t = (H2dRubarBoundaryType) cb_.getSelectedItem(); if(!t.equals(H2dRubarBcTypeList.MIXTE)) cmdMng_.addCmd(parameters_.modifyArete(ar_, t)); } } } Index: TrBcBoundaryMiddleModelDefault.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryMiddleModelDefault.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TrBcBoundaryMiddleModelDefault.java 12 Feb 2004 16:15:21 -0000 1.4 --- TrBcBoundaryMiddleModelDefault.java 11 Jun 2004 16:40:38 -0000 1.5 *************** *** 1,4 **** ! /* ! * @file TrBcBoundaryMiddleModelDefault.java * @creation 21 nov. 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 21 nov. 2003 * @modification $Date$ *************** *** 8,22 **** */ package org.fudaa.fudaa.tr.data; ! import org.fudaa.dodico.ef.EfGrid; import org.fudaa.dodico.ef.EfLib; import org.fudaa.dodico.ef.EfNode; import org.fudaa.dodico.h2d.H2dBcFrontierMiddleInterface; import org.fudaa.dodico.h2d.H2dBcManagerMiddleInterface; - import org.fudaa.ebli.calque.ZModeleDonnesAbstract; import org.fudaa.ebli.commun.EbliListeSelectionMultiInterface; import org.fudaa.ebli.geometrie.GrBoite; import org.fudaa.ebli.geometrie.GrPoint; - import org.fudaa.fudaa.meshviewer.layer.MvPanelInfo.InfoData; /** --- 7,20 ---- */ package org.fudaa.fudaa.tr.data; ! import java.util.List; ! import org.fudaa.dodico.ef.EfLib; import org.fudaa.dodico.ef.EfNode; import org.fudaa.dodico.h2d.H2dBcFrontierMiddleInterface; import org.fudaa.dodico.h2d.H2dBcManagerMiddleInterface; import org.fudaa.ebli.calque.ZModeleDonnesAbstract; import org.fudaa.ebli.commun.EbliListeSelectionMultiInterface; import org.fudaa.ebli.geometrie.GrBoite; import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.fudaa.meshviewer.layer.MvPanelInfo.InfoData; /** *************** *** 26,56 **** public class TrBcBoundaryMiddleModelDefault extends ZModeleDonnesAbstract implements TrBcBoundaryMiddleModel { - protected H2dBcManagerMiddleInterface mng_; protected TrInfoSenderDelegate delegate_; /** ! * */ public TrBcBoundaryMiddleModelDefault(H2dBcManagerMiddleInterface _mng) { mng_= _mng; } /** * */ ! public int getNbFrontier() { ! return mng_.getGrid().getFrontiers().getNbFrontier(); ! } ! /** ! * ! */ ! public H2dBcFrontierMiddleInterface getFrontier(int _idxFrontier) { ! return mng_.getMiddleFrontier(_idxFrontier); } /** * */ ! public void getPoint(GrPoint _p, int _idxFr, int _idxPtOnFrontier) { ! EfNode p= ! mng_.getGrid().getPt(mng_.getGrid().getFrontiers().getIdxGlobal(_idxFr, _idxPtOnFrontier)); ! _p.setCoordonnees(p.getX(), p.getY(), p.getZ()); } /** --- 24,49 ---- public class TrBcBoundaryMiddleModelDefault extends ZModeleDonnesAbstract implements TrBcBoundaryMiddleModel { protected TrInfoSenderDelegate delegate_; + protected H2dBcManagerMiddleInterface mng_; /** ! * @param _mng le manager de bord */ public TrBcBoundaryMiddleModelDefault(H2dBcManagerMiddleInterface _mng) { mng_= _mng; } + + /** * */ ! public final void fillWithInfo(InfoData _m, EbliListeSelectionMultiInterface _s) { ! if(delegate_!=null) delegate_.fillWithBoundaryMiddleInfo(_m, _s); } + /** * */ ! public TrInfoSenderDelegate getDelegate() { ! return delegate_; } /** *************** *** 68,79 **** * */ ! public int getNombre() { ! return getNbFrontier(); } /** * */ ! public Object getObject(int _ind) { ! return null; } /** --- 61,76 ---- * */ ! public H2dBcFrontierMiddleInterface getFrontier(int _idxFrontier) { ! return mng_.getMiddleFrontier(_idxFrontier); } + /** * */ ! public int getGlobalIdx(int _idxFr, int _idxOnFrontier) { ! return mng_.getGrid().getFrontiers().getIdxGlobal(_idxFr, _idxOnFrontier); ! } ! public int getNbBoundaryType() { ! return mng_.getNbBoundaryType(); } /** *************** *** 86,120 **** * */ public int getNbTotalPt() { return mng_.getGrid().getFrontiers().getNbTotalPt(); } - /** * */ ! public int getGlobalIdx(int _idxFr, int _idxOnFrontier) { ! return mng_.getGrid().getFrontiers().getIdxGlobal(_idxFr, _idxOnFrontier); } - /** * */ ! public TrInfoSenderDelegate getDelegate() { ! return delegate_; } - /** * */ ! public void setDelegate(TrInfoSenderDelegate _delegate) { ! delegate_= _delegate; } - /** * */ ! public final void fillWithInfo(InfoData _m, EbliListeSelectionMultiInterface _s) { ! if(delegate_!=null) delegate_.fillWithBoundaryMiddleInfo(_m, _s); } --- 83,124 ---- * */ + public int getNbFrontier() { + return mng_.getGrid().getFrontiers().getNbFrontier(); + } + /** + * + */ public int getNbTotalPt() { return mng_.getGrid().getFrontiers().getNbTotalPt(); } /** * */ ! public int getNombre() { ! return getNbFrontier(); } /** * */ ! public Object getObject(int _ind) { ! return null; } /** * */ ! public void getPoint(GrPoint _p, int _idxFr, int _idxPtOnFrontier) { ! EfNode p= ! mng_.getGrid().getPt(mng_.getGrid().getFrontiers().getIdxGlobal(_idxFr, _idxPtOnFrontier)); ! _p.setCoordonnees(p.getX(), p.getY(), p.getZ()); ! } ! public List getUsedBoundaryType() { ! return mng_.getUsedBoundaryType(); } /** * */ ! public void setDelegate(TrInfoSenderDelegate _delegate) { ! delegate_= _delegate; } Index: TrBcBoundaryLayerAbstract.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryLayerAbstract.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TrBcBoundaryLayerAbstract.java 5 May 2004 12:42:39 -0000 1.6 --- TrBcBoundaryLayerAbstract.java 11 Jun 2004 16:40:38 -0000 1.7 *************** *** 1,4 **** ! /* ! * @file TrCalqueBordAbstract.java * @creation 20 nov. 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 20 nov. 2003 * @modification $Date$ *************** *** 8,18 **** */ package org.fudaa.fudaa.tr.data; import java.awt.Color; import java.util.HashMap; import org.fudaa.dodico.h2d.type.H2dBoundaryType; ! import org.fudaa.ebli.calque.ZCalqueAffichageDonneesMultiSpecial; import org.fudaa.ebli.trace.TraceLigne; ! ! import org.fudaa.fudaa.meshviewer.layer.*; import org.fudaa.fudaa.tr.common.TrResource; /** --- 7,19 ---- */ package org.fudaa.fudaa.tr.data; + import java.awt.Color; import java.util.HashMap; + import org.fudaa.dodico.h2d.type.H2dBoundaryType; ! import org.fudaa.ebli.calque.BCalqueLegende; ! import org.fudaa.ebli.palette.BPalettePlage; import org.fudaa.ebli.trace.TraceLigne; ! import org.fudaa.fudaa.meshviewer.layer.MvLayer; import org.fudaa.fudaa.tr.common.TrResource; /** *************** *** 20,64 **** * @version $Id$ */ ! public abstract class TrBcBoundaryLayerAbstract ! extends TrLayerMulti implements MvLayer{ public class BordTraceLigneData { HashMap bdTypeTlDataMap_; public BordTraceLigneData() {} public TraceLigne.Data getTlData(H2dBoundaryType _bd) { ! if (bdTypeTlDataMap_ == null) ! bdTypeTlDataMap_= new HashMap(6); ! TraceLigne.Data r= (TraceLigne.Data)bdTypeTlDataMap_.get(_bd); if (r == null) { ! r= initBordTraceLigneData(_bd); bdTypeTlDataMap_.put(_bd, r); } return r; } ! protected TraceLigne.Data initBordTraceLigneData(H2dBoundaryType _t) { ! if (_t == H2dBoundaryType.SOLIDE_FROTTEMENT) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.orange); ! else if (_t == H2dBoundaryType.SOLIDE) ! return new TraceLigne.Data( ! TraceLigne.LISSE, ! 1f, ! new Color(164, 95, 30)); ! else if (_t == H2dBoundaryType.LIQUIDE_DEBIT_IMPOSE) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.red); ! else if (_t == H2dBoundaryType.LIQUIDE_ONDE_INCIDENCE) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.magenta); ! else if (_t == H2dBoundaryType.LIQUIDE_HAUTEUR_VITESSES_IMPOSEES) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.orange); ! else if (_t == H2dBoundaryType.LIQUIDE_HAUTEUR_IMPOSEE) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.green); ! else if (_t == H2dBoundaryType.LIQUIDE_VITESSES_IMPOSEES) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.yellow); ! //liquid ! else if (_t.isLiquide()) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.cyan); ! else ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, Color.black); } } protected BordTraceLigneData bdTlData_; /** * --- 21,61 ---- * @version $Id$ */ ! public abstract class TrBcBoundaryLayerAbstract extends TrLayerMulti implements MvLayer, ! TrBcBoundaryLayer { ! ! public class BordTraceLigneData { + HashMap bdTypeTlDataMap_; + public BordTraceLigneData() {} + public TraceLigne.Data getTlData(H2dBoundaryType _bd) { ! if (bdTypeTlDataMap_ == null) bdTypeTlDataMap_ = new HashMap(6); ! TraceLigne.Data r = (TraceLigne.Data) bdTypeTlDataMap_.get(_bd); if (r == null) { ! r = initBordTraceLigneData(_bd); bdTypeTlDataMap_.put(_bd, r); } return r; } ! } ! ! /** ! * Met a jour la legende en fonction des bords utilises ! */ ! public void updateLegende(){ ! BCalqueLegende l=getLegende(); ! if(l!=null){ ! TrBcBoundaryLegendPanel p=(TrBcBoundaryLegendPanel)l.getLegende(this); ! p.init(this); ! l.revalidate(); } } + protected BordTraceLigneData bdTlData_; + + private int idxColor_; + /** * *************** *** 67,75 **** setTitle(TrResource.getS("Bords")); } public TraceLigne.Data getTlData(H2dBoundaryType _t) { ! if (bdTlData_ == null) ! bdTlData_= new BordTraceLigneData(); return bdTlData_.getTlData(_t); } ! ! } --- 64,85 ---- setTitle(TrResource.getS("Bords")); } + + public abstract int getNbBoundaryType(); + public TraceLigne.Data getTlData(H2dBoundaryType _t) { ! if (bdTlData_ == null) bdTlData_ = new BordTraceLigneData(); return bdTlData_.getTlData(_t); } ! ! protected TraceLigne.Data initBordTraceLigneData(H2dBoundaryType _t) { ! if (_t == H2dBoundaryType.SOLIDE_FROTTEMENT) return new TraceLigne.Data(TraceLigne.LISSE, 1f, ! Color.orange); ! else if (_t == H2dBoundaryType.SOLIDE) ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, new Color(164, 95, 30)); ! Color c = BPalettePlage.getCouleur(Color.red, Color.green, ((double) idxColor_) ! / ((double) getNbBoundaryType())); ! idxColor_++; ! return new TraceLigne.Data(TraceLigne.LISSE, 1f, c); ! } ! ! } \ No newline at end of file Index: MvFindComponentBcPoint.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/MvFindComponentBcPoint.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvFindComponentBcPoint.java 1 Jun 2004 11:27:43 -0000 1.1 --- MvFindComponentBcPoint.java 11 Jun 2004 16:40:38 -0000 1.2 *************** *** 9,23 **** package org.fudaa.fudaa.tr.data; import javax.swing.ButtonGroup; - import javax.swing.JComponent; import javax.swing.JRadioButton; - import javax.swing.JTextField; import org.fudaa.ctulu.CtuluLib; import com.memoire.bu.BuLabel; - import com.memoire.bu.BuPanel; - import org.fudaa.dodico.commun.DodicoLib; - import org.fudaa.fudaa.meshviewer.MvFindComponentDefault; - import org.fudaa.fudaa.tr.common.TrResource; /** * @author deniger --- 9,19 ---- package org.fudaa.fudaa.tr.data; import javax.swing.ButtonGroup; import javax.swing.JRadioButton; import org.fudaa.ctulu.CtuluLib; + import org.fudaa.fudaa.meshviewer.MvFindComponentDefault; + import org.fudaa.fudaa.meshviewer.MvResource; import com.memoire.bu.BuLabel; /** * @author deniger *************** *** 32,37 **** super(_l); JRadioButton bt1= ! new JRadioButton(TrResource.getS("Index(s) sur les frontières")); ! generalData_= new JRadioButton(TrResource.getS("Index(s) généraux")); bt1.setMnemonic('f'); if (bt1.getText().indexOf('f') < 0) --- 28,33 ---- super(_l); JRadioButton bt1= ! new JRadioButton(MvResource.getS("Index(s) sur les frontières")); ! generalData_= new JRadioButton(MvResource.getS("Index(s) généraux")); bt1.setMnemonic('f'); if (bt1.getText().indexOf('f') < 0) Index: TrBcBoundaryBlockLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryBlockLayer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TrBcBoundaryBlockLayer.java 5 May 2004 12:42:39 -0000 1.6 --- TrBcBoundaryBlockLayer.java 11 Jun 2004 16:40:38 -0000 1.7 *************** *** 15,18 **** --- 15,19 ---- import java.awt.Graphics; import java.awt.Graphics2D; + import java.util.List; import javax.swing.Icon; *************** *** 43,46 **** --- 44,50 ---- public class TrBcBoundaryBlockLayer extends TrBcBoundaryLayerAbstract { + public void modeleDonneesChanged(ZModeleDonnees _d) { + updateLegende(); + } protected TrBcBoundaryBlockModel m_; protected TraceLigne tl_; *************** *** 51,57 **** public TrBcBoundaryBlockLayer(TrBcBoundaryBlockModel _m) { m_= _m; - m_.setListener(this); bdTlData_= new BordTraceLigneData(); } /** * --- 55,65 ---- public TrBcBoundaryBlockLayer(TrBcBoundaryBlockModel _m) { m_= _m; bdTlData_= new BordTraceLigneData(); } + public List getUsedBoundaryType() { + return m_.getUsedBoundaryType(); + } + + /** * *************** *** 295,299 **** * */ ! public int[] getPtIdx() { if (!isSelectionEmpty()) { TIntHashSet r= new TIntHashSet(m_.getNbTotalPt()); --- 303,307 ---- * */ ! public int[] getSelectedPtIdx() { if (!isSelectionEmpty()) { TIntHashSet r= new TIntHashSet(m_.getNbTotalPt()); *************** *** 324,328 **** * */ ! public int[] getElementIdx() { return null; } --- 332,336 ---- * */ ! public int[] getSelectedElementIdx() { return null; } *************** *** 405,407 **** --- 413,418 ---- } + public int getNbBoundaryType() { + return m_.getNbBoundaryType(); + } } Index: TrBcBoundaryBlockModel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrBcBoundaryBlockModel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TrBcBoundaryBlockModel.java 12 Feb 2004 16:15:21 -0000 1.4 --- TrBcBoundaryBlockModel.java 11 Jun 2004 16:40:38 -0000 1.5 *************** *** 8,17 **** */ package org.fudaa.fudaa.tr.data; ! import org.fudaa.dodico.h2d.H2dBcFrontierBlockInterface; import org.fudaa.ebli.calque.ZModeleDonneesMulti; import org.fudaa.ebli.commun.EbliListeSelectionMultiInterface; import org.fudaa.ebli.geometrie.GrPoint; - import org.fudaa.fudaa.meshviewer.layer.MvPanelInfo; /** --- 8,17 ---- */ package org.fudaa.fudaa.tr.data; ! import java.util.List; + import org.fudaa.dodico.h2d.H2dBcFrontierBlockInterface; import org.fudaa.ebli.calque.ZModeleDonneesMulti; import org.fudaa.ebli.commun.EbliListeSelectionMultiInterface; import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.fudaa.meshviewer.layer.MvPanelInfo; /** *************** *** 24,27 **** --- 24,29 ---- */ public int getNbFrontier(); + + public int getNbBoundaryType(); /** * Renvoie les bords de la frontiere _i *************** *** 39,41 **** --- 41,48 ---- public void fillWithInfo(MvPanelInfo.InfoData _m,EbliListeSelectionMultiInterface _s); + + /** + * @return la liste des listes utilisees< + */ + public List getUsedBoundaryType(); } |
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7396/src/org/fudaa/fudaa/tr/common Modified Files: TrCommonImplementation.java TrExplorer.java TrImplHelperAbstract.java TrParametres.java TrXmlProjectWriter.java tr_en.fr_txt TrFileFormatManager.java TrProjet.java TrProjectDispatcherListener.java TrXmlProjectReader.java TrApplicationManager.java Added Files: TrXmlData.java TrInformationsDocument.java TrInformationSystem.java Log Message: Ajout de rubar Index: TrFileFormatManager.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrFileFormatManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrFileFormatManager.java 1 Jun 2004 11:27:43 -0000 1.2 --- TrFileFormatManager.java 11 Jun 2004 16:40:37 -0000 1.3 *************** *** 58,63 **** public static TrFileFormatManager INSTANCE=new TrFileFormatManager(); ! public static String getXmlName(String _ficSansExt){ ! return _ficSansExt+"."+XML_EXT; } --- 58,63 ---- public static TrFileFormatManager INSTANCE=new TrFileFormatManager(); ! public static String getXmlName(String _fic){ ! return _fic+"."+XML_EXT; } Index: TrParametres.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrParametres.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrParametres.java 5 May 2004 12:42:37 -0000 1.1 --- TrParametres.java 11 Jun 2004 16:40:37 -0000 1.2 *************** *** 1,4 **** ! /* ! * @file TrParametres.java * @creation 20 août 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 20 août 2003 * @modification $Date$ Index: TrProjet.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrProjet.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrProjet.java 1 Jun 2004 11:27:43 -0000 1.2 --- TrProjet.java 11 Jun 2004 16:40:37 -0000 1.3 *************** *** 29,33 **** public String getSoftwareID(); public boolean isModified(); ! public void active(TrImplementationEditorAbstract _impl); public String getTitle(); public File getParamsFile(); --- 29,33 ---- public String getSoftwareID(); public boolean isModified(); ! public void active(); public String getTitle(); public File getParamsFile(); *************** *** 42,44 **** --- 42,47 ---- public void activeGrapheFille(); public void applicationPreferencesChanged(); + public TrXmlData[] getXmlDataToSave(); + public void initFromXmlData(TrXmlData[] _l); + } Index: TrCommonImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrCommonImplementation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrCommonImplementation.java 1 Jun 2004 11:27:43 -0000 1.1 --- TrCommonImplementation.java 11 Jun 2004 16:40:37 -0000 1.2 *************** *** 9,25 **** import java.awt.Dimension; import java.awt.event.ActionEvent; ! import java.awt.event.WindowEvent; import java.io.File; import javax.swing.JComponent; - import javax.swing.JFrame; import javax.swing.JInternalFrame; - import javax.swing.JLabel; - import javax.swing.JPanel; import javax.swing.JScrollPane; ! import javax.swing.MenuSelectionManager; ! import javax.swing.SwingUtilities; ! import javax.swing.WindowConstants; import javax.swing.event.InternalFrameEvent; --- 9,23 ---- import java.awt.Dimension; + import java.awt.Frame; import java.awt.event.ActionEvent; ! import java.awt.event.ActionListener; ! import java.awt.event.KeyEvent; import java.io.File; + import java.util.Locale; import javax.swing.JComponent; import javax.swing.JInternalFrame; import javax.swing.JScrollPane; ! import javax.swing.KeyStroke; import javax.swing.event.InternalFrameEvent; *************** *** 32,51 **** import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.fudaa.commun.FudaaCommonImplementation; import org.fudaa.fudaa.commun.FudaaPreferences; - import org.fudaa.fudaa.commun.aide.FudaaAidePreferencesPanel; import org.fudaa.fudaa.fdico.FDicoPreferences; - import org.fudaa.fudaa.meshviewer.controle.MvControlResult; - import com.memoire.bu.BuApplication; - import com.memoire.bu.BuBrowserPreferencesPanel; import com.memoire.bu.BuColumn; import com.memoire.bu.BuDesktopPreferencesPanel; import com.memoire.bu.BuInformationsSoftware; - import com.memoire.bu.BuLabel; import com.memoire.bu.BuLanguagePreferencesPanel; import com.memoire.bu.BuLib; import com.memoire.bu.BuLookPreferencesPanel; import com.memoire.bu.BuMainPanel; ! import com.memoire.bu.BuPopupMenu; import com.memoire.bu.BuPreferences; import com.memoire.bu.BuPreferencesEditorPanel; --- 30,47 ---- import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.fudaa.commun.FudaaCommonImplementation; + import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.commun.FudaaPreferences; import org.fudaa.fudaa.fdico.FDicoPreferences; import com.memoire.bu.BuColumn; import com.memoire.bu.BuDesktopPreferencesPanel; + import com.memoire.bu.BuIcon; import com.memoire.bu.BuInformationsSoftware; import com.memoire.bu.BuLanguagePreferencesPanel; import com.memoire.bu.BuLib; import com.memoire.bu.BuLookPreferencesPanel; import com.memoire.bu.BuMainPanel; ! import com.memoire.bu.BuMenuBar; ! import com.memoire.bu.BuMenuItem; import com.memoire.bu.BuPreferences; import com.memoire.bu.BuPreferencesEditorPanel; *************** *** 55,58 **** --- 51,55 ---- import com.memoire.bu.BuToolBar; import com.memoire.bu.BuUserPreferencesPanel; + import com.memoire.fu.FuLib; /** *************** *** 62,73 **** public abstract class TrCommonImplementation extends FudaaCommonImplementation { public void init() { super.init(); removeUnusedActions(); setEnabledForAction("QUITTER", true); } ! protected BuPreferencesEditorPanel buildPreferences() { ! BuPreferencesEditorPanel r= new BuPreferencesEditorPanel(); r.addTab(new BuUserPreferencesPanel(this)); r.addTab(new BuLanguagePreferencesPanel(this)); --- 59,92 ---- public abstract class TrCommonImplementation extends FudaaCommonImplementation { + /** + * @see com.memoire.bu.BuCommonInterface#init() + */ public void init() { super.init(); removeUnusedActions(); + BuMenuBar b = getMainMenuBar(); + b.getMenu("MENU_AIDE").add(buildAideContextItem(this), 0); setEnabledForAction("QUITTER", true); + setEnabledForAction("PREFERENCE", true); + setEnabledForAction("MAJ", true); + if (!isSupervisor()) { + BuToolBar tb = getMainToolBar(); + tb.addToolButton(TrResource.getSupervisorName(), TrResource.getS("ouvrir le superviseur"), + "SUPERVISEUR", TrResource.getSupervisorIcon(), true).setVisible(true); + } } ! ! protected static BuMenuItem buildAideContextItem(ActionListener _l) { ! BuMenuItem it = new BuMenuItem(BuResource.BU.getIcon("aide"), BuResource.BU.getString("Aide")); ! it.setActionCommand("AIDE"); ! it.setEnabled(true); ! it.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0, false)); ! if (_l != null) it.addActionListener(_l); ! return it; ! ! } ! protected BuPreferencesEditorPanel buildPreferences() { ! BuPreferencesEditorPanel r = new BuPreferencesEditorPanel(); r.addTab(new BuUserPreferencesPanel(this)); r.addTab(new BuLanguagePreferencesPanel(this)); *************** *** 140,143 **** --- 159,163 ---- removeAction("POINTEURAIDE"); removeAction("INDEX_THEMA"); + removeAction("INDEX_ALPHA"); removeAction("PROPRIETE"); removeAction("PLEINECRAN"); *************** *** 145,148 **** --- 165,171 ---- } + /** + * @return true si superviseur + */ public boolean isSupervisor() { return false; *************** *** 154,164 **** public void start() { super.start(); ! if (!isSupervisor()) { ! BuToolBar tb = getMainToolBar(); ! tb.addToolButton(TrResource.getSupervisorName(), TrResource.getS("ouvrir le superviseur"), ! "SUPERVISEUR", TrResource.getSupervisorIcon(), true); ! } } private void updateArbre() { if (arbre_ != null) { --- 177,190 ---- public void start() { super.start(); ! Frame f = getFrame(); ! f.setTitle(getSpecificName()); ! f.setIconImage(getSpecificIcon().getImage()); ! f.repaint(); } + protected abstract String getSpecificName(); + + protected abstract BuIcon getSpecificIcon(); + private void updateArbre() { if (arbre_ != null) { *************** *** 219,227 **** launcher_ = _l; } ! ! public TrLauncher getLauncher(){ return launcher_; } protected abstract void ouvrir(); --- 245,257 ---- launcher_ = _l; } ! ! public TrLauncher getLauncher() { return launcher_; } + public String getSpecificHtmlHelp() { + return null; + } + protected abstract void ouvrir(); *************** *** 230,238 **** */ public void actionPerformed(ActionEvent _evt) { ! if (_evt.getActionCommand().equals("SUPERVISEUR")) launcher_.openSupervisor(); ! else if (_evt.getActionCommand().equals("OUVRIR")) ouvrir(); else super.actionPerformed(_evt); } protected void savePref() { TrPreferences.TR.writeIniFile(); --- 260,296 ---- */ public void actionPerformed(ActionEvent _evt) { ! String act = _evt.getActionCommand(); ! if (act.equals("SUPERVISEUR")) launcher_.openSupervisor(); ! else if (act.equals("OUVRIR")) ouvrir(); ! else if (act.equals("AIDE")) displayAide(); ! else if (act.equals("AIDE_INDEX")) displayAideIndex(); ! else if (act.equals("MAJ")) maj(); else super.actionPerformed(_evt); } + protected void maj() { + if (FudaaLib.isLocalFrench()) { + displayURL(getInformationsSoftware().update + "&lang=fr"); + } + else displayURL(getInformationsSoftware().update); + } + + protected void displayAide() { + String m = launcher_.getCurrentPrefHydId(); + String spec = getSpecificHtmlHelp(); + if (spec != null) displayURL(getInformationsSoftware().man + m + "/" + spec); + else displayAideIndex(); + } + + protected void displayAideIndex() { + String m = launcher_.getCurrentPrefHydId(); + if (FudaaLib.isLocalFrench()) { + displayURL(getInformationsSoftware().man + m + "/index.html"); + } + else { + displayURL(getInformationsSoftware().man + m + "/index.en.html"); + } + } + protected void savePref() { TrPreferences.TR.writeIniFile(); *************** *** 243,245 **** --- 301,307 ---- } + + public void installContextHelp(JComponent _cp, String _url) {} + + public void installContextHelp(JComponent _cp) {} } \ No newline at end of file Index: tr_en.fr_txt =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/tr_en.fr_txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tr_en.fr_txt 1 Jun 2004 11:27:43 -0000 1.3 --- tr_en.fr_txt 11 Jun 2004 16:40:37 -0000 1.4 *************** *** 211,213 **** Ce n'est pas le dossier des exécutable telemac=It's the Telemac binaries folder Exécutable non trouvé=Executable not found ! Vous pouvez modifier le dossier des exécutables Telemac dans le panneau des préférences (Alt+F2)=You can modify the Telemac binary folder thanks to the preferences panel (Alt+F2). \ No newline at end of file --- 211,228 ---- Ce n'est pas le dossier des exécutable telemac=It's the Telemac binaries folder Exécutable non trouvé=Executable not found ! Vous pouvez modifier le dossier des exécutables Telemac dans le panneau des préférences (Alt+F2)=You can modify the Telemac binary folder thanks to the preferences panel (Alt+F2). ! Créer projet Telemac=Create a Telemac project ! Fixe=Constant ! Variable en temps=Variable in time ! Variable en l'espace=Variable in space ! Libre=Free ! Imposé sur ce bord=Imposed on this boundary ! Reflux fait appel à l'optimiseur de bande OLB. Vous pouvez préciser le chemin de l'exécutable dans le panneau de préférences.=Reflux needs OLB to create a new project. you can specify the path for the OLB executable thanks to the preferences panel. ! Reflux ne fonctionne pas sur votre système=Reflux is not compatible with your system. ! Répertoire des exécutable Reflux=Reflux executables folder ! Répertoire des exécutable OLB=OLB executables folder ! répertoire non valide=Not valid folder ! Les variables {0} ne sont pas entièrement spécifiées.=The {0} variables are not well specified. ! Les points libres seront fixés à 0.=The free points will be fixed to 0. ! Nombre d'arêtes=Number of edges ! Arêtes externes=Extern edges \ No newline at end of file Index: TrApplicationManager.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrApplicationManager.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TrApplicationManager.java 1 Jun 2004 11:27:43 -0000 1.3 --- TrApplicationManager.java 11 Jun 2004 16:40:37 -0000 1.4 *************** *** 294,298 **** */ public FudaaExecConsole() { ! super("console"); } --- 294,298 ---- */ public FudaaExecConsole() { ! super(TrResource.getS("console")); } *************** *** 410,413 **** --- 410,414 ---- */ public void execInDir(File _dir, FudaaUI _ui) { + System.out.println("launch post"); launcher_.openPost(null); } --- NEW FILE: TrInformationsDocument.java --- /** * @creation 7 juin 2004 * @modification $Date: 2004/06/11 16:40:37 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.fudaa.tr.common; import com.memoire.bu.BuInformationsDocument; /** * @author Fred Deniger * @version $Id: TrInformationsDocument.java,v 1.1 2004/06/11 16:40:37 deniger Exp $ */ public class TrInformationsDocument implements TrXmlData { public BuInformationsDocument doc_; /** * */ public TrInformationsDocument() { super(); } /** * @see org.fudaa.fudaa.tr.common.TrXmlData#initProjectFromData(org.fudaa.fudaa.tr.common.TrProjet) */ public void initProjectFromData(TrProjet _target) {} } --- NEW FILE: TrXmlData.java --- /** * @creation 7 juin 2004 * @modification $Date: 2004/06/11 16:40:37 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.fudaa.tr.common; /** * @author Fred Deniger * @version $Id: TrXmlData.java,v 1.1 2004/06/11 16:40:37 deniger Exp $ */ public interface TrXmlData { public void initProjectFromData(TrProjet _target); } Index: TrProjectDispatcherListener.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrProjectDispatcherListener.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrProjectDispatcherListener.java 1 Jun 2004 11:27:43 -0000 1.2 --- TrProjectDispatcherListener.java 11 Jun 2004 16:40:37 -0000 1.3 *************** *** 1,4 **** ! /* ! * @file TrH2dProjectListener.java @creation 13 nov. 2003 @modification $Date$ * @license GNU General Public License 2 @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 * Compiegne @mail de...@fu... --- 1,4 ---- ! /** ! * @creation 13 nov. 2003 @modification $Date$ * @license GNU General Public License 2 @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 * Compiegne @mail de...@fu... *************** *** 7,10 **** --- 7,11 ---- import java.awt.Frame; + import java.io.File; import org.fudaa.ctulu.CtuluLib; *************** *** 20,23 **** --- 21,26 ---- import org.fudaa.dodico.mesure.EvolutionReguliere; import org.fudaa.fudaa.commun.FudaaLib; + + import com.memoire.fu.FuLib; /** * @author deniger *************** *** 41,60 **** } ! protected static void changedMainFrameState(boolean _modified, Frame _f) { ! String s = _f.getTitle(); ! if (_modified) { ! if (!s.startsWith("*")) { ! _f.setTitle("*" + s); ! } ! } ! else { ! if (s.startsWith("*")) { ! _f.setTitle(s.substring(1)); ! } ! } } /** ! * */ public void bcBoundaryTypeChanged(H2dBoundary b, H2dBoundaryType _old) { --- 44,62 ---- } ! /** ! * @param _modified ! * @param _f ! * @param _p ! */ ! public static void changedMainFrameState(boolean _modified, Frame _f, TrProjet _p) { ! File f = _p.getParamsFile(); ! String s = _p.getSoftwareID() + ": " ! + (f == null ? "?" : FuLib.reducedPath(f.getAbsolutePath())) ! + (_modified ? "*" : CtuluLib.EMPTY_STRING); ! _f.setTitle(s); } /** ! * @see org.fudaa.dodico.h2d.H2dBcListener#bcBoundaryTypeChanged(org.fudaa.dodico.h2d.H2dBoundary, org.fudaa.dodico.h2d.type.H2dBoundaryType) */ public void bcBoundaryTypeChanged(H2dBoundary b, H2dBoundaryType _old) { *************** *** 63,67 **** /** ! * */ public void dicoParamsEntiteRemoved(DicoParams _cas, DicoEntite _ent, String _oldValue) { --- 65,69 ---- /** ! * @see org.fudaa.dodico.dico.DicoParamsListener#dicoParamsEntiteRemoved(org.fudaa.dodico.dico.DicoParams, org.fudaa.dodico.dico.DicoEntite, java.lang.String) */ public void dicoParamsEntiteRemoved(DicoParams _cas, DicoEntite _ent, String _oldValue) { *************** *** 70,74 **** /** ! * */ public void dicoParamsEntiteAdded(DicoParams _cas, DicoEntite _ent) { --- 72,76 ---- /** ! * @see org.fudaa.dodico.dico.DicoParamsListener#dicoParamsEntiteAdded(org.fudaa.dodico.dico.DicoParams, org.fudaa.dodico.dico.DicoEntite) */ public void dicoParamsEntiteAdded(DicoParams _cas, DicoEntite _ent) { *************** *** 77,81 **** /** ! * */ public void dicoParamsEntiteUpdated(DicoParams _cas, DicoEntite _ent, String _oldValue) { --- 79,83 ---- /** ! * @see org.fudaa.dodico.dico.DicoParamsListener#dicoParamsEntiteUpdated(org.fudaa.dodico.dico.DicoParams, org.fudaa.dodico.dico.DicoEntite, java.lang.String) */ public void dicoParamsEntiteUpdated(DicoParams _cas, DicoEntite _ent, String _oldValue) { *************** *** 85,89 **** /** ! * */ public void dicoParamsValidStateEntiteUpdated(DicoParams _cas, DicoEntite _ent) { --- 87,91 ---- /** ! * @see org.fudaa.dodico.dico.DicoParamsListener#dicoParamsValidStateEntiteUpdated(org.fudaa.dodico.dico.DicoParams, org.fudaa.dodico.dico.DicoEntite) */ public void dicoParamsValidStateEntiteUpdated(DicoParams _cas, DicoEntite _ent) { *************** *** 92,106 **** /** ! * */ public void dicoParamsProjectModifyStateChanged(DicoParams _cas) {} /** ! * */ public void dicoParamsStateLoadedEntiteChanged(DicoParams _cas, DicoEntite _ent) {} /** ! * */ public void bcFrontierStructureChanged(H2dBcFrontierInterface _b) { --- 94,108 ---- /** ! * @see org.fudaa.dodico.dico.DicoParamsListener#dicoParamsProjectModifyStateChanged(org.fudaa.dodico.dico.DicoParams) */ public void dicoParamsProjectModifyStateChanged(DicoParams _cas) {} /** ! * @see org.fudaa.dodico.dico.DicoParamsListener#dicoParamsStateLoadedEntiteChanged(org.fudaa.dodico.dico.DicoParams, org.fudaa.dodico.dico.DicoEntite) */ public void dicoParamsStateLoadedEntiteChanged(DicoParams _cas, DicoEntite _ent) {} /** ! * @see org.fudaa.dodico.h2d.H2dBcListener#bcFrontierStructureChanged(org.fudaa.dodico.h2d.H2dBcFrontierInterface) */ public void bcFrontierStructureChanged(H2dBcFrontierInterface _b) { *************** *** 109,113 **** /** ! * */ public void bcParametersChanged(H2dBoundary _b, H2dVariableType _t) { --- 111,115 ---- /** ! * @see org.fudaa.dodico.h2d.H2dBcListener#bcParametersChanged(org.fudaa.dodico.h2d.H2dBoundary, org.fudaa.dodico.h2d.type.H2dVariableType) */ public void bcParametersChanged(H2dBoundary _b, H2dVariableType _t) { *************** *** 118,122 **** /** ! * */ public void bcPointsParametersChanged(H2dVariableType _t) { --- 120,124 ---- /** ! * @see org.fudaa.dodico.h2d.H2dBcListener#bcPointsParametersChanged(org.fudaa.dodico.h2d.type.H2dVariableType) */ public void bcPointsParametersChanged(H2dVariableType _t) { *************** *** 126,130 **** /** ! * */ public void evolutionChanged(EvolutionReguliere _e) { --- 128,132 ---- /** ! * @see org.fudaa.dodico.mesure.EvolutionListener#evolutionChanged(org.fudaa.dodico.mesure.EvolutionReguliere) */ public void evolutionChanged(EvolutionReguliere _e) { *************** *** 134,138 **** /** ! * */ public void evolutionUsedChanged(H2dEvolution _e, int _old, int _new, boolean _isAdjusting) { --- 136,140 ---- /** ! * @see org.fudaa.dodico.h2d.H2dEvolutionListener#evolutionUsedChanged(org.fudaa.dodico.h2d.H2dEvolution, int, int, boolean) */ public void evolutionUsedChanged(H2dEvolution _e, int _old, int _new, boolean _isAdjusting) { *************** *** 148,152 **** /** ! * */ public void evolutionAdd(EvolutionReguliere _e) { --- 150,154 ---- /** ! * @see org.fudaa.dodico.mesure.EvolutionListener#evolutionAdd(org.fudaa.dodico.mesure.EvolutionReguliere) */ public void evolutionAdd(EvolutionReguliere _e) { *************** *** 156,159 **** --- 158,164 ---- } + /** + * @see org.fudaa.dodico.mesure.EvolutionListener#evolutionRemove(org.fudaa.dodico.mesure.EvolutionReguliere) + */ public void evolutionRemove(EvolutionReguliere _e) { super.evolutionRemove(_e); Index: TrImplHelperAbstract.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrImplHelperAbstract.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrImplHelperAbstract.java 1 Jun 2004 11:27:43 -0000 1.2 --- TrImplHelperAbstract.java 11 Jun 2004 16:40:37 -0000 1.3 *************** *** 12,15 **** --- 12,16 ---- import java.io.File; + import javax.swing.Icon; import javax.swing.JMenu; *************** *** 32,40 **** TrApplicationManager mng_; /** * @param _mng l'appli manager */ public TrImplHelperAbstract(TrApplicationManager _mng) { ! mng_=_mng; } --- 33,42 ---- TrApplicationManager mng_; + /** * @param _mng l'appli manager */ public TrImplHelperAbstract(TrApplicationManager _mng) { ! mng_ = _mng; } *************** *** 71,87 **** && (((BuDynamicMenu) c).getActionCommand().equals("OUVRIR_AUTRE"))) menu.remove(c); } - - /** * Activation de la chaine */ public void active(TrImplementationEditorAbstract _impl) { ! _impl.getFrame().setTitle( ! TrResource.getS("Editeur")); ! // _impl.getFrame().setIconImage( ! // FudaaResource.FUDAA.getIcon("appli/" + getSoftwareID()).getImage()); addOuvrirAutre(_impl); ! // _impl.addMenu(appliMng_.getAppliMenu(), _impl.getNbMenuInMenuBar() - 1); } --- 73,88 ---- && (((BuDynamicMenu) c).getActionCommand().equals("OUVRIR_AUTRE"))) menu.remove(c); } /** * Activation de la chaine + * + * @param _impl l'impl cible */ public void active(TrImplementationEditorAbstract _impl) { ! _impl.getFrame().setTitle(TrResource.getS("Editeur")); ! Icon ic = FudaaResource.FUDAA.getIcon("appli/" + getSoftwareID()); ! if (ic != null) _impl.getMainPanel().getDesktop().setLogo(ic); addOuvrirAutre(_impl); ! // _impl.addMenu(appliMng_.getAppliMenu(), _impl.getNbMenuInMenuBar() - 1); } *************** *** 93,98 **** * @return un nouveau projet */ ! public abstract TrProjet creer(TrImplementationEditorAbstract _impl,ProgressionInterface _op, File _initGrid, BuTask _t); ! /** --- 94,99 ---- * @return un nouveau projet */ ! public abstract TrProjet creer(TrImplementationEditorAbstract _impl, ProgressionInterface _op, ! File _initGrid, BuTask _t); /** *************** *** 113,117 **** * @return le projet ouvert */ ! public abstract TrProjet ouvrir(TrImplementationEditorAbstract _impl,ProgressionInterface _op, BuTask _t); /** --- 114,119 ---- * @return le projet ouvert */ ! public abstract TrProjet ouvrir(TrImplementationEditorAbstract _impl, ProgressionInterface _op, ! BuTask _t); /** *************** *** 121,125 **** * @return le projet ouvert */ ! public abstract TrProjet ouvrir(TrImplementationEditorAbstract _impl,ProgressionInterface _op, File _f, BuTask _t); /** --- 123,128 ---- * @return le projet ouvert */ ! public abstract TrProjet ouvrir(TrImplementationEditorAbstract _impl, ProgressionInterface _op, ! File _f, BuTask _t); /** *************** *** 132,136 **** } - public TrApplicationManager getAppliMng() { return mng_; --- 135,138 ---- Index: TrXmlProjectWriter.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrXmlProjectWriter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrXmlProjectWriter.java 5 May 2004 12:42:37 -0000 1.1 --- TrXmlProjectWriter.java 11 Jun 2004 16:40:37 -0000 1.2 *************** *** 1,4 **** ! /* ! * @file TrXmlProject.java * @creation 15 mars 2004 * @modification $Date$ --- 1,3 ---- ! /** * @creation 15 mars 2004 * @modification $Date$ *************** *** 9,20 **** package org.fudaa.fudaa.tr.common; import java.io.IOException; - import java.io.Writer; - - import com.memoire.bu.BuInformationsDocument; - - import org.fudaa.ctulu.CtuluLib; - import org.fudaa.dodico.commun.DodicoAnalyze; /** --- 8,16 ---- package org.fudaa.fudaa.tr.common; + import java.io.File; + import java.io.FileOutputStream; import java.io.IOException; + import org.fudaa.dodico.boony.BoonyXmlSerializer; /** *************** *** 22,100 **** * @version $Id$ */ ! public abstract class TrXmlProjectWriter { ! String enconding_; ! protected Writer out_; ! String lineSep_; ! protected DodicoAnalyze a_; /** * */ ! public TrXmlProjectWriter() { ! lineSep_ = CtuluLib.LINE_SEP; ! enconding_ = System.getProperty("file.encoding"); ! if (enconding_ == null) { ! if (CtuluLib.isFrenchLanguageSelected()) ! enconding_ = "ISO-8859-1"; ! else enconding_ = "UTF-8"; ! } } /** ! * @return le projet en question ! */ ! public abstract TrParametres getProjet(); ! ! /** ! * Ecriture du fichier */ ! public final void writeFile() { ! a_ = new DodicoAnalyze(); try { ! out_.write("<project>"); ! writeDocInfo(getProjet().getInformationsDocument()); ! writeData(); ! out_.write("</project>"); ! out_.close(); } catch (IOException e) { ! a_.manageException(e); } - } - - - /** - * Ecrit les donnees specifiques du projet - * - * @throws IOException - */ - protected void writeData() throws IOException {} - - /** - * @param _doc la doc - * @throws IOException - */ - protected final void writeDocInfo(BuInformationsDocument _doc) throws IOException { - out_.write("<doc>"); - write("author", _doc.author); - write("date", _doc.date); - write("version", _doc.version); - write("location", _doc.location); - write("comment", _doc.comment); - out_.write("</doc>"); - } - protected void write(String _xmlTag, String _n) throws IOException { - if ((_n != null) && (_n.length() > 0)) - out_.write("<" + _xmlTag + ">" + _n + "</" + _xmlTag + ">" + lineSep_); } ! /** ! * @param _l la ligne a ecrire ! * @throws IOException ! */ ! public void writeln(String _l) throws IOException { ! out_.write(_l + lineSep_); ! } ! } --- 18,60 ---- * @version $Id$ */ ! public final class TrXmlProjectWriter { ! TrProjet p_; ! TrXmlData[] ds_; /** * */ ! public TrXmlProjectWriter(TrProjet _p) { ! p_ = _p; ! ds_ = _p.getXmlDataToSave(); } /** ! * @param _f */ ! public void write(File _f) { ! if (ds_ == null) return; ! BoonyXmlSerializer xml = null; try { ! xml = new BoonyXmlSerializer(false); ! xml.open(new FileOutputStream(_f)); ! for (int i = 0; i < ds_.length; i++) { ! xml.write(ds_[i]); ! } } catch (IOException e) { ! e.printStackTrace(); ! } ! finally { ! try { ! xml.close(); ! } ! catch (IOException e1) { ! e1.printStackTrace(); ! } } } ! } \ No newline at end of file --- NEW FILE: TrInformationSystem.java --- /** * @creation 7 juin 2004 * @modification $Date: 2004/06/11 16:40:37 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.fudaa.tr.common; /** * @author Fred Deniger * @version $Id: TrInformationSystem.java,v 1.1 2004/06/11 16:40:37 deniger Exp $ */ public class TrInformationSystem implements TrXmlData{ /** * L'identifiant du systeme Reflux,Telemac ou Rubar */ public String id_; /** * Le langage choisi pour la modelisation. * Typique Telemac */ public String language_; /** * La version du systeme utilise pour le projet */ public String version_; /** * Subief, Telemac 2d, Courantologie 2d, 3d,etc */ public String modelType_; /** * */ public TrInformationSystem() { super(); } public void initProjectFromData(TrProjet _target) {} } Index: TrExplorer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrExplorer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TrExplorer.java 1 Jun 2004 11:27:43 -0000 1.3 --- TrExplorer.java 11 Jun 2004 16:40:37 -0000 1.4 *************** *** 31,35 **** * @version $id$ */ ! public class TrExplorer extends FudaaExplorer implements Observer { private class ExplorerMenuItem extends BuMenuItem { --- 31,35 ---- * @version $id$ */ ! public class TrExplorer extends FudaaExplorer { private class ExplorerMenuItem extends BuMenuItem { *************** *** 99,103 **** public TrExplorer(TrCommonImplementation _impl, TrApplicationManager _appli, FuFile _path) { super(_impl, true, _path); ! EbliFavoriteFiles.INSTANCE.setObserver(this); ui_=_impl; miAntBuild_ = null; --- 99,103 ---- public TrExplorer(TrCommonImplementation _impl, TrApplicationManager _appli, FuFile _path) { super(_impl, true, _path); ! ui_=_impl; miAntBuild_ = null; *************** *** 174,186 **** } ! /** ! * @see java.util.Observer#update(java.util.Observable, java.lang.Object) ! */ ! public void update(Observable _o, Object _arg) { ! roots_.removeActionListener(this); ! roots_.removeAllItems(); ! super.addMtab(); ! roots_.addActionListener(this); ! } protected void updateMenuCurrent() { --- 174,178 ---- } ! protected void updateMenuCurrent() { Index: TrXmlProjectReader.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/common/TrXmlProjectReader.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrXmlProjectReader.java 5 May 2004 12:42:36 -0000 1.1 --- TrXmlProjectReader.java 11 Jun 2004 16:40:37 -0000 1.2 *************** *** 1,4 **** ! /* ! * @file TrXmlProjectReader.java * @creation 16 mars 2004 * @modification $Date$ --- 1,3 ---- ! /** * @creation 16 mars 2004 * @modification $Date$ *************** *** 10,114 **** import java.io.File; import java.io.IOException; ! import java.util.HashMap; ! import java.util.Map; ! ! import com.memoire.bu.BuInformationsDocument; ! import com.memoire.xml.XmlListener; ! import com.memoire.xml.XmlParser; import org.fudaa.fudaa.commun.FudaaUI; - /** * @author Fred Deniger * @version $Id$ */ ! public class TrXmlProjectReader implements XmlListener{ ! ! /** ! * Reader pour la documentation ! */ ! public class DocXmlReader implements XmlListener{ ! private final int author_=1; ! private final int date_=author_+1; ! private final int comment_=date_+1; ! ! int data_; ! ! ! /** ! * @see com.memoire.xml.XmlListener#attribute(java.lang.String, java.lang.String) ! */ ! public void attribute(String _name, String _value) { ! } ! ! /** ! * @see com.memoire.xml.XmlListener#endElement(java.lang.String) ! */ ! public void endElement(String _tag) { ! data_=-1; ! } ! ! /** ! * @see com.memoire.xml.XmlListener#error(java.lang.String) ! */ ! public void error(String _message) { ! TrXmlProjectReader.this.error(_message); ! } ! ! /** ! * @see com.memoire.xml.XmlListener#location(java.lang.String, int, int) ! */ ! public void location(String _origin, int _lineno, int _charno) { ! } ! ! /** ! * @see com.memoire.xml.XmlListener#startElement(java.lang.String) ! */ ! public void startElement(String _tag) { ! if(_tag.equals("doc")){ ! doc_=new BuInformationsDocument(); ! } ! else if("author".equals(_tag)){ ! this.data_=author_; ! } ! else if("date".equals(_tag)){ ! this.data_=date_; ! } ! else if("comment".equals(_tag)){ ! this.data_=comment_; ! } ! ! } ! ! /** ! * @see com.memoire.xml.XmlListener#text(java.lang.String) ! */ ! public void text(String _data) { ! if(data_>=0){ ! if(data_==author_){ ! doc_.author=_data; ! } ! else if(data_==date_){ ! doc_.date=_data; ! } ! else if(data_==comment_){ ! ! doc_.comment=_data; ! } ! } ! else error(_data); ! } ! ! } ! ! protected XmlListener currentListener_; ! protected String currentNode_; ! protected BuInformationsDocument doc_; ! protected Map elementListener_; ! File f_; ! protected boolean isProjectStart_; protected FudaaUI ui_; --- 9,27 ---- import java.io.File; + import java.io.FileInputStream; import java.io.IOException; ! import java.util.NoSuchElementException; + import org.fudaa.ctulu.CtuluLib; + import org.fudaa.dodico.boony.BoonyXmlDeserializer; import org.fudaa.fudaa.commun.FudaaUI; /** * @author Fred Deniger * @version $Id$ */ ! public class TrXmlProjectReader { ! File f_; protected FudaaUI ui_; *************** *** 117,214 **** */ public TrXmlProjectReader(File _f) { ! f_=_f; ! elementListener_=new HashMap(5); ! } ! ! protected void initListener(){ ! elementListener_.put("doc",new DocXmlReader()); ! } ! /** ! * @see com.memoire.xml.XmlListener#attribute(java.lang.String, java.lang.String) ! */ ! public void attribute(String _name, String _value) { ! if(currentListener_!=null){ ! currentListener_.attribute(_name,_value); ! } } ! /** ! * @see com.memoire.xml.XmlListener#endElement(java.lang.String) ! */ ! public void endElement(String _tag) { ! if(_tag.equals(currentNode_)){ ! if(currentListener_!=null) ! currentListener_.endElement(_tag); ! currentListener_=null; ! } ! else if(currentListener_!=null){ ! currentListener_.endElement(_tag); ! } ! else if("project".equals(_tag)){ ! System.out.println("fin"); ! } ! else{ ! error("doc invalide"); } ! } ! ! /** ! * @see com.memoire.xml.XmlListener#error(java.lang.String) ! */ ! public void error(String _message) { ! ui_.error(_message); ! } ! ! /** ! * @see com.memoire.xml.XmlListener#location(java.lang.String, int, int) ! */ ! public void location(String _origin, int _lineno, int _charno) { ! if(currentListener_!=null){ ! currentListener_.location(_origin,_lineno,_charno); } ! } ! ! /** ! * @throws IOException ! */ ! public void read() throws IOException{ ! XmlParser parser=new XmlParser(f_,XmlParser.XML); ! initListener(); ! parser.setXmlListener(this); ! parser.parse(); ! } ! ! /** ! * @see com.memoire.xml.XmlListener#startElement(java.lang.String) ! */ ! public void startElement(String _tag) { ! if(!isProjectStart_ && (_tag.equals("project"))){ ! isProjectStart_=true; } ! else if(currentListener_!=null){ ! currentListener_.startElement(_tag); } ! else{ ! currentListener_=(XmlListener)elementListener_.get(_tag); ! ! currentNode_=_tag; ! if(currentListener_==null) error("tag non connu"); ! else currentListener_.startElement(_tag); } } ! /** ! * @see com.memoire.xml.XmlListener#text(java.lang.String) ! */ ! public void text(String _data) { ! if(currentListener_!=null) currentListener_.text(_data); ! } ! ! /** ! * @return Returns the doc. ! */ ! public BuInformationsDocument getDoc() { ! return doc_; ! } ! ! } --- 30,72 ---- */ public TrXmlProjectReader(File _f) { ! f_ = _f; } ! public void read(TrProjet _p, FudaaUI _ui) { ! if (_p == null) return; ! if (f_ == null) { ! if (_ui != null) _ui.error(TrResource.getS("Le fichier n'existe pas")); } ! BoonyXmlDeserializer xml = null; ! try { ! xml = new BoonyXmlDeserializer(false); ! xml.open(new FileInputStream(f_)); ! Object o = xml.read(); ! while (o != null) { ! ((TrXmlData) o).initProjectFromData(_p); ! try { ! o = xml.read(); ! } ! catch (NoSuchElementException e) { ! if (CtuluLib.DEBUG) CtuluLib.debug("xml reading end"); ! break; ! } ! } } ! catch (IOException _e) { ! if (_ui != null) _ui.error(_e.getLocalizedMessage()); } ! catch (ClassNotFoundException _e) { ! if (_ui != null) _ui.error(_e.getLocalizedMessage()); } ! finally { ! try { ! if (xml != null) xml.close(); ! } ! catch (IOException e1) { ! e1.printStackTrace(); ! } } } ! } \ No newline at end of file |
From: Frederic D. <de...@us...> - 2004-06-11 16:40:50
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7396/src/org/fudaa/fudaa/tr Modified Files: TrLauncherDefault.java TrEditorImplementation.java TrSupervisorImplementation.java TrMeshImplementation.java TrPostImplementation.java Tr.java Log Message: Ajout de rubar Index: Tr.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/Tr.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** Tr.java 1 Jun 2004 11:27:44 -0000 1.14 --- Tr.java 11 Jun 2004 16:40:39 -0000 1.15 *************** *** 39,43 **** isRt_.name = "prepro"; isRt_.version = "0.06"; ! isRt_.date = "2004-02-12"; isRt_.rights = TrResource.getS("Tous droits réservés") + ". CETMEF (c)2003-2004"; isRt_.contact = "de...@us..."; --- 39,43 ---- isRt_.name = "prepro"; isRt_.version = "0.06"; ! isRt_.date = "2004-06-03"; isRt_.rights = TrResource.getS("Tous droits réservés") + ". CETMEF (c)2003-2004"; isRt_.contact = "de...@us..."; *************** *** 47,51 **** isRt_.banner = TrResource.TR.getIcon("banner"); isRt_.http = "http://fudaa.sourceforge.net/prepro/"; ! isRt_.update = ""; isRt_.man = FudaaCommonImplementation.LOCAL_MAN + "prepro/html/"; isRt_.authors = new String[] { "Frédéric Deniger"}; --- 47,51 ---- isRt_.banner = TrResource.TR.getIcon("banner"); isRt_.http = "http://fudaa.sourceforge.net/prepro/"; ! isRt_.update = "http://fudaa.sourceforge.net/prepro/update.php?version="+isRt_.version; isRt_.man = FudaaCommonImplementation.LOCAL_MAN + "prepro/html/"; isRt_.authors = new String[] { "Frédéric Deniger"}; Index: TrMeshImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrMeshImplementation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrMeshImplementation.java 1 Jun 2004 11:27:44 -0000 1.1 --- TrMeshImplementation.java 11 Jun 2004 16:40:39 -0000 1.2 *************** *** 20,23 **** --- 20,24 ---- import org.fudaa.fudaa.tr.common.TrResource; + import com.memoire.bu.BuIcon; import com.memoire.bu.BuInformationsSoftware; import com.memoire.fu.FuLib; *************** *** 29,37 **** public class TrMeshImplementation extends TrCommonImplementation { private MvActLoad loader_; private MvActSave save_; protected void ouvrir() { ! cmdOuvrirFile(super.ouvrirFileChooser(null, MvResource.getS("Maillage"))); } --- 30,46 ---- public class TrMeshImplementation extends TrCommonImplementation { + protected BuIcon getSpecificIcon() { + return TrResource.getMeshIcon(); + } + + protected String getSpecificName() { + return TrResource.getMeshName(); + } + private MvActLoad loader_; private MvActSave save_; protected void ouvrir() { ! loadFile(null); } *************** *** 54,57 **** --- 63,72 ---- */ public void cmdOuvrirFile(File _f) { + if (_f != null) { + loadFile(_f); + } + } + + private void loadFile(File _f) { MvControllerSrc s = new MvControllerSrc(); s.setChecker(new MvActCheckDefault()); *************** *** 60,69 **** s.setParent(i); s.setViewer(i); ! if (_f != null) loader_.load(_f, s); ! i.setTitle(_f.getName()); ! i.setToolTipText(FuLib.reducedPath(_f.getAbsolutePath())); i.getMvVisuPanel().refreshArbreCalque(getArbreCalque()); i.addInternalFrameListener(arbre_); - } --- 75,84 ---- s.setParent(i); s.setViewer(i); ! File f=loader_.load(_f, s); ! if(f==null) return; ! i.setTitle(f.getName()); ! i.setToolTipText(FuLib.reducedPath(f.getAbsolutePath())); i.getMvVisuPanel().refreshArbreCalque(getArbreCalque()); i.addInternalFrameListener(arbre_); } *************** *** 76,83 **** public void start() { super.start(); - getFrame().setIconImage(TrResource.getMeshIcon().getImage()); - getFrame().setTitle(TrResource.getMeshName()); - getFrame().repaint(); - getFrame().show(); setEnabledForAction("OUVRIR", true); } --- 91,94 ---- Index: TrPostImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrPostImplementation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrPostImplementation.java 1 Jun 2004 11:27:44 -0000 1.1 --- TrPostImplementation.java 11 Jun 2004 16:40:39 -0000 1.2 *************** *** 19,22 **** --- 19,23 ---- import org.fudaa.fudaa.tr.post.TrPostSourceActivator; + import com.memoire.bu.BuIcon; import com.memoire.bu.BuInformationsSoftware; import com.memoire.fu.FuLib; *************** *** 29,32 **** --- 30,39 ---- + protected BuIcon getSpecificIcon() { + return TrResource.getPostIcon(); + } + protected String getSpecificName() { + return TrResource.getPostName(); + } /** * *************** *** 55,65 **** } - private void initFrame() { - JFrame f = (JFrame)getFrame(); - f.setIconImage(TrResource.TR.getImage("post.gif")); - f.setTitle("Post "); - // f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); - f.repaint(); - } private void majFrame(File _f) { --- 62,65 ---- *************** *** 108,112 **** public void start() { super.start(); - initFrame(); setEnabledForAction("OUVRIR", true); } --- 108,111 ---- Index: TrLauncherDefault.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrLauncherDefault.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrLauncherDefault.java 1 Jun 2004 11:27:43 -0000 1.1 --- TrLauncherDefault.java 11 Jun 2004 16:40:39 -0000 1.2 *************** *** 26,30 **** import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.ressource.FudaaResource; - import org.fudaa.fudaa.tr.common.TrApplicationManager; import org.fudaa.fudaa.tr.common.TrCommonImplementation; import org.fudaa.fudaa.tr.common.TrFileFormatManager; --- 26,29 ---- *************** *** 33,39 **** import org.fudaa.fudaa.tr.common.TrPreferences; import org.fudaa.fudaa.tr.common.TrResource; - import org.fudaa.fudaa.tr.reflux.TrRefluxAppliManager; import org.fudaa.fudaa.tr.reflux.TrRefluxImplHelper; ! import org.fudaa.fudaa.tr.telemac.TrTelemacAppliManager; import org.fudaa.fudaa.tr.telemac.TrTelemacImplHelper; --- 32,37 ---- import org.fudaa.fudaa.tr.common.TrPreferences; import org.fudaa.fudaa.tr.common.TrResource; import org.fudaa.fudaa.tr.reflux.TrRefluxImplHelper; ! import org.fudaa.fudaa.tr.rubar.TrRubarImplHelper; import org.fudaa.fudaa.tr.telemac.TrTelemacImplHelper; *************** *** 78,83 **** protected FollowApp tail_; TrImplHelperAbstract helper_; ! protected TrRefluxImplHelper refluxImplHelper_; ! protected TrTelemacImplHelper telemacImplHelper_; protected TrSupervisorImplementation impl_; --- 76,82 ---- protected FollowApp tail_; TrImplHelperAbstract helper_; ! private TrRefluxImplHelper refluxImplHelper_; ! private TrTelemacImplHelper telemacImplHelper_; ! private TrRubarImplHelper rubarImplHelper_; protected TrSupervisorImplementation impl_; *************** *** 88,107 **** */ public TrLauncherDefault() { ! helper_=getImplHelper(getHydIdFromPrefFile()); ! if(helper_==null) changeChaineCalcul(BuLib.HELPER); ! helper_=getImplHelper(getHydIdFromPrefFile()); ! if(helper_==null) changeChaineCalcul(BuLib.HELPER); ! helper_=getImplHelper(getHydIdFromPrefFile()); } ! ! public TrRefluxImplHelper getRefluxImplHelper(){ ! if(refluxImplHelper_==null) refluxImplHelper_=new TrRefluxImplHelper(this); return refluxImplHelper_; } ! public TrTelemacImplHelper getTelemacImplHelper(){ ! if(telemacImplHelper_==null) telemacImplHelper_=new TrTelemacImplHelper(this); return telemacImplHelper_; } ! /** --- 87,111 ---- */ public TrLauncherDefault() { ! helper_ = getImplHelper(getHydIdFromPrefFile()); ! if (helper_ == null) changeChaineCalcul(BuLib.HELPER); ! helper_ = getImplHelper(getHydIdFromPrefFile()); ! if (helper_ == null) changeChaineCalcul(BuLib.HELPER); ! helper_ = getImplHelper(getHydIdFromPrefFile()); } ! ! public TrRefluxImplHelper getRefluxImplHelper() { ! if (refluxImplHelper_ == null) refluxImplHelper_ = new TrRefluxImplHelper(this); return refluxImplHelper_; } ! ! public TrTelemacImplHelper getTelemacImplHelper() { ! if (telemacImplHelper_ == null) telemacImplHelper_ = new TrTelemacImplHelper(this); return telemacImplHelper_; } ! ! public TrRubarImplHelper getRubarImplHelper() { ! if (rubarImplHelper_ == null) rubarImplHelper_ = new TrRubarImplHelper(this); ! return rubarImplHelper_; ! } /** *************** *** 137,145 **** } - public TrImplHelperAbstract getImplHelper(String _id) { if (_id == null) return null; if (FileFormatSoftware.REFLUX_IS.name.equals(_id)) return getRefluxImplHelper(); else if (FileFormatSoftware.TELEMAC_IS.name.equals(_id)) return getTelemacImplHelper(); new Throwable().printStackTrace(); return null; --- 141,149 ---- } public TrImplHelperAbstract getImplHelper(String _id) { if (_id == null) return null; if (FileFormatSoftware.REFLUX_IS.name.equals(_id)) return getRefluxImplHelper(); else if (FileFormatSoftware.TELEMAC_IS.name.equals(_id)) return getTelemacImplHelper(); + else if (FileFormatSoftware.RUBAR_IS.name.equals(_id)) return getRubarImplHelper(); new Throwable().printStackTrace(); return null; *************** *** 152,156 **** return helper_.getSoftwareID(); } ! /** * @return l'identifiant de la chaine hyd 2d courante --- 156,160 ---- return helper_.getSoftwareID(); } ! /** * @return l'identifiant de la chaine hyd 2d courante *************** *** 159,167 **** return TrPreferences.TR.getStringProperty("tr.code.id", null); } ! public static String[] getChoices() { ! return new String[] { FileFormatSoftware.REFLUX_IS.name, FileFormatSoftware.TELEMAC_IS.name}; } ! /** * Permet de changer le systeme utilise --- 163,175 ---- return TrPreferences.TR.getStringProperty("tr.code.id", null); } ! ! /** ! * @return les choix ! */ public static String[] getChoices() { ! return new String[] { FileFormatSoftware.REFLUX_IS.name, FileFormatSoftware.RUBAR_IS.name, ! FileFormatSoftware.TELEMAC_IS.name}; } ! /** * Permet de changer le systeme utilise *************** *** 180,189 **** TrPreferences.TR.putStringProperty("tr.code.id", id); TrPreferences.TR.writeIniFile(); ! // helper_=getImplHelper(id); } } } ! /** * @see org.fudaa.fudaa.tr.common.TrLauncher#openLogFrame(java.io.File) --- 188,197 ---- TrPreferences.TR.putStringProperty("tr.code.id", id); TrPreferences.TR.writeIniFile(); ! // helper_=getImplHelper(id); } } } ! /** * @see org.fudaa.fudaa.tr.common.TrLauncher#openLogFrame(java.io.File) Index: TrEditorImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrEditorImplementation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrEditorImplementation.java 1 Jun 2004 11:27:43 -0000 1.1 --- TrEditorImplementation.java 11 Jun 2004 16:40:39 -0000 1.2 *************** *** 10,14 **** import java.awt.Component; - import java.awt.Dimension; import java.awt.Frame; import java.awt.Image; --- 10,13 ---- *************** *** 20,27 **** import java.io.FileOutputStream; import java.io.IOException; - import java.util.ArrayList; import java.util.Map; - import javax.swing.AbstractButton; import javax.swing.JComponent; import javax.swing.JFrame; --- 19,24 ---- *************** *** 29,33 **** import javax.swing.JMenu; import javax.swing.JMenuItem; - import javax.swing.JScrollPane; import javax.swing.SwingUtilities; --- 26,29 ---- *************** *** 41,62 **** import org.fudaa.dodico.h2d.H2dFileFormatEvolutionVersion; import org.fudaa.dodico.h2d.type.H2dFileFormatType; - import org.fudaa.ebli.calque.BArbreCalque; import org.fudaa.ebli.calque.EbliFilleCalquesInterface; - import org.fudaa.ebli.commun.EbliPreferences; - import org.fudaa.ebli.dialog.EbliFavoriteFiles; import org.fudaa.ebli.dialog.EbliSimpleDialogPanel; import org.fudaa.ebli.impression.EbliMiseEnPagePreferencesPanel; - import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.fudaa.commun.FudaaImportCsvPanel; - import org.fudaa.fudaa.commun.FudaaPreferences; - import org.fudaa.fudaa.fdico.FDicoPreferences; import org.fudaa.fudaa.ressource.FudaaResource; import org.fudaa.fudaa.tr.common.TrFileFormatManager; import org.fudaa.fudaa.tr.common.TrImplHelperAbstract; import org.fudaa.fudaa.tr.common.TrImplementationEditorAbstract; - import org.fudaa.fudaa.tr.common.TrLib; - import org.fudaa.fudaa.tr.common.TrPreferences; import org.fudaa.fudaa.tr.common.TrProjet; import org.fudaa.fudaa.tr.common.TrResource; import org.fudaa.fudaa.tr.telemac.TrTelemacAppliManager; import org.fudaa.fudaa.tr.telemac.TrTelemacExecPreferencesPanel; --- 37,52 ---- import org.fudaa.dodico.h2d.H2dFileFormatEvolutionVersion; import org.fudaa.dodico.h2d.type.H2dFileFormatType; import org.fudaa.ebli.calque.EbliFilleCalquesInterface; import org.fudaa.ebli.dialog.EbliSimpleDialogPanel; import org.fudaa.ebli.impression.EbliMiseEnPagePreferencesPanel; import org.fudaa.fudaa.commun.FudaaImportCsvPanel; import org.fudaa.fudaa.ressource.FudaaResource; import org.fudaa.fudaa.tr.common.TrFileFormatManager; import org.fudaa.fudaa.tr.common.TrImplHelperAbstract; import org.fudaa.fudaa.tr.common.TrImplementationEditorAbstract; import org.fudaa.fudaa.tr.common.TrProjet; import org.fudaa.fudaa.tr.common.TrResource; + import org.fudaa.fudaa.tr.reflux.TrRefluxExecPreferencesPanel; + import org.fudaa.fudaa.tr.reflux.TrRefluxImplHelper; import org.fudaa.fudaa.tr.telemac.TrTelemacAppliManager; import org.fudaa.fudaa.tr.telemac.TrTelemacExecPreferencesPanel; *************** *** 64,87 **** import com.memoire.acme.AcmeGifEncoder; - import com.memoire.bu.BuBrowserPreferencesPanel; - import com.memoire.bu.BuColumn; import com.memoire.bu.BuDesktopPreferencesPanel; import com.memoire.bu.BuGlassPaneStop; import com.memoire.bu.BuInformationsDocument; import com.memoire.bu.BuInformationsSoftware; import com.memoire.bu.BuLanguagePreferencesPanel; import com.memoire.bu.BuLookPreferencesPanel; - import com.memoire.bu.BuMainPanel; import com.memoire.bu.BuMenu; import com.memoire.bu.BuMenuBar; import com.memoire.bu.BuMenuItem; import com.memoire.bu.BuPreferences; - import com.memoire.bu.BuPreferencesFrame; import com.memoire.bu.BuPreferencesEditorPanel; import com.memoire.bu.BuResource; - import com.memoire.bu.BuScrollPane; - import com.memoire.bu.BuSeparator; import com.memoire.bu.BuTaskOperation; - import com.memoire.bu.BuTaskView; import com.memoire.bu.BuUserPreferencesPanel; import com.memoire.fu.FuLib; --- 54,71 ---- import com.memoire.acme.AcmeGifEncoder; import com.memoire.bu.BuDesktopPreferencesPanel; import com.memoire.bu.BuGlassPaneStop; + import com.memoire.bu.BuIcon; import com.memoire.bu.BuInformationsDocument; import com.memoire.bu.BuInformationsSoftware; import com.memoire.bu.BuLanguagePreferencesPanel; import com.memoire.bu.BuLookPreferencesPanel; import com.memoire.bu.BuMenu; import com.memoire.bu.BuMenuBar; import com.memoire.bu.BuMenuItem; import com.memoire.bu.BuPreferences; import com.memoire.bu.BuPreferencesEditorPanel; import com.memoire.bu.BuResource; import com.memoire.bu.BuTaskOperation; import com.memoire.bu.BuUserPreferencesPanel; import com.memoire.fu.FuLib; *************** *** 250,258 **** preferences_.addTab(new BuLookPreferencesPanel(this)); preferences_.addTab(new EbliMiseEnPagePreferencesPanel()); ! preferences_.addTab(new TrChainePreferencePanel()); ! if (getImplHelper().getSoftwareID().equals(TrTelemacImplHelper.getID())) { preferences_.addTab(new TrTelemacExecPreferencesPanel((TrTelemacAppliManager) launcher_ .getCurrentImplHelper().getAppliMng())); } return preferences_; } --- 234,246 ---- preferences_.addTab(new BuLookPreferencesPanel(this)); preferences_.addTab(new EbliMiseEnPagePreferencesPanel()); ! String soft = launcher_.getCurrentImplHelper().getSoftwareID(); ! if (soft.equals(TrTelemacImplHelper.getID())) { preferences_.addTab(new TrTelemacExecPreferencesPanel((TrTelemacAppliManager) launcher_ .getCurrentImplHelper().getAppliMng())); } + else if (soft.equals(TrRefluxImplHelper.getID())) { + preferences_.addTab(new TrRefluxExecPreferencesPanel()); + } + preferences_.addTab(new TrChainePreferencePanel()); return preferences_; } *************** *** 370,375 **** if (currentProject_ == null) return; Frame f = getFrame(); f.setTitle(currentProject_.getSoftwareID() + ": " ! + FuLib.reducedPath(currentProject_.getParamsFile().getAbsolutePath())); setEnabledForAction("FERMER", true); setEnabledForAction("ENREGISTRER", true); --- 358,364 ---- if (currentProject_ == null) return; Frame f = getFrame(); + File file=currentProject_.getParamsFile(); f.setTitle(currentProject_.getSoftwareID() + ": " ! + (file==null?"?":FuLib.reducedPath(file.getAbsolutePath()))); setEnabledForAction("FERMER", true); setEnabledForAction("ENREGISTRER", true); *************** *** 379,383 **** setEnabledForAction("IMPORTER", true); updateImportMenu(); ! _o.active(this); } --- 368,372 ---- setEnabledForAction("IMPORTER", true); updateImportMenu(); ! _o.active(); } *************** *** 541,566 **** it.addActionListener(TrEditorImplementation.this); menuFile.add(it, indexInsert); - - //Menu aide : on enleve le superflu - menuFile = mb.getMenu("MENU_AIDE"); - Component c; - int n = menuFile.getMenuComponentCount(); - ArrayList temp = new ArrayList(n); - for (int i = 0; i < n; i++) { - c = menuFile.getMenuComponent(i); - if (c instanceof AbstractButton) { - String com = ((AbstractButton) c).getActionCommand(); - if (!("ASSISTANT".equals(com)) && (!"INDEX_THEMA".equals(com)) && (!"MAJ".equals(com)) - && (!"ASTUCE".equals(com))) { - temp.add(c); - } - } - else temp.add(c); - } - menuFile.removeAll(); - n = temp.size(); - for (int i = 0; i < n; i++) { - menuFile.add((Component) temp.get(i)); - } buildTaskView(); --- 530,533 ---- *************** *** 686,688 **** --- 653,662 ---- } + protected BuIcon getSpecificIcon() { + return TrResource.getEditorIcon(); + } + + protected String getSpecificName() { + return TrResource.getEditorName(); + } } \ No newline at end of file Index: TrSupervisorImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrSupervisorImplementation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrSupervisorImplementation.java 1 Jun 2004 11:27:43 -0000 1.1 --- TrSupervisorImplementation.java 11 Jun 2004 16:40:39 -0000 1.2 *************** *** 8,12 **** package org.fudaa.fudaa.tr; - import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; --- 8,11 ---- *************** *** 19,22 **** --- 18,22 ---- import org.fudaa.ebli.dialog.EbliFavoriteFiles; + import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.ressource.FudaaResource; import org.fudaa.fudaa.tr.common.TrApplicationManager; *************** *** 25,28 **** --- 25,30 ---- import org.fudaa.fudaa.tr.common.TrLauncher; import org.fudaa.fudaa.tr.common.TrResource; + import org.fudaa.fudaa.tr.reflux.TrRefluxExecPreferencesPanel; + import org.fudaa.fudaa.tr.reflux.TrRefluxImplHelper; import org.fudaa.fudaa.tr.telemac.TrTelemacAppliManager; import org.fudaa.fudaa.tr.telemac.TrTelemacExecPreferencesPanel; *************** *** 30,33 **** --- 32,36 ---- import com.memoire.bu.BuDynamicMenu; + import com.memoire.bu.BuIcon; import com.memoire.bu.BuInformationsSoftware; import com.memoire.bu.BuLanguagePreferencesPanel; *************** *** 47,50 **** --- 50,61 ---- public class TrSupervisorImplementation extends TrCommonImplementation implements Observer { + /** + * @see org.fudaa.fudaa.tr.common.TrCommonImplementation#getSpecificHtmlHelp() + */ + public String getSpecificHtmlHelp() { + if (FudaaLib.isLocalFrench()) { return "pt02.html"; } + return "pt02.en.html"; + } + protected void ouvrir() {} *************** *** 89,97 **** BuMenu r = new BuMenu(BuResource.BU.getString("Aide"), "MENU_AIDE"); r.setIcon(null); r.addMenuItem(BuResource.BU.getString("Page principale"), "AIDE_INDEX", true, KeyEvent.VK_F1); r.addMenuItem(BuResource.BU.getString("A propos de..."), "APROPOSDE", true); r.addMenuItem(BuResource.BU.getString("Licence..."), "TEXTE_LICENCE", true); r.addMenuItem(BuResource.BU.getString("Site WWW"), "WWW_ACCUEIL", true); ! r.addMenuItem(BuResource.BU.getString("Mise à jour"), "MAJ", false); r.addActionListener(_l); return r; --- 100,109 ---- BuMenu r = new BuMenu(BuResource.BU.getString("Aide"), "MENU_AIDE"); r.setIcon(null); + r.add(buildAideContextItem(_l)); r.addMenuItem(BuResource.BU.getString("Page principale"), "AIDE_INDEX", true, KeyEvent.VK_F1); r.addMenuItem(BuResource.BU.getString("A propos de..."), "APROPOSDE", true); r.addMenuItem(BuResource.BU.getString("Licence..."), "TEXTE_LICENCE", true); r.addMenuItem(BuResource.BU.getString("Site WWW"), "WWW_ACCUEIL", true); ! r.addMenuItem(BuResource.BU.getString("Mise à jour"), "MAJ", true); r.addActionListener(_l); return r; *************** *** 122,127 **** r.addMenuItem(BuResource.BU.getString("Préférences"), "PREFERENCE", true, KeyEvent.VK_F2) .addActionListener(_l); ! r.addMenuItem(FudaaResource.getS("Modifier les applications externes"), "MANAGER", true) ! .addActionListener(_l); return r; } --- 134,141 ---- r.addMenuItem(BuResource.BU.getString("Préférences"), "PREFERENCE", true, KeyEvent.VK_F2) .addActionListener(_l); ! r.addMenuItem(FudaaResource.getS("Modifier les applications externes"), "MANAGER", ! BuResource.BU.getIcon("vide"), true).addActionListener(_l); ! r.addMenuItem(FudaaResource.getS("Console"), "CONSOLE", FudaaResource.FUDAA.getIcon("tail"), ! false).addActionListener(_l); return r; } *************** *** 133,140 **** r.addTab(new BuLookPreferencesPanel(this)); r.addTab(new TrChainePreferencePanel()); ! if (launcher_.getCurrentImplHelper().getSoftwareID().equals(TrTelemacImplHelper.getID())) { r.addTab(new TrTelemacExecPreferencesPanel((TrTelemacAppliManager) launcher_ .getCurrentImplHelper().getAppliMng())); } return r; } --- 147,158 ---- r.addTab(new BuLookPreferencesPanel(this)); r.addTab(new TrChainePreferencePanel()); ! String soft = launcher_.getCurrentImplHelper().getSoftwareID(); ! if (soft.equals(TrTelemacImplHelper.getID())) { r.addTab(new TrTelemacExecPreferencesPanel((TrTelemacAppliManager) launcher_ .getCurrentImplHelper().getAppliMng())); } + else if (soft.equals(TrRefluxImplHelper.getID())) { + r.addTab(new TrRefluxExecPreferencesPanel()); + } return r; } *************** *** 175,180 **** content_.revalidate(); main_toolbar_.removeAll(); - setEnabledForAction("PREFERENCE", true); - setEnabledForAction("QUITTER", true); BuMenuBar mb = getMainMenuBar(); mb.removeAll(); --- 193,196 ---- *************** *** 184,187 **** --- 200,204 ---- appliMenu_ = new TrAppliMainMenu(); mb.add(appliMenu_); + mb.add(explorer_.getFavoriteMenu()); mb.add(buildHelpMenu(this)); mb.computeMnemonics(); *************** *** 222,228 **** public void start() { super.start(); ! Frame f = getFrame(); ! f.setTitle(TrResource.getSupervisorName()); ! f.setIconImage(TrResource.getSupervisorIcon().getImage()); } --- 239,243 ---- public void start() { super.start(); ! } *************** *** 235,237 **** --- 250,259 ---- } + protected BuIcon getSpecificIcon() { + return TrResource.getSupervisorIcon(); + } + + protected String getSpecificName() { + return TrResource.getSupervisorName(); + } } \ No newline at end of file |
From: Frederic D. <de...@us...> - 2004-06-11 16:40:48
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/post In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7396/src/org/fudaa/fudaa/tr/post Modified Files: TrPostAnimator.java TrIsoLayer.java TrPostVisuPanel.java Log Message: Ajout de rubar Index: TrPostAnimator.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/post/TrPostAnimator.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TrPostAnimator.java 5 May 2004 12:42:37 -0000 1.2 --- TrPostAnimator.java 11 Jun 2004 16:40:38 -0000 1.3 *************** *** 9,12 **** --- 9,13 ---- package org.fudaa.fudaa.tr.post; + import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; *************** *** 19,22 **** --- 20,24 ---- import javax.swing.JDialog; import javax.swing.SwingUtilities; + import javax.swing.WindowConstants; import com.memoire.bu.BuButton; *************** *** 58,65 **** d_.show(); else { ! d_ = new JDialog(pn_.getFrame()); d_.setContentPane(new LauncherPanel()); d_.setModal(false); ! d_.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); d_.pack(); d_.show(); --- 60,69 ---- d_.show(); else { ! Frame f=pn_.getFrame(); ! d_ = new JDialog(f); d_.setContentPane(new LauncherPanel()); d_.setModal(false); ! d_.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); ! d_.setLocation(f.getLocation()); d_.pack(); d_.show(); *************** *** 78,82 **** */ public void windowClosed(WindowEvent _e) { - System.out.println("yes"); d_ = null; } --- 82,85 ---- Index: TrIsoLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/post/TrIsoLayer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TrIsoLayer.java 1 Jun 2004 11:27:44 -0000 1.5 --- TrIsoLayer.java 11 Jun 2004 16:40:38 -0000 1.6 *************** *** 108,114 **** /** ! * @see javax.swing.JComponent#paintComponent(java.awt.Graphics) */ ! public void paintComponent(Graphics _g) { boolean attenue = isAttenue(); boolean rapide = isRapide(); --- 108,114 ---- /** ! * @see org.fudaa.ebli.calque.ZCalquePoint#paintDonnees(java.awt.Graphics) */ ! public void paintDonnees(Graphics _g) { boolean attenue = isAttenue(); boolean rapide = isRapide(); *************** *** 157,161 **** } } - super.paintSpecificComponent(_g, true); } --- 157,160 ---- Index: TrPostVisuPanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TrPostVisuPanel.java 1 Jun 2004 11:27:44 -0000 1.3 --- TrPostVisuPanel.java 11 Jun 2004 16:40:38 -0000 1.4 *************** *** 221,223 **** --- 221,226 ---- varSelect_=null; } + public boolean isBcPointEditable() { + return false; + } } |
From: Frederic D. <de...@us...> - 2004-06-11 16:40:30
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/rubar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7248/src/org/fudaa/fudaa/tr/rubar Log Message: Directory /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/rubar added to the repository |
From: Frederic D. <de...@us...> - 2004-06-11 16:40:08
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6924/src/org/fudaa/fudaa/reflux Modified Files: RefluxMaillage.java RefluxModeleNoeud.java Log Message: Index: RefluxModeleNoeud.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/RefluxModeleNoeud.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RefluxModeleNoeud.java 1 Jun 2004 11:27:46 -0000 1.6 --- RefluxModeleNoeud.java 11 Jun 2004 16:39:58 -0000 1.7 *************** *** 38,43 **** return true; } - /// >>> ZModelePoint --------------------------------------------------------- - public void setListener(ZModeleDonneesListener _l) {} /** --- 38,41 ---- Index: RefluxMaillage.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/reflux/RefluxMaillage.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RefluxMaillage.java 1 Jun 2004 11:27:47 -0000 1.7 --- RefluxMaillage.java 11 Jun 2004 16:39:58 -0000 1.8 *************** *** 1,5 **** package org.fudaa.fudaa.reflux; import org.fudaa.ebli.geometrie.*; - import org.fudaa.ebli.calque.ZModeleDonneesListener; import org.fudaa.ebli.calque.ZModeleMaillage; import java.util.Hashtable; --- 1,4 ---- *************** *** 52,59 **** return conns; } - /** - * - */ - public void setListener(ZModeleDonneesListener _l) {} /** --- 51,54 ---- |
From: Frederic D. <de...@us...> - 2004-06-11 16:40:07
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/ressource In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6924/src/org/fudaa/fudaa/ressource Modified Files: fudaa_en.fr_txt Log Message: Index: fudaa_en.fr_txt =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/ressource/fudaa_en.fr_txt,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** fudaa_en.fr_txt 1 Jun 2004 11:27:45 -0000 1.16 --- fudaa_en.fr_txt 11 Jun 2004 16:39:58 -0000 1.17 *************** *** 61,65 **** Enregistrement Copie=Save a copy Enregistrer une copie=Save a copy ! Console=Console Astuces au démarrage=Show tips at startup Aide ressources=Resource for tips --- 61,66 ---- Enregistrement Copie=Save a copy Enregistrer une copie=Save a copy ! Console=Monitor ! console=monitor Astuces au démarrage=Show tips at startup Aide ressources=Resource for tips *************** *** 205,207 **** Ajouter au favoris=Add to favorites Le nom de l'exécutable est vide=The executable name is empty ! résultats=results \ No newline at end of file --- 206,216 ---- Ajouter au favoris=Add to favorites Le nom de l'exécutable est vide=The executable name is empty ! résultats=results ! Vos applications=Your softwares ! Applications disponibles=Available softwares ! Ajouter une application=Add a software ! Activer les applications sélectionnées=Activate the selected softwares ! Désactiver les applications sélectionnées=Unactivate the selected softwares ! Supprimer les applications sélectionnées=Delete the selected softwares ! Exécutable=Executable ! Icône=Icon \ No newline at end of file |
From: Frederic D. <de...@us...> - 2004-06-11 16:40:00
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6565/src/org/fudaa/fudaa/meshviewer/layer Modified Files: MvNodeNumberLayer.java MvLegendLayer.java MvLayerGroup.java MvLayer.java MvNodeModelDefault.java MvNodeLayer.java MvInfoDelegateAbstract.java MvElementNumberLayer.java MvElementLayer.java MvGridLayerGroup.java Log Message: Index: MvGridLayerGroup.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvGridLayerGroup.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MvGridLayerGroup.java 1 Jun 2004 11:27:43 -0000 1.3 --- MvGridLayerGroup.java 11 Jun 2004 16:39:44 -0000 1.4 *************** *** 1,4 **** ! /* ! * @file TrMaillage.java * @creation 30 juin 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 30 juin 2003 * @modification $Date$ *************** *** 8,11 **** --- 7,11 ---- */ package org.fudaa.fudaa.meshviewer.layer; + import java.awt.Graphics; *************** *** 20,23 **** --- 20,24 ---- import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.ebli.geometrie.GrPolygone; + import org.fudaa.fudaa.meshviewer.MvResource; import org.fudaa.fudaa.meshviewer.layer.MvPanelInfo.InfoData; import org.fudaa.fudaa.ressource.FudaaResource; *************** *** 27,132 **** */ public class MvGridLayerGroup extends MvLayerGroup { ! EfGrid mail_; ! MvNodeLayer cqPt_; ! MvElementLayer cqPoly_; public MvGridLayerGroup(EfGrid _maill) { this(_maill, null); } - - public final EfGrid getGrid(){ - return mail_; - } public MvGridLayerGroup(EfGrid _maill, MvInfoDelegate _d) { ! this( ! _maill, ! new MvNodeModelDefault(_maill, _d), ! new MvElementModelDefault(_maill, _d)); } ! public MvGridLayerGroup( ! EfGrid _maill, ! MvNodeModel _ptModel, ! MvElementModel _eltModel) { ! setTitle(FudaaResource.getS("Maillage")); setName("cqMaillage"); setDestructible(false); ! mail_= _maill; ! cqPt_= new MvNodeLayer(_ptModel); cqPt_.setName("cqPts"); ! cqPt_.setTitle(FudaaResource.getS("Noeuds")); cqPt_.setDestructible(false); add(cqPt_); ! cqPoly_= new MvElementLayer(_eltModel); cqPoly_.setDestructible(false); cqPoly_.setName("cqPolygon"); ! cqPoly_.setTitle(FudaaResource.getS("Eléments")); add(cqPoly_); } ! public MvElementLayer getPolygonLayer() { ! return cqPoly_; ! } ! public MvNodeLayer getPointLayer() { ! return cqPt_; } ! public void setGrid(EfGrid _g) { ! if (_g != mail_) { ! mail_= _g; ! ((MvElementModel)cqPoly_.modele()).setGrid(_g); ! ((MvNodeModel)cqPt_.modele()).setGrid(_g); } - } /** * */ public GrBoite getDomaine() { ! GrBoite b= new GrBoite(); ! EfNode pt= mail_.getMinPoint(); ! b.o= new GrPoint(pt.getX(), pt.getY(), pt.getZ()); ! pt= mail_.getMaxPoint(); ! b.e= new GrPoint(pt.getX(), pt.getY(), pt.getZ()); return b; } public int getNbPointsForElt(int _indexElt) { return mail_.getElement(_indexElt).getPtNb(); } ! public static void initGrPoint(EfNode _pt, GrPoint _ptToinit) { ! _ptToinit.x= _pt.getX(); ! _ptToinit.y= _pt.getY(); ! _ptToinit.z= _pt.getZ(); } ! public static void initGrPolygone( ! EfGrid _ma, ! EfElement _pt, ! GrPolygone _ptToinit) { ! int n= _pt.getPtNb(); ! if (_ptToinit.nombre() != n) { ! _ptToinit.sommets.setSize(n); ! } ! GrPoint grpt; ! EfNode hpt; ! for (int i= 0; i < n; i++) { ! hpt= _ma.getPt(_pt.getPtIndex(i)); ! grpt= _ptToinit.sommets.renvoie(i); ! if (grpt != null) ! initGrPoint(hpt, grpt); ! else { ! grpt= new GrPoint(hpt.getX(), hpt.getY(), hpt.getZ()); ! _ptToinit.sommets.remplace(grpt, i); ! } ! } } ! public void paintComponent(Graphics _g) { ! if ((!cqPoly_.isVisible()) ! || (!cqPt_.isSelectionEmpty()) ! || (cqPt_.getPaletteCouleur() != null)) ! super.paintComponent(_g); else { ! cqPoly_.paintComponent(_g); } } /** * --- 28,160 ---- */ public class MvGridLayerGroup extends MvLayerGroup { ! ! public static void initGrPoint(EfNode _pt, GrPoint _ptToinit) { ! _ptToinit.x = _pt.getX(); ! _ptToinit.y = _pt.getY(); ! _ptToinit.z = _pt.getZ(); ! } ! ! public static void initGrPolygone(EfGrid _ma, EfElement _pt, GrPolygone _ptToinit) { ! int n = _pt.getPtNb(); ! if (_ptToinit.nombre() != n) { ! _ptToinit.sommets.setSize(n); ! } ! GrPoint grpt; ! EfNode hpt; ! for (int i = 0; i < n; i++) { ! hpt = _ma.getPt(_pt.getPtIndex(i)); ! grpt = _ptToinit.sommets.renvoie(i); ! if (grpt != null) initGrPoint(hpt, grpt); ! else { ! grpt = new GrPoint(hpt.getX(), hpt.getY(), hpt.getZ()); ! _ptToinit.sommets.remplace(grpt, i); ! } ! } ! } ! ! protected MvElementLayer cqPoly_; ! protected MvNodeLayer cqPt_; ! protected EfGrid mail_; ! private boolean polyOldValue = true; public MvGridLayerGroup(EfGrid _maill) { this(_maill, null); } public MvGridLayerGroup(EfGrid _maill, MvInfoDelegate _d) { ! this(_maill, new MvNodeModelDefault(_maill, _d), new MvElementModelDefault(_maill, _d)); } ! ! public MvGridLayerGroup(EfGrid _maill, MvNodeModel _ptModel, MvElementModel _eltModel) { ! setTitle(MvResource.getS("Maillage")); setName("cqMaillage"); setDestructible(false); ! mail_ = _maill; ! cqPt_ = new MvNodeLayer(_ptModel); cqPt_.setName("cqPts"); ! cqPt_.setTitle(MvResource.getS("Noeuds")); cqPt_.setDestructible(false); add(cqPt_); ! cqPoly_ = new MvElementLayer(_eltModel); cqPoly_.setDestructible(false); cqPoly_.setName("cqPolygon"); ! cqPoly_.setTitle(MvResource.getS("Eléments")); add(cqPoly_); } ! public final void clearSelection() { ! cqPoly_.clearSelection(); ! cqPt_.clearSelection(); } ! /** ! * ! */ ! public void fillWithInfo(InfoData _m) { ! _m.setTitle(FudaaResource.getS("Maillage")); ! _m.put(FudaaResource.getS("Nombre de noeuds"), CtuluLib.getString(mail_.getPtsNb())); ! _m.put(FudaaResource.getS("Nombre d'éléments"), CtuluLib.getString(mail_.getEltNb())); ! EfFrontier fr = mail_.getFrontiers(); ! if (fr != null) { ! _m.put(FudaaResource.getS("Nombre de frontières"), CtuluLib.getString(fr.getNbFrontier())); ! _m.put(FudaaResource.getS("Nombre total de noeuds sur les frontières"), CtuluLib.getString(fr ! .getNbTotalPt())); } } + /** * */ public GrBoite getDomaine() { ! GrBoite b = new GrBoite(); ! EfNode pt = mail_.getMinPoint(); ! b.o = new GrPoint(pt.getX(), pt.getY(), pt.getZ()); ! pt = mail_.getMaxPoint(); ! b.e = new GrPoint(pt.getX(), pt.getY(), pt.getZ()); return b; } + + public final EfGrid getGrid() { + return mail_; + } + public int getNbPointsForElt(int _indexElt) { return mail_.getElement(_indexElt).getPtNb(); } ! ! public MvNodeLayer getPointLayer() { ! return cqPt_; } ! ! public MvElementLayer getPolygonLayer() { ! return cqPoly_; } ! ! /** ! * ! */ ! public ZModeleDonnees modeleDonnees() { ! return cqPt_.modeleDonnees(); ! } ! ! protected void determinePaintState() { ! if ((!cqPoly_.isVisible()) || (cqPoly_.getPaletteCouleur() != null) ! || ((cqPt_.getIcone() != null) && (cqPt_.getIcone().getIconWidth() > 1) && (cqPt_.getIcone().getIconHeight() > 1)) || (cqPt_.getPaletteCouleur() != null) ! || (cqPoly_.getForeground() != cqPt_.getForeground())) { ! cqPt_.setPainted(true); ! } else { ! cqPt_.setPainted(false); } } + + /** + * @see java.awt.Component#paint(java.awt.Graphics) + */ + public final void paint(Graphics _g) { + determinePaintState(); + super.paint(_g); + } + /** * *************** *** 136,139 **** --- 164,168 ---- return true; } + /** * *************** *** 143,152 **** return true; } ! /** ! * ! */ ! public ZModeleDonnees modeleDonnees() { ! return cqPt_.modeleDonnees(); ! } /** * --- 172,176 ---- return true; } ! /** * *************** *** 155,158 **** --- 179,183 ---- return cqPt_.selection(_pt, _tolerance); } + /** * *************** *** 161,169 **** return cqPt_.selection(_poly); } ! public final void clearSelection() { ! cqPoly_.clearSelection(); ! cqPt_.clearSelection(); } ! private boolean polyOldValue= true; /** * --- 186,199 ---- return cqPt_.selection(_poly); } ! ! public void setGrid(EfGrid _g) { ! if (_g != mail_) { ! mail_ = _g; ! ((MvElementModel) cqPoly_.modele()).setGrid(_g); ! ((MvNodeModel) cqPt_.modele()).setGrid(_g); ! } ! } ! /** * *************** *** 171,207 **** public void setRapide(boolean _v) { if (rapide_ != _v) { ! boolean vp= rapide_; ! rapide_= _v; cqPt_.setRapide(_v); // cqBord_.setRapide(_v); if (_v) { ! polyOldValue= cqPoly_.isVisible(); cqPoly_.setVisible(false); ! } else ! cqPoly_.setVisible(polyOldValue); firePropertyChange("ajustement", vp, rapide_); } } - /** - * - */ - public void fillWithInfo(InfoData _m) { - _m.setTitle(FudaaResource.getS("Maillage")); - _m.put( - FudaaResource.getS("Nombre de noeuds"), - CtuluLib.getString(mail_.getPtsNb())); - _m.put( - FudaaResource.getS("Nombre d'éléments"), - CtuluLib.getString(mail_.getEltNb())); - EfFrontier fr= mail_.getFrontiers(); - if (fr != null) { - _m.put( - FudaaResource.getS("Nombre de frontières"), - CtuluLib.getString(fr.getNbFrontier())); - _m.put( - FudaaResource.getS("Nombre total de noeuds sur les frontières"), - CtuluLib.getString(fr.getNbTotalPt())); - } - } ! } --- 201,216 ---- public void setRapide(boolean _v) { if (rapide_ != _v) { ! boolean vp = rapide_; ! rapide_ = _v; cqPt_.setRapide(_v); // cqBord_.setRapide(_v); if (_v) { ! polyOldValue = cqPoly_.isVisible(); cqPoly_.setVisible(false); ! } ! else cqPoly_.setVisible(polyOldValue); firePropertyChange("ajustement", vp, rapide_); } } ! } \ No newline at end of file Index: MvInfoDelegateAbstract.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvInfoDelegateAbstract.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MvInfoDelegateAbstract.java 31 Mar 2004 08:17:48 -0000 1.3 --- MvInfoDelegateAbstract.java 11 Jun 2004 16:39:44 -0000 1.4 *************** *** 25,31 **** public abstract EfGrid getGrid(); - /** - * * - */ public final void fillWithPointInfo( InfoData _m, --- 25,28 ---- *************** *** 46,52 **** * @param _idx */ ! public final void fillWithPointInfo(InfoData _m, int _idx) { int[] idx = new int[2]; ! int idxOnFr = getGrid().getFrontiers().getIdxOnFrontier(_idx, idx); fillWithPointInfo(_m, _idx, idxOnFr, idx[0], idx[1]); } --- 43,51 ---- * @param _idx */ ! public void fillWithPointInfo(InfoData _m, int _idx) { int[] idx = new int[2]; ! int idxOnFr=-1; ! if(getGrid().getFrontiers()!=null) ! idxOnFr = getGrid().getFrontiers().getIdxOnFrontier(_idx, idx); fillWithPointInfo(_m, _idx, idxOnFr, idx[0], idx[1]); } *************** *** 57,61 **** --- 56,63 ---- */ public final void fillWithXYZPointInfo(InfoData _m, int _idx) { + if(getGrid().getFrontiers()!=null) fillWithXYZPointInfo(_m, _idx, getGrid().getFrontiers().getIdxOnFrontier(_idx)); + else + fillWithXYZPointInfo(_m, _idx, -1); } *************** *** 117,121 **** EfNode p = getGrid().getPt(indice); String idx = CtuluLib.getString(i + 1); ! int idxOnFr = getGrid().getFrontiers().getIdxOnFrontier(indice); _m.put( FudaaResource.getS("Point n° {0}", idx), --- 119,125 ---- EfNode p = getGrid().getPt(indice); String idx = CtuluLib.getString(i + 1); ! int idxOnFr=-1; ! if(getGrid().getFrontiers()!=null) ! idxOnFr = getGrid().getFrontiers().getIdxOnFrontier(indice); _m.put( FudaaResource.getS("Point n° {0}", idx), Index: MvLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvLayer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MvLayer.java 31 Mar 2004 08:17:48 -0000 1.2 --- MvLayer.java 11 Jun 2004 16:39:44 -0000 1.3 *************** *** 24,28 **** * @return les indices des points selectionnes */ ! public int[] getPtIdx(); /** --- 24,28 ---- * @return les indices des points selectionnes */ ! public int[] getSelectedPtIdx(); /** *************** *** 30,34 **** */ public boolean isSelectionElementEmpty(); ! public int[] getElementIdx(); public GrBoite getZoomOnSelected(); public void addSelectionListener(ZSelectionListener _l); --- 30,34 ---- */ public boolean isSelectionElementEmpty(); ! public int[] getSelectedElementIdx(); public GrBoite getZoomOnSelected(); public void addSelectionListener(ZSelectionListener _l); Index: MvLayerGroup.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvLayerGroup.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvLayerGroup.java 12 Feb 2004 16:27:40 -0000 1.1 --- MvLayerGroup.java 11 Jun 2004 16:39:44 -0000 1.2 *************** *** 27,31 **** * */ ! public int[] getPtIdx() { return null; } --- 27,31 ---- * */ ! public int[] getSelectedPtIdx() { return null; } *************** *** 41,45 **** * */ ! public int[] getElementIdx() { return null; } --- 41,45 ---- * */ ! public int[] getSelectedElementIdx() { return null; } Index: MvNodeLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvNodeLayer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MvNodeLayer.java 31 Mar 2004 08:17:48 -0000 1.3 --- MvNodeLayer.java 11 Jun 2004 16:39:44 -0000 1.4 *************** *** 25,29 **** * @return les indices des points sélectionnés */ ! public int[] getPtIdx() { if (!isSelectionEmpty()) { return selection_.getSelectedIndex(); --- 25,29 ---- * @return les indices des points sélectionnés */ ! public int[] getSelectedPtIdx() { if (!isSelectionEmpty()) { return selection_.getSelectedIndex(); *************** *** 33,39 **** /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#getElementIdx() */ ! public int[] getElementIdx() { return null; } --- 33,39 ---- /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#getSelectedElementIdx() */ ! public int[] getSelectedElementIdx() { return null; } *************** *** 70,79 **** } } ! double coef= 1.1; ! r.e.x= r.e.x * coef; ! r.e.y= r.e.y * coef; ! r.o.x= r.o.x / coef; ! r.o.y= r.o.y / coef; ! return r; } /** --- 70,88 ---- } } ! GrBoite bTout=modele_.getDomaine(); ! double wT=bTout.getLargeur(); ! double hT=bTout.getHauteur(); ! double coef= 0.1; ! if(r.getHauteur()<hT*coef){ ! double delta=(r.getHauteur()-hT*coef)/2; ! r.e.x+=delta; ! r.o.x-=delta; ! } ! if(r.getLargeur()<wT*coef){ ! double delta=(r.getLargeur()-wT*coef)/2; ! r.e.y+=delta; ! r.o.y-=delta; ! } ! return r.intersectionXY(bTout); } /** Index: MvLegendLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvLegendLayer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvLegendLayer.java 1 Jun 2004 11:27:43 -0000 1.1 --- MvLegendLayer.java 11 Jun 2004 16:39:44 -0000 1.2 *************** *** 26,30 **** * */ ! public int[] getPtIdx() { return null; } --- 26,30 ---- * */ ! public int[] getSelectedPtIdx() { return null; } *************** *** 40,44 **** * */ ! public int[] getElementIdx() { return null; } --- 40,44 ---- * */ ! public int[] getSelectedElementIdx() { return null; } Index: MvNodeModelDefault.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvNodeModelDefault.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MvNodeModelDefault.java 1 Jun 2004 11:27:43 -0000 1.4 --- MvNodeModelDefault.java 11 Jun 2004 16:39:44 -0000 1.5 *************** *** 50,53 **** --- 50,56 ---- } + /** + * @return le maillage en question + */ public final EfGrid getGrid(){ return grid_; Index: MvElementNumberLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvElementNumberLayer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvElementNumberLayer.java 12 Feb 2004 16:27:40 -0000 1.1 --- MvElementNumberLayer.java 11 Jun 2004 16:39:44 -0000 1.2 *************** *** 1,4 **** ! /* ! * @file TrElementNumberLayer.java * @creation 5 déc. 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 5 déc. 2003 * @modification $Date$ *************** *** 8,11 **** --- 7,11 ---- */ package org.fudaa.fudaa.meshviewer.layer; + import gnu.trove.TIntHashSet; import gnu.trove.TIntIterator; *************** *** 18,22 **** import org.fudaa.ctulu.CtuluLib; - import org.fudaa.ebli.calque.ZCalqueAffichageDonnees; import org.fudaa.ebli.calque.ZModeleDonnees; --- 18,21 ---- *************** *** 26,54 **** import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.ebli.geometrie.GrPolygone; ! import org.fudaa.fudaa.meshviewer.layer.MvPanelInfo.InfoData; - import org.fudaa.fudaa.ressource.FudaaResource; /** * @author deniger * @version $Id$ */ ! public class MvElementNumberLayer ! extends ZCalqueAffichageDonnees ! implements MvLayer { private boolean all_; private TIntHashSet selectedElement_; private MvElementNumberModel model_; /** * */ public MvElementNumberLayer(MvElementNumberModel _m) { ! model_= _m; ! setTitle(FudaaResource.getS("Numéros des éléments")); } public boolean isPtToDisplayEmpty() { ! return ( ! (!all_) ! && ((selectedElement_ == null) || (selectedElement_.size() == 0))); } /** * --- 25,52 ---- import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.ebli.geometrie.GrPolygone; ! import org.fudaa.fudaa.meshviewer.MvResource; import org.fudaa.fudaa.meshviewer.layer.MvPanelInfo.InfoData; /** * @author deniger * @version $Id$ */ ! public class MvElementNumberLayer extends ZCalqueAffichageDonnees implements MvLayer { ! private boolean all_; private TIntHashSet selectedElement_; private MvElementNumberModel model_; + /** * */ public MvElementNumberLayer(MvElementNumberModel _m) { ! model_ = _m; ! setTitle(MvResource.getS("Numéros des éléments")); } + public boolean isPtToDisplayEmpty() { ! return ((!all_) && ((selectedElement_ == null) || (selectedElement_.size() == 0))); } + /** * *************** *** 57,80 **** return all_; } public void clearEltIdxShow() { ! all_= false; ! if (selectedElement_ != null) ! selectedElement_.clear(); quick_repaint(); } /** * */ public void setSelectedElement(int[] _idx) { ! if (_idx == null) ! return; if (!all_) { if (_idx.length == model_.getNbElement()) { ! all_= true; ! if (selectedElement_ != null) ! selectedElement_.clear(); ! } else if (selectedElement_ == null) { ! selectedElement_= new TIntHashSet(_idx); ! } else { selectedElement_.clear(); selectedElement_.ensureCapacity(_idx.length); --- 55,79 ---- return all_; } + public void clearEltIdxShow() { ! all_ = false; ! if (selectedElement_ != null) selectedElement_.clear(); quick_repaint(); } + /** * */ public void setSelectedElement(int[] _idx) { ! if (_idx == null) return; if (!all_) { if (_idx.length == model_.getNbElement()) { ! all_ = true; ! if (selectedElement_ != null) selectedElement_.clear(); ! } ! else if (selectedElement_ == null) { ! selectedElement_ = new TIntHashSet(_idx); ! } ! else { selectedElement_.clear(); selectedElement_.ensureCapacity(_idx.length); *************** *** 84,179 **** quick_repaint(); } public void addSelectedPoint(int[] _idx) { if (!all_) { if (selectedElement_ == null) { ! selectedElement_= new TIntHashSet(_idx); quick_repaint(); ! } else { ! boolean change= selectedElement_.addAll(_idx); if (selectedElement_.size() == model_.getNbElement()) { selectedElement_.clear(); ! all_= true; ! repaint(); ! } else if (change) repaint(); } } } /** * */ public void setAll(boolean _b) { ! if (_b == all_) ! return; ! all_= _b; ! if (selectedElement_ != null) ! selectedElement_.clear(); repaint(); } ! public void paintComponent(Graphics g) { ! if (isRapide()) ! return; ! if ((!all_) ! && ((selectedElement_ == null) || (selectedElement_.size() == 0))) { ! return; ! } ! GrBoite clip= getClipReel(g); ! GrBoite domaine= model_.getDomaine(); //Si le domaine des polys n'est pas dans le domaine d'affichage on arrete ! if (!domaine.intersectXY(clip)) { ! return; ! } ! GrPolygone p= new GrPolygone(); ! GrPoint pt= new GrPoint(); ! GrMorphisme versEcran= getVersEcran(); ! Font old= g.getFont(); ! Color oldC= g.getColor(); g.setFont(getFont()); ! if (isAttenue()) ! g.setColor(attenueCouleur(getForeground())); ! else ! g.setColor(getForeground()); double x, y; // Color foreground= g.getColor(); ! if ((!all_) ! && (selectedElement_ != null) ! && (selectedElement_.size() > 0)) { ! TIntIterator it= selectedElement_.iterator(); ! FontMetrics fm= g.getFontMetrics(); // Color backColor=getBackground(); ! for (int i= selectedElement_.size(); i-- > 0;) { ! int idx= it.next(); model_.polygone(p, idx); p.centre(pt); if (clip.contientXY(pt)) { pt.autoApplique(versEcran); ! String s= CtuluLib.getString(idx + 1); ! Rectangle2D rec= fm.getStringBounds(s, g); ! x= pt.x - rec.getWidth() / 2; ! y= pt.y + rec.getHeight() / 2; // rec.setFrame(x, y - fm.getAscent(), rec.getWidth(), rec.getHeight()); // g.setColor(backColor); // ((Graphics2D)g).fill(rec); // g.setColor(foreground); ! g.drawString(s, (int)x, (int)y); } } ! } else if (all_) { ! FontMetrics fm= g.getFontMetrics(); // Color backColor=getBackground(); ! for (int i= model_.getNbElement() - 1; i >= 0; i--) { model_.polygone(p, i); p.centre(pt); if (clip.contientXY(pt)) { ! String s= CtuluLib.getString(i + 1); pt.autoApplique(versEcran); ! Rectangle2D rec= fm.getStringBounds(s, g); ! x= pt.x - rec.getWidth() / 2; ! y= pt.y + rec.getHeight() / 2; // rec.setFrame(x, y - fm.getAscent(), rec.getWidth(), rec.getHeight()); // g.setColor(backColor); // ((Graphics2D)g).fill(rec); // g.setColor(foreground); ! g.drawString(s, (int)x, (int)y); } } --- 83,171 ---- quick_repaint(); } + public void addSelectedPoint(int[] _idx) { if (!all_) { if (selectedElement_ == null) { ! selectedElement_ = new TIntHashSet(_idx); quick_repaint(); ! } ! else { ! boolean change = selectedElement_.addAll(_idx); if (selectedElement_.size() == model_.getNbElement()) { selectedElement_.clear(); ! all_ = true; repaint(); + } + else if (change) repaint(); } } } + /** * */ public void setAll(boolean _b) { ! if (_b == all_) return; ! all_ = _b; ! if (selectedElement_ != null) selectedElement_.clear(); repaint(); } ! ! public void paintDonnees(Graphics g) { ! if (isRapide()) return; ! if ((!all_) && ((selectedElement_ == null) || (selectedElement_.size() == 0))) { return; } ! GrBoite clip = getClipReel(g); ! GrBoite domaine = model_.getDomaine(); //Si le domaine des polys n'est pas dans le domaine d'affichage on arrete ! if (!domaine.intersectXY(clip)) { return; } ! GrPolygone p = new GrPolygone(); ! GrPoint pt = new GrPoint(); ! GrMorphisme versEcran = getVersEcran(); ! Font old = g.getFont(); ! Color oldC = g.getColor(); g.setFont(getFont()); ! if (isAttenue()) g.setColor(attenueCouleur(getForeground())); ! else g.setColor(getForeground()); double x, y; // Color foreground= g.getColor(); ! if ((!all_) && (selectedElement_ != null) && (selectedElement_.size() > 0)) { ! TIntIterator it = selectedElement_.iterator(); ! FontMetrics fm = g.getFontMetrics(); // Color backColor=getBackground(); ! for (int i = selectedElement_.size(); i-- > 0;) { ! int idx = it.next(); model_.polygone(p, idx); p.centre(pt); if (clip.contientXY(pt)) { pt.autoApplique(versEcran); ! String s = CtuluLib.getString(idx + 1); ! Rectangle2D rec = fm.getStringBounds(s, g); ! x = pt.x - rec.getWidth() / 2; ! y = pt.y + rec.getHeight() / 2; // rec.setFrame(x, y - fm.getAscent(), rec.getWidth(), rec.getHeight()); // g.setColor(backColor); // ((Graphics2D)g).fill(rec); // g.setColor(foreground); ! g.drawString(s, (int) x, (int) y); } } ! } ! else if (all_) { ! FontMetrics fm = g.getFontMetrics(); // Color backColor=getBackground(); ! for (int i = model_.getNbElement() - 1; i >= 0; i--) { model_.polygone(p, i); p.centre(pt); if (clip.contientXY(pt)) { ! String s = CtuluLib.getString(i + 1); pt.autoApplique(versEcran); ! Rectangle2D rec = fm.getStringBounds(s, g); ! x = pt.x - rec.getWidth() / 2; ! y = pt.y + rec.getHeight() / 2; // rec.setFrame(x, y - fm.getAscent(), rec.getWidth(), rec.getHeight()); // g.setColor(backColor); // ((Graphics2D)g).fill(rec); // g.setColor(foreground); ! g.drawString(s, (int) x, (int) y); } } *************** *** 182,185 **** --- 174,178 ---- g.setColor(oldC); } + /** * *************** *** 188,191 **** --- 181,185 ---- return null; } + /** * *************** *** 194,197 **** --- 188,192 ---- return null; } + /** * *************** *** 200,215 **** return model_; } /** * */ ! public int[] getPtIdx() { return null; } /** * */ ! public int[] getElementIdx() { return null; } /** * --- 195,213 ---- return model_; } + /** * */ ! public int[] getSelectedPtIdx() { return null; } + /** * */ ! public int[] getSelectedElementIdx() { return null; } + /** * *************** *** 218,221 **** --- 216,220 ---- return true; } + /** * *************** *** 232,236 **** } - /** * --- 231,234 ---- *************** *** 238,240 **** public void fillWithInfo(InfoData _m) {} ! } --- 236,239 ---- public void fillWithInfo(InfoData _m) {} ! public void paintSelection(Graphics _g) {} ! } \ No newline at end of file Index: MvElementLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvElementLayer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MvElementLayer.java 5 May 2004 12:42:38 -0000 1.2 --- MvElementLayer.java 11 Jun 2004 16:39:44 -0000 1.3 *************** *** 8,11 **** --- 8,12 ---- */ package org.fudaa.fudaa.meshviewer.layer; + import gnu.trove.TIntHashSet; *************** *** 18,21 **** --- 19,23 ---- */ public class MvElementLayer extends ZCalquePolygone implements MvLayer { + /** * *************** *** 24,27 **** --- 26,30 ---- super(); } + /** * @param _modele *************** *** 30,42 **** super(_modele); } /** * */ ! public int[] getPtIdx() { if (!isSelectionEmpty()) { ! TIntHashSet r= new TIntHashSet(); ! int max= selection_.getMaxIndex(); ! MvElementModel m= (MvElementModel)modele_; ! for (int i= selection_.getMinIndex(); i <= max; i++) { if (selection_.isSelected(i)) { m.fillWithPtIdx(i, r); --- 33,46 ---- super(_modele); } + /** * */ ! public int[] getSelectedPtIdx() { if (!isSelectionEmpty()) { ! TIntHashSet r = new TIntHashSet(); ! int max = selection_.getMaxIndex(); ! MvElementModel m = (MvElementModel) modele_; ! for (int i = selection_.getMinIndex(); i <= max; i++) { if (selection_.isSelected(i)) { m.fillWithPtIdx(i, r); *************** *** 47,56 **** return null; } /** * */ ! public int[] getElementIdx() { return selection_ == null ? null : selection_.getSelectedIndex(); } /** * --- 51,62 ---- return null; } + /** * */ ! public int[] getSelectedElementIdx() { return selection_ == null ? null : selection_.getSelectedIndex(); } + /** * *************** *** 59,62 **** --- 65,69 ---- return isSelectionEmpty(); } + /** * *************** *** 65,81 **** return isSelectionEmpty(); } /** ! * */ public GrBoite getZoomOnSelected() { ! if (isSelectionEmpty()) ! return null; ! int m= selection_.getMaxIndex(); ! if (m > modele_.getNombre()) ! m= modele_.getNombre() - 1; ! GrBoite r= new GrBoite(); ! GrBoite temp= new GrBoite(); ! GrPolygone poly= new GrPolygone(); ! for (int i= selection_.getMinIndex(); i <= m; i++) { if (selection_.isSelected(i)) { modele_.polygone(poly, i); --- 72,87 ---- return isSelectionEmpty(); } + /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#getZoomOnSelected() */ public GrBoite getZoomOnSelected() { ! if (isSelectionEmpty()) return null; ! int m = selection_.getMaxIndex(); ! if (m > modele_.getNombre()) m = modele_.getNombre() - 1; ! GrBoite r = new GrBoite(); ! GrBoite temp = new GrBoite(); ! GrPolygone poly = new GrPolygone(); ! for (int i = selection_.getMinIndex(); i <= m; i++) { if (selection_.isSelected(i)) { modele_.polygone(poly, i); *************** *** 84,93 **** } } ! double coef= 1.1; ! r.e.x= r.e.x * coef; ! r.e.y= r.e.y * coef; ! r.o.x= r.o.x / coef; ! r.o.y= r.o.y / coef; ! return r; } --- 90,109 ---- } } ! GrBoite bTout = modele_.getDomaine(); ! double wT = bTout.getLargeur(); ! double hT = bTout.getHauteur(); ! //au moins 10% du domaine total ! double coef = 0.1; ! if (r.getHauteur() < hT * coef) { ! double delta = (r.getHauteur() - hT * coef) / 2; ! r.e.x += delta; ! r.o.x -= delta; ! } ! if (r.getLargeur() < wT * coef) { ! double delta = (r.getLargeur() - wT * coef) / 2; ! r.e.y += delta; ! r.o.y -= delta; ! } ! return r.intersectionXY(bTout); } *************** *** 97,103 **** public void fillWithInfo(MvPanelInfo.InfoData _m) { if (!isSelectionEmpty()) { ! ((MvElementModel)modele_).fillWithInfo(_m, selection_); } } ! } --- 113,119 ---- public void fillWithInfo(MvPanelInfo.InfoData _m) { if (!isSelectionEmpty()) { ! ((MvElementModel) modele_).fillWithInfo(_m, selection_); } } ! } \ No newline at end of file Index: MvNodeNumberLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvNodeNumberLayer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvNodeNumberLayer.java 12 Feb 2004 16:27:40 -0000 1.1 --- MvNodeNumberLayer.java 11 Jun 2004 16:39:44 -0000 1.2 *************** *** 1,4 **** ! /* ! * @file TrPointNumberLayer.java * @creation 4 déc. 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 4 déc. 2003 * @modification $Date$ *************** *** 19,23 **** import org.fudaa.ctulu.CtuluLib; - import org.fudaa.ebli.calque.ZCalqueAffichageDonnees; import org.fudaa.ebli.calque.ZModeleDonnees; --- 18,21 ---- *************** *** 27,32 **** import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.ebli.geometrie.GrPolygone; ! ! import org.fudaa.fudaa.ressource.FudaaResource; /** * @author deniger --- 25,29 ---- import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.ebli.geometrie.GrPolygone; ! import org.fudaa.fudaa.meshviewer.MvResource; /** * @author deniger *************** *** 45,49 **** public MvNodeNumberLayer(MvNodeNumberModel _m) { model_= _m; ! setTitle(FudaaResource.getS("Numéros des points")); } public boolean isPtToDisplayEmpty() { --- 42,46 ---- public MvNodeNumberLayer(MvNodeNumberModel _m) { model_= _m; ! setTitle(MvResource.getS("Numéros des points")); } public boolean isPtToDisplayEmpty() { *************** *** 111,115 **** quick_repaint(); } ! public void paintComponent(Graphics g) { if (isRapide()) return; --- 108,112 ---- quick_repaint(); } ! public void paintDonnees(Graphics g) { if (isRapide()) return; *************** *** 227,231 **** * */ ! public int[] getPtIdx() { return null; } --- 224,228 ---- * */ ! public int[] getSelectedPtIdx() { return null; } *************** *** 250,254 **** * */ ! public int[] getElementIdx() { return null; } --- 247,251 ---- * */ ! public int[] getSelectedElementIdx() { return null; } *************** *** 278,280 **** --- 275,278 ---- public void fillWithInfo(MvPanelInfo.InfoData _m) {} + public void paintSelection(Graphics _g) {} } |
From: Frederic D. <de...@us...> - 2004-06-11 16:39:59
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6565/src/org/fudaa/fudaa/commun Modified Files: FudaaCommonImplementation.java FudaaExplorer.java FudaaLib.java Log Message: Index: FudaaCommonImplementation.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/FudaaCommonImplementation.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** FudaaCommonImplementation.java 1 Jun 2004 11:27:43 -0000 1.22 --- FudaaCommonImplementation.java 11 Jun 2004 16:39:45 -0000 1.23 *************** *** 46,49 **** --- 46,50 ---- import com.memoire.bu.BuTaskOperation; import com.memoire.bu.BuUserPreferencesPanel; + import com.memoire.fu.FuLib; import org.fudaa.ctulu.CtuluLib; *************** *** 665,669 **** super.init(); ((BuMenu) getMainMenuBar().getMenu("MENU_EDITION")).addMenuItem(FudaaResource.getS("Console"), ! "CONSOLE", false); } --- 666,670 ---- super.init(); ((BuMenu) getMainMenuBar().getMenu("MENU_EDITION")).addMenuItem(FudaaResource.getS("Console"), ! "CONSOLE", FudaaResource.FUDAA.getIcon("tail"),false); } Index: FudaaExplorer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/FudaaExplorer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FudaaExplorer.java 1 Jun 2004 11:27:43 -0000 1.2 --- FudaaExplorer.java 11 Jun 2004 16:39:45 -0000 1.3 *************** *** 1,4 **** /** - * @file FudaaExplorer.java * @creation 12 mai 2004 * @modification $Date$ --- 1,3 ---- *************** *** 24,29 **** import java.awt.event.MouseEvent; import java.awt.event.MouseListener; - import java.awt.event.WindowAdapter; [...1870 lines suppressed...] - if (((FuFile) selected[i]).canRead()) _cmd += " " + ((FuFile) selected[i]).getName(); - - BuShell.runCommand(app_, _cmd); - } - - /** - * @see java.lang.Object#finalize() - */ - protected void finalize() throws Throwable { - pmDirs_.removeAll(); - pmFiles_.removeAll(); - pmDirs_.setInvoker(null); - pmFiles_.setInvoker(null); - - if (timer_ != null) timer_.stop(); - super.finalize(); - } } --- 1479,1482 ---- Index: FudaaLib.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/FudaaLib.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** FudaaLib.java 1 Jun 2004 11:27:43 -0000 1.21 --- FudaaLib.java 11 Jun 2004 16:39:45 -0000 1.22 *************** *** 8,11 **** --- 8,12 ---- import java.io.File; import java.net.URI; + import java.util.Locale; import java.util.Vector; *************** *** 43,46 **** --- 44,54 ---- System.out.println("--> " + _s); } + + /** + * @return true si francais utilise + */ + public static boolean isLocalFrench(){ + return Locale.getDefault().getLanguage().equals("fr"); + } /** |
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/fdico In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6565/src/org/fudaa/fudaa/fdico Modified Files: FDicoCalculLocal.java fdico_en.fr_txt FDicoProjetInterface.java FDicoEntitePanel.java FDicoProjectPanel.java FDicoProjet.java Log Message: Index: FDicoEntitePanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/fdico/FDicoEntitePanel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FDicoEntitePanel.java 1 Jun 2004 11:27:44 -0000 1.4 --- FDicoEntitePanel.java 11 Jun 2004 16:39:45 -0000 1.5 *************** *** 106,109 **** --- 106,113 ---- } + /** + * @author Fred Deniger + * @version $Id$ + */ private class DecoratorCellRenderer implements EbliCellDecorator { *************** *** 114,118 **** /** ! * * */ public void decore( --- 118,122 ---- /** ! * @see org.fudaa.ebli.tableau.EbliCellDecorator#decore(javax.swing.JComponent, javax.swing.JTable, java.lang.Object, int, int) */ public void decore( *************** *** 165,174 **** /** ! * * */ public void decore(JComponent c, JList table, Object value, int index) {} /** ! * * */ public void decore( --- 169,178 ---- /** ! * @see org.fudaa.ebli.tableau.EbliCellDecorator#decore(javax.swing.JComponent, javax.swing.JList, java.lang.Object, int) */ public void decore(JComponent c, JList table, Object value, int index) {} /** ! * @see org.fudaa.ebli.tableau.EbliCellDecorator#decore(javax.swing.JComponent, javax.swing.JTable, java.lang.Object, int, int) */ public void decore( *************** *** 203,208 **** JLabel txtError_; ! PanelInfo() { ! init(); } --- 207,212 ---- JLabel txtError_; ! PanelInfo(boolean _comment) { ! init(_comment); } *************** *** 223,231 **** txtType_.setText(CtuluLib.EMPTY_STRING); txtError_.setText(CtuluLib.EMPTY_STRING); ! txtComment_.setText(CtuluLib.EMPTY_STRING); clearComportButton(); } ! private void init() { BuPanel main = new BuPanel(); main.setLayout(new BuBorderLayout(3, 3)); --- 227,235 ---- txtType_.setText(CtuluLib.EMPTY_STRING); txtError_.setText(CtuluLib.EMPTY_STRING); ! if(txtComment_!=null) txtComment_.setText(CtuluLib.EMPTY_STRING); clearComportButton(); } ! private void init(boolean _comment) { BuPanel main = new BuPanel(); main.setLayout(new BuBorderLayout(3, 3)); *************** *** 289,292 **** --- 293,297 ---- main.add(js, BuBorderLayout.SOUTH); addTab(FDicoResource.getS("Infos"), main); + if(!_comment) return; txtComment_ = new BuTextArea(); txtComment_.setLineWrap(true); *************** *** 319,324 **** --- 324,331 ---- } txtError_.setText(tableModel_.getInvalideMessage(lastEntiteSelected_)); + if(txtComment_!=null){ txtComment_.setText(params.getComment(lastEntiteSelected_)); txtComment_.setEditable(params.isValueSetFor(lastEntiteSelected_)); + } if (params.isEntiteWithComportBehavior(lastEntiteSelected_)) { DicoEntite[] entsHideTie = *************** *** 408,414 **** */ public void saveCurrentComment() { ! if (lastEntiteSelected_ != null) { ! //DEBUG to remove ! System.out.println("save comment"); tableModel_.setCommentaire(lastEntiteSelected_, txtComment_.getText()); } --- 415,419 ---- */ public void saveCurrentComment() { ! if((txtComment_!=null) && (lastEntiteSelected_ != null)) { tableModel_.setCommentaire(lastEntiteSelected_, txtComment_.getText()); } *************** *** 432,436 **** */ public FDicoEntitePanel(FDicoEntiteTableModel _model) { ! this(_model, null); } --- 437,451 ---- */ public FDicoEntitePanel(FDicoEntiteTableModel _model) { ! this(_model, null,true); ! } ! /** ! * @param _model le model pour les mot-cles ! */ ! public FDicoEntitePanel(FDicoEntiteTableModel _model,boolean _comment) { ! this(_model, null,_comment); ! } ! ! public FDicoEntitePanel(FDicoEntiteTableModel _model, Component _leftUp) { ! this(_model, _leftUp,false); } *************** *** 439,443 **** * @param _leftUp un composant qui sera ajoute en haut a gauche (si non null) */ ! public FDicoEntitePanel(FDicoEntiteTableModel _model, Component _leftUp) { tableModel_ = _model; TableCellRenderer valueRenderer = --- 454,458 ---- * @param _leftUp un composant qui sera ajoute en haut a gauche (si non null) */ ! public FDicoEntitePanel(FDicoEntiteTableModel _model, Component _leftUp,boolean _comment) { tableModel_ = _model; TableCellRenderer valueRenderer = *************** *** 580,584 **** setLeftComponent(left); setOneTouchExpandable(true); ! pnInfos_ = new PanelInfo(); pnInfos_.refresh(); //pnTable_.add(pnInfos_, BuBorderLayout.SOUTH); --- 595,599 ---- setLeftComponent(left); setOneTouchExpandable(true); ! pnInfos_ = new PanelInfo(_comment); pnInfos_.refresh(); //pnTable_.add(pnInfos_, BuBorderLayout.SOUTH); *************** *** 688,692 **** public void setTxtAreaHelpVisible(boolean _b) { if (_b && (pnInfos_ == null)) { ! pnInfos_ = new PanelInfo(); pnInfos_.refresh(); pnTable_.add(pnInfos_, BuBorderLayout.SOUTH); --- 703,707 ---- public void setTxtAreaHelpVisible(boolean _b) { if (_b && (pnInfos_ == null)) { ! pnInfos_ = new PanelInfo(true); pnInfos_.refresh(); pnTable_.add(pnInfos_, BuBorderLayout.SOUTH); Index: FDicoProjet.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/fdico/FDicoProjet.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FDicoProjet.java 1 Jun 2004 11:27:44 -0000 1.4 --- FDicoProjet.java 11 Jun 2004 16:39:45 -0000 1.5 *************** *** 48,51 **** --- 48,54 ---- public class FDicoProjet implements FDicoProjetInterface, FudaaCalculSupportInterface { + public String getCodeExecPath() { + return getCodeName(); + } protected FudaaCalculAction actions_; private EbliSimpleAction actionDiff_; Index: FDicoCalculLocal.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/fdico/FDicoCalculLocal.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FDicoCalculLocal.java 5 May 2004 12:42:38 -0000 1.3 --- FDicoCalculLocal.java 11 Jun 2004 16:39:45 -0000 1.4 *************** *** 1,4 **** ! /* ! * @file TrDicoOpCalculLocal.java * @creation 13 juin 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 13 juin 2003 * @modification $Date$ *************** *** 29,33 **** FDicoProjetInterface projet_; public FDicoCalculLocal(FDicoProjetInterface _projet) { ! super(new DicoExec(_projet.getCodeName())); projet_= _projet; } --- 28,32 ---- FDicoProjetInterface projet_; public FDicoCalculLocal(FDicoProjetInterface _projet) { ! super(new DicoExec(_projet.getCodeExecPath())); projet_= _projet; } Index: FDicoProjetInterface.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/fdico/FDicoProjetInterface.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FDicoProjetInterface.java 5 May 2004 12:42:38 -0000 1.2 --- FDicoProjetInterface.java 11 Jun 2004 16:39:45 -0000 1.3 *************** *** 1,4 **** ! /* ! * @file TrDicoProjetInterface.java * @creation 10 juin 2003 * @modification $Date$ --- 1,3 ---- ! /** * @creation 10 juin 2003 * @modification $Date$ *************** *** 24,27 **** --- 23,27 ---- public File getDirBase(); public String getCodeName(); + public String getCodeExecPath(); //public FudaaCalculAction getCalculActions(); // public FDicoEntiteFileTableModelInterface createEntiteFileTableModel(); Index: FDicoProjectPanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/fdico/FDicoProjectPanel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FDicoProjectPanel.java 1 Jun 2004 11:27:44 -0000 1.4 --- FDicoProjectPanel.java 11 Jun 2004 16:39:45 -0000 1.5 *************** *** 50,53 **** --- 50,54 ---- import com.memoire.bu.BuTextField; import com.memoire.bu.BuVerticalLayout; + import com.memoire.fu.FuLib; import org.fudaa.ctulu.CtuluLib; *************** *** 122,126 **** pn.add(new BuLabel(FDicoResource.getS("Fichier principal:"))); lbFile_= new BuLabel(); ! lbFile_.setText(proj.getFDicoParams().getMainFile().getAbsolutePath()); pn.add(lbFile_); pn.add(new BuLabel(FDicoResource.getS("Type projet:"))); --- 123,129 ---- pn.add(new BuLabel(FDicoResource.getS("Fichier principal:"))); lbFile_= new BuLabel(); ! String s=proj.getFDicoParams().getMainFile().getAbsolutePath(); ! lbFile_.setText(FuLib.reducedPath(s)); ! lbFile_.setToolTipText(s); pn.add(lbFile_); pn.add(new BuLabel(FDicoResource.getS("Type projet:"))); *************** *** 431,439 **** } /** ! * */ public void dicoParamsProjectModifyStateChanged(DicoParams _cas) { fileEditor.setBaseDir(proj_.getDirBase()); ! lbFile_.setText(proj_.getFDicoParams().getMainFile().getAbsolutePath()); updateSaveState(); } --- 434,445 ---- } /** ! * maj du nom du fichier et de l'etat de sauvegarde. ! * @see org.fudaa.dodico.dico.DicoParamsListener#dicoParamsProjectModifyStateChanged(org.fudaa.dodico.dico.DicoParams) */ public void dicoParamsProjectModifyStateChanged(DicoParams _cas) { fileEditor.setBaseDir(proj_.getDirBase()); ! String s=proj_.getFDicoParams().getMainFile().getAbsolutePath(); ! lbFile_.setText(FuLib.reducedPath(s)); ! lbFile_.setToolTipText(s); updateSaveState(); } Index: fdico_en.fr_txt =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/fdico/fdico_en.fr_txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fdico_en.fr_txt 12 Mar 2004 10:17:03 -0000 1.2 --- fdico_en.fr_txt 11 Jun 2004 16:39:45 -0000 1.3 *************** *** 16,20 **** --- 16,22 ---- Mot-clés erronés=erroneous keywords Mot-clés modifiés=Modified keywords + Mot-clé modifié=Modified keyword Mot-clés non modifiés=Not modified keywords + Mot-clé non modifié=Not modified keyword n'est pas accessible en écriture=is not in writable mode n'est pas un répertoire=is not a folder *************** *** 32,34 **** Initialiser le filtre=Initialyze filter Le nom du fichier ne doit pas comporter d'espace=The filename must not contain spaces ! Créer les fichiers de log=Create log files \ No newline at end of file --- 34,37 ---- Initialiser le filtre=Initialyze filter Le nom du fichier ne doit pas comporter d'espace=The filename must not contain spaces ! Créer les fichiers de log=Create log files ! Mot-clés\: options=Keywords\: options \ No newline at end of file |
From: Frederic D. <de...@us...> - 2004-06-11 16:39:57
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/controle In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6565/src/org/fudaa/fudaa/meshviewer/controle Modified Files: MvCheckNodeLayer.java MvCheckElementLayer.java Log Message: Index: MvCheckNodeLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/controle/MvCheckNodeLayer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvCheckNodeLayer.java 5 May 2004 12:42:36 -0000 1.1 --- MvCheckNodeLayer.java 11 Jun 2004 16:39:46 -0000 1.2 *************** *** 1,4 **** ! /* ! * @file MvCheckNodeLayer.java * @creation 10 févr. 2004 * @modification $Date$ --- 1,3 ---- ! /** * @creation 10 févr. 2004 * @modification $Date$ *************** *** 36,43 **** /** ! * */ public String getTitle() { ! return ((MvCheckNodeModel)modele_).getDesc(); } --- 35,42 ---- /** ! * @see org.fudaa.ebli.calque.BCalque#getTitle() */ public String getTitle() { ! return ((MvCheckNodeModel) modele_).getDesc(); } *************** *** 45,102 **** * @param _g */ ! public void paintComponent(Graphics _g) { ! MvCheckNodeModel model= (MvCheckNodeModel)modele_; ! int nbPtErr= model.getNbPtWithError(); ! if ((nbPtErr <= 0) && isSelectionEmpty()) ! return; ! GrBoite clip= getClipReel(_g); ! GrBoite domaine= modele_.getDomaine(); //Si le domaine des polys n'est pas dans le domaine d'affichage on arrete ! if (!domaine.intersectXY(clip)) { ! return; ! } ! GrMorphisme versEcran= getVersEcran(); ! boolean attenue= isAttenue(); ! boolean rapide= isRapide(); ! Color foreground= getForeground(); ! Icon icone= getIcone(); if (attenue) { ! foreground= attenueCouleur(foreground); ! icone= attenueIcone(icone); } ! GrPoint p= new GrPoint(); _g.setColor(foreground); ! for (int i= nbPtErr - 1; i >= 0; i--) { modele_.point(p, model.getPtIdxWithError(i)); ! if (!clip.contientXY(p)) ! continue; p.autoApplique(versEcran); ! icone.paintIcon(this, _g, (int)p.x, (int)p.y); ! } ! if ((!rapide) && (!isSelectionEmpty())) { ! initIconeSelection(); ! initCouleurSelection(); ! Color cs= couleurSelection(); ! Icon ic= iconeSelection(); ! if (attenue) { ! cs= attenueCouleur(cs); ! ic= attenueIcone(ic); ! } ! _g.setColor(cs); ! int nb= selection_.getMaxIndex(); ! int max= modele_.getNombre(); ! if (nb >= max) ! nb= max - 1; ! for (int i= selection_.getMinIndex(); i <= nb; i++) { ! if (selection_.isSelected(i)) { ! modele_.point(p, i); ! if (clip.contientXY(p)) { ! p.autoApplique(versEcran); ! ic.paintIcon(this, _g, (int)p.x, (int)p.y); ! } ! } ! } } } ! } --- 44,72 ---- * @param _g */ ! public void paintDonnees(Graphics _g) { ! MvCheckNodeModel model = (MvCheckNodeModel) modele_; ! int nbPtErr = model.getNbPtWithError(); ! if ((nbPtErr <= 0) && isSelectionEmpty()) return; ! GrBoite clip = getClipReel(_g); ! GrBoite domaine = modele_.getDomaine(); //Si le domaine des polys n'est pas dans le domaine d'affichage on arrete ! if (!domaine.intersectXY(clip)) { return; } ! GrMorphisme versEcran = getVersEcran(); ! boolean attenue = isAttenue(); ! Color foreground = getForeground(); ! Icon icone = getIcone(); if (attenue) { ! foreground = attenueCouleur(foreground); ! icone = attenueIcone(icone); } ! GrPoint p = new GrPoint(); _g.setColor(foreground); ! for (int i = nbPtErr - 1; i >= 0; i--) { modele_.point(p, model.getPtIdxWithError(i)); ! if (!clip.contientXY(p)) continue; p.autoApplique(versEcran); ! icone.paintIcon(this, _g, (int) p.x, (int) p.y); } } ! } \ No newline at end of file Index: MvCheckElementLayer.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/controle/MvCheckElementLayer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvCheckElementLayer.java 5 May 2004 12:42:36 -0000 1.1 --- MvCheckElementLayer.java 11 Jun 2004 16:39:46 -0000 1.2 *************** *** 1,4 **** ! /* ! * @file MvCheckElementLayer.java * @creation 10 févr. 2004 * @modification $Date$ --- 1,3 ---- ! /** * @creation 10 févr. 2004 * @modification $Date$ *************** *** 13,18 **** import java.awt.Graphics2D; - import javax.swing.Icon; - import org.fudaa.ebli.geometrie.GrBoite; import org.fudaa.ebli.geometrie.GrMorphisme; --- 12,15 ---- *************** *** 20,24 **** import org.fudaa.ebli.geometrie.GrPolygone; import org.fudaa.ebli.trace.TraceIcone; - import org.fudaa.ebli.trace.TraceLigne; import org.fudaa.ebli.trace.TraceSurface; import org.fudaa.fudaa.meshviewer.layer.MvElementLayer; --- 17,20 ---- *************** *** 30,141 **** */ public class MvCheckElementLayer extends MvElementLayer { TraceSurface ts_; public MvCheckElementLayer(MvCheckElementModel _m) { super(_m); setBackground(Color.red); ! icone_=new TraceIcone(TraceIcone.CROIX,5); } private MvCheckElementModel getM() { ! return (MvCheckElementModel)modele_; } - - /** * @param _g */ ! public void paintComponent(Graphics _g) { ! if ((modele_ == null) || (modele_.getNombre() <= 0)) ! return; ! MvCheckElementModel m= getM(); ! int nbElt= m.getNbEltWithError(); ! if ((nbElt <= 0) && (isSelectionEmpty())) ! return; ! GrBoite clip= getClipReel(_g); ! GrBoite domaine= modele_.getDomaine(); ! if (!domaine.intersectXY(clip)) { ! return; ! } ! GrMorphisme versEcran= getVersEcran(); ! boolean attenue= isAttenue(); ! boolean rapide= isRapide(); ! Color background= getBackground(); ! if (attenue) ! background= attenueCouleur(background); ! GrPolygone p= new GrPolygone(); ! GrBoite bPoly= new GrBoite(); //utilse uniquement pour dessiner la croix afin de voir //facilement les elements detectes. ! GrPoint centre=new GrPoint(); ! if (ts_ == null) ! ts_= new TraceSurface((Graphics2D)_g); ! else ! ts_.setGraphics((Graphics2D)_g); ts_.setCouleurFond(background); ! ((TraceIcone)icone_).couleur(background); ! for (int i= nbElt - 1; i >= 0; i--) { modele_.polygone(p, m.getEltIdxWithError(i)); p.boite(bPoly); //Si la boite du polygone n'est pas dans la boite d'affichage on passe ! if (bPoly.intersectionXY(clip) == null) ! continue; ! int nbPoints= p.sommets.nombre(); ! if (nbPoints <= 0) ! continue; p.autoApplique(versEcran); p.centre(centre); ! icone_.paintIcon(this, _g,(int) centre.x, (int)centre.y); ts_.remplitPolygone(p.polygon()); } - if ((!rapide) && (!isSelectionEmpty())) { - if (tlSelection_ == null) - tlSelection_= new TraceLigne((Graphics2D)_g); - else - tlSelection_.graphics((Graphics2D)_g); - initIconeSelection(); - initCouleurSelection(); - Color cs= couleurSelection(); - Icon ic= iconeSelection(); - if (attenue) { - cs= attenueCouleur(cs); - ic= attenueIcone(ic); - } - _g.setColor(cs); - tlSelection_.setCouleur(cs); - //tlSelection_.setEpaisseur(2f); - int nb= selection_.getMaxIndex(); - for (int i= nb; i >= 0; i--) { - if (!selection_.isSelected(i)) - continue; - modele_.polygone(p, i); - if (clip.intersectXY(p.boite())) { - p.autoApplique(versEcran); - int nbPoints= p.nombre(); - GrPoint ptOri= p.sommets.renvoie(0); - GrPoint ptDest; - for (int j= nbPoints - 1; j >= 0; j--) { - //le point de dest est initialise - ptDest= p.sommets.renvoie(j); - ic.paintIcon(this, _g, (int)ptDest.x, (int)ptDest.y); - tlSelection_.dessineTrait(ptOri.x, ptOri.y, ptDest.x, ptDest.y); - ptOri= ptDest; - } - } - } - } } /** ! * */ public String getTitle() { return getM().getDesc(); } - - /** ! * */ public void fillWithInfo(InfoData _m) { --- 26,92 ---- */ public class MvCheckElementLayer extends MvElementLayer { + TraceSurface ts_; + + /** + * @param _m le modele correspondant + */ public MvCheckElementLayer(MvCheckElementModel _m) { super(_m); setBackground(Color.red); ! icone_ = new TraceIcone(TraceIcone.CROIX, 5); } private MvCheckElementModel getM() { ! return (MvCheckElementModel) modele_; } /** * @param _g */ ! public void paintDonnees(Graphics _g) { ! if ((modele_ == null) || (modele_.getNombre() <= 0)) return; ! MvCheckElementModel m = getM(); ! int nbElt = m.getNbEltWithError(); ! if ((nbElt <= 0) && (isSelectionEmpty())) return; ! GrBoite clip = getClipReel(_g); ! GrBoite domaine = modele_.getDomaine(); ! if (!domaine.intersectXY(clip)) { return; } ! GrMorphisme versEcran = getVersEcran(); ! boolean attenue = isAttenue(); ! Color background = getBackground(); ! if (attenue) background = attenueCouleur(background); ! GrPolygone p = new GrPolygone(); ! GrBoite bPoly = new GrBoite(); //utilse uniquement pour dessiner la croix afin de voir //facilement les elements detectes. ! GrPoint centre = new GrPoint(); ! if (ts_ == null) ts_ = new TraceSurface((Graphics2D) _g); ! else ts_.setGraphics((Graphics2D) _g); ts_.setCouleurFond(background); ! ((TraceIcone) icone_).couleur(background); ! for (int i = nbElt - 1; i >= 0; i--) { modele_.polygone(p, m.getEltIdxWithError(i)); p.boite(bPoly); //Si la boite du polygone n'est pas dans la boite d'affichage on passe ! if (bPoly.intersectionXY(clip) == null) continue; ! int nbPoints = p.sommets.nombre(); ! if (nbPoints <= 0) continue; p.autoApplique(versEcran); p.centre(centre); ! icone_.paintIcon(this, _g, (int) centre.x, (int) centre.y); ts_.remplitPolygone(p.polygon()); } } /** ! * @see org.fudaa.ebli.calque.BCalque#getTitle() */ public String getTitle() { return getM().getDesc(); } /** ! * @see org.fudaa.fudaa.meshviewer.layer.MvLayer#fillWithInfo(org.fudaa.fudaa.meshviewer.layer.MvPanelInfo.InfoData) */ public void fillWithInfo(InfoData _m) { *************** *** 143,145 **** } ! } --- 94,96 ---- } ! } \ No newline at end of file |
From: Frederic D. <de...@us...> - 2004-06-11 16:39:55
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/exec In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6565/src/org/fudaa/fudaa/commun/exec Modified Files: FudaaExecPanel.java Log Message: Index: FudaaExecPanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/exec/FudaaExecPanel.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** FudaaExecPanel.java 1 Jun 2004 11:27:42 -0000 1.12 --- FudaaExecPanel.java 11 Jun 2004 16:39:46 -0000 1.13 *************** *** 54,58 **** txtName_.setColumns(20); txtCmd_= addLabelFileChooserPanel(FudaaResource.getS("Exécutable") + s); ! addLabel(BuResource.BU.getString("Icône") + s); iconButton_= new BuButton(); iconButton_.addActionListener(new ActionListener() { --- 54,58 ---- txtName_.setColumns(20); txtCmd_= addLabelFileChooserPanel(FudaaResource.getS("Exécutable") + s); ! addLabel(FudaaResource.getS("Icône") + s); iconButton_= new BuButton(); iconButton_.addActionListener(new ActionListener() { |
From: Frederic D. <de...@us...> - 2004-06-11 16:39:54
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6565/src/org/fudaa/fudaa/meshviewer Modified Files: MvVisuPanel.java MvFindDialog.java MvActLoad.java MvActLoadDefault.java mv_en.fr_txt Log Message: Index: MvActLoad.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/MvActLoad.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvActLoad.java 12 Feb 2004 16:15:20 -0000 1.1 --- MvActLoad.java 11 Jun 2004 16:39:45 -0000 1.2 *************** *** 26,30 **** * Si _f est null, ouvre un file chooser pour choisir le fichier. * Sinon, essaie de charger le fichier demander */ ! public void load(File _f,MvControllerSrc _s); } --- 26,31 ---- * Si _f est null, ouvre un file chooser pour choisir le fichier. * Sinon, essaie de charger le fichier demander + * @return le fichier reellement ouvert */ ! public File load(File _f,MvControllerSrc _s); } Index: mv_en.fr_txt =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/mv_en.fr_txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mv_en.fr_txt 1 Jun 2004 11:27:42 -0000 1.1 --- mv_en.fr_txt 11 Jun 2004 16:39:45 -0000 1.2 *************** *** 29,31 **** Nombre total de noeuds sur les frontières=Number of nodes on the frontiers Nombre de noeuds=Number of nodes ! Nombre d'éléments=Number of Elements \ No newline at end of file --- 29,31 ---- Nombre total de noeuds sur les frontières=Number of nodes on the frontiers Nombre de noeuds=Number of nodes ! Nombre d'éléments=Number of Elements Index: MvActLoadDefault.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/MvActLoadDefault.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MvActLoadDefault.java 1 Jun 2004 11:27:42 -0000 1.5 --- MvActLoadDefault.java 11 Jun 2004 16:39:45 -0000 1.6 *************** *** 28,31 **** --- 28,32 ---- import org.fudaa.dodico.reflux.io.CorEleBthFileFormat; import org.fudaa.dodico.reflux.io.INPFileFormat; + import org.fudaa.dodico.rubar.io.RubarDATFileFormat; import org.fudaa.dodico.telemac.io.SerafinFileFormat; import org.fudaa.dodico.telemac.io.SerafinInterface; *************** *** 49,58 **** INPFileFormat.getInstance(), DunesFileFormat.getInstance(), CorEleBthFileFormat.getInstance(), SerafinFileFormat.getInstance(), ! TrigridFileFormat.getInstance() })); /** * * */ ! public void load(File _f, final MvControllerSrc _s) { File file = _f; FileFormat ft = null; --- 50,59 ---- INPFileFormat.getInstance(), DunesFileFormat.getInstance(), CorEleBthFileFormat.getInstance(), SerafinFileFormat.getInstance(), ! TrigridFileFormat.getInstance(), RubarDATFileFormat.INSTANCE()})); /** * * */ ! public File load(File _f, final MvControllerSrc _s) { File file = _f; FileFormat ft = null; *************** *** 97,116 **** } else { - System.out.println("guess format"); ft = guessFormat(file.getName(), FT_LIST); - if(ft==null) System.out.println("non trouvé"); } if ((file != null) && (ft != null)) { - System.out.println("grid loaded ?"); loadFileAct(_s, file, (FileFormatGridVersion) ft.getLastVersionInstance()); } } private void loadFileAct(final MvControllerSrc _s, final File _file, final FileFormatGridVersion _v) { if (_file.exists()) { ! BuTask op = new BuTaskOperation(null,MvResource.getS("Lecture")) { public void act() { ProgressionInterface prog_ = _s.getParent().createProgression(this); FileOperationSynthese s = _v.readGrid(_file, prog_); EfGridSource src = (EfGridSource) s.getSource(); --- 98,122 ---- } else { ft = guessFormat(file.getName(), FT_LIST); } + if ((file != null) && (ft != null)) { loadFileAct(_s, file, (FileFormatGridVersion) ft.getLastVersionInstance()); + return file; } + return null; } private void loadFileAct(final MvControllerSrc _s, final File _file, final FileFormatGridVersion _v) { + if(_v==null){ + System.err.println("pas de lecture"); + } if (_file.exists()) { ! BuTask op = new BuTaskOperation(null, MvResource.getS("Lecture")) { ! public void act() { ProgressionInterface prog_ = _s.getParent().createProgression(this); + System.out.println("LECTURE"); FileOperationSynthese s = _v.readGrid(_file, prog_); EfGridSource src = (EfGridSource) s.getSource(); *************** *** 124,128 **** } } - System.out.println("grid loaded"); _s.setLoaded(s); } --- 130,133 ---- Index: MvVisuPanel.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/MvVisuPanel.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvVisuPanel.java 1 Jun 2004 11:27:42 -0000 1.1 --- MvVisuPanel.java 11 Jun 2004 16:39:45 -0000 1.2 *************** *** 204,210 **** if (getGridGroup() != null) return; ! MvGridLayerGroup cqGrid= new MvGridLayerGroup(_m, _ptModel, _eltModel); ! cqGrid.setName("gpGrid"); ! gcDonnees_.add(cqGrid); } /** --- 204,213 ---- if (getGridGroup() != null) return; ! addCqGroupeMaillage(new MvGridLayerGroup(_m, _ptModel, _eltModel)); ! } ! ! protected final void addCqGroupeMaillage(MvGridLayerGroup _g){ ! _g.setName("gpGrid"); ! gcDonnees_.add(_g); } /** *************** *** 639,643 **** MvLayer l= (MvLayer)getCalqueActif(); if ((l != null) && (!l.isSelectionPointEmpty())) { ! getCqNumber().setSelectedPoint(l.getPtIdx()); } } else if ("DISPLAY_INDEX_ALL_POINT".equals(com)) { --- 642,646 ---- MvLayer l= (MvLayer)getCalqueActif(); if ((l != null) && (!l.isSelectionPointEmpty())) { ! getCqNumber().setSelectedPoint(l.getSelectedPtIdx()); } } else if ("DISPLAY_INDEX_ALL_POINT".equals(com)) { *************** *** 658,662 **** MvLayer l= (MvLayer)getCalqueActif(); if ((l != null) && (!l.isSelectionElementEmpty())) { ! getCqElementNumber().setSelectedElement(l.getElementIdx()); } } else if ("DISPLAY_INDEX_ALL_ELEMENT".equals(com)) { --- 661,665 ---- MvLayer l= (MvLayer)getCalqueActif(); if ((l != null) && (!l.isSelectionElementEmpty())) { ! getCqElementNumber().setSelectedElement(l.getSelectedElementIdx()); } } else if ("DISPLAY_INDEX_ALL_ELEMENT".equals(com)) { Index: MvFindDialog.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/MvFindDialog.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MvFindDialog.java 1 Jun 2004 11:27:42 -0000 1.1 --- MvFindDialog.java 11 Jun 2004 16:39:45 -0000 1.2 *************** *** 147,151 **** GrBoite b=act_[i].getZoomOnSelected(); if(b!=null) ! visu_.getVueCalque().changeRepere(this, b); } if((cbEdit_.isEnabled()) && (cbEdit_.isSelected())){ --- 147,151 ---- GrBoite b=act_[i].getZoomOnSelected(); if(b!=null) ! visu_.getVueCalque().changeRepere(this, b,0,0); } if((cbEdit_.isEnabled()) && (cbEdit_.isSelected())){ |
From: Frederic D. <de...@us...> - 2004-06-11 16:38:38
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/geometrie In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5340/src/org/fudaa/ebli/geometrie Modified Files: GrBoite.java Log Message: Maj calque segment Index: GrBoite.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/geometrie/GrBoite.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** GrBoite.java 1 Jun 2004 11:25:00 -0000 1.8 --- GrBoite.java 11 Jun 2004 16:38:27 -0000 1.9 *************** *** 281,284 **** --- 281,292 ---- return r; } + + public double getLargeur(){ + return e.x-o.x; + } + + public double getHauteur(){ + return e.y-o.y; + } /** * Indique si l'objet est sélectionné pour un point donné.<p> |
From: Frederic D. <de...@us...> - 2004-06-11 16:38:37
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/trace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5340/src/org/fudaa/ebli/trace Modified Files: TraceIcone.java TraceLigne.java Log Message: Maj calque segment Index: TraceIcone.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/trace/TraceIcone.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TraceIcone.java 19 Dec 2003 12:06:42 -0000 1.6 --- TraceIcone.java 11 Jun 2004 16:38:27 -0000 1.7 *************** *** 8,11 **** --- 8,12 ---- */ package org.fudaa.ebli.trace; + import java.awt.*; import java.awt.geom.Line2D; *************** *** 15,135 **** /** * Une classe de trace de points. ! * ! * @version $Revision$ $Date$ b_y $Author$ ! * @author A_xel von Arnim */ public class TraceIcone implements Icon { ! public final static int RIEN= 0; ! public final static int POINT= 1; ! public final static int PLUS= 2; ! public final static int CROIX= 3; ! public final static int CARRE= 4; ! public final static int CARRE_PLEIN= 5; ! public final static int LOSANGE= 6; ! public final static int CERCLE= 7; ! public final static int DISQUE= 8; protected int type_; protected int taille_; private Color couleur_; public TraceIcone() { this(TracePoint.POINT, 1); } public TraceIcone(int _type, int _taille) { ! type_= _type; ! taille_= _taille; } public void type(int _type) { ! type_= _type; } public int type() { return type_; } /** ! * Correspond a la taille/2 de l'icone */ public void taille(int _taille) { ! taille_= _taille; } /** ! * Correspond a la taille/2 de l'icone */ public int taille() { return taille_; } public void couleur(Color _couleur) { ! couleur_= _couleur; } public Color couleur() { return couleur_; } public int getIconWidth() { ! return 2 * taille_; } public int getIconHeight() { ! return 2 * taille_; } public void paintIcon(Component _c, Graphics _g, double _x, double _y) { ! paintIcon(_c, _g, (int)_x, (int)_y); } public void paintIcon(Component _c, Graphics _g, int _x, int _y) { ! Color old= null; if (couleur_ != null) { ! old= _g.getColor(); _g.setColor(couleur_); } switch (type_) { ! case RIEN : ! break; ! case POINT : ! _g.drawLine(_x, _y, _x, _y); ! break; ! case PLUS : ! _g.drawLine(_x - taille_, _y, _x + taille_, _y); ! _g.drawLine(_x, _y - taille_, _x, _y + taille_); ! break; ! case CROIX : ! _g.drawLine(_x - taille_, _y - taille_, _x + taille_, _y + taille_); ! _g.drawLine(_x + taille_, _y - taille_, _x - taille_, _y + taille_); ! break; ! case CARRE : ! _g.drawRect( ! _x - taille_, ! _y - taille_, ! 2 * taille_ - 1, ! 2 * taille_ - 1); ! break; ! case CARRE_PLEIN : ! _g.fillRect( ! _x - taille_, ! _y - taille_, ! 2 * taille_ - 1, ! 2 * taille_ - 1); ! break; ! case LOSANGE : ! _g.drawLine(_x - taille_, _y, _x, _y - taille_); ! _g.drawLine(_x, _y - taille_, _x + taille_, _y); ! _g.drawLine(_x + taille_, _y, _x, _y + taille_); ! _g.drawLine(_x, _y + taille_, _x - taille_, _y); ! break; ! case CERCLE : ! _g.drawArc( ! _x - taille_, ! _y - taille_, ! 2 * taille_ + 1, ! 2 * taille_ + 1, ! 0, ! 360); ! break; ! case DISQUE : ! _g.fillArc( ! _x - taille_, ! _y - taille_, ! 2 * taille_ + 1, ! 2 * taille_ + 1, ! 0, ! 360); ! break; ! default : ! break; } if (couleur_ != null) { --- 16,129 ---- /** * Une classe de trace de points. ! * ! * @version $Revision$ $Date$ b_y $Author$ ! * @author A_xel von Arnim */ public class TraceIcone implements Icon { ! ! public final static int RIEN = 0; ! public final static int POINT = 1; ! public final static int PLUS = 2; ! public final static int CROIX = 3; ! public final static int CARRE = 4; ! public final static int CARRE_PLEIN = 5; ! public final static int LOSANGE = 6; ! public final static int CERCLE = 7; ! public final static int DISQUE = 8; protected int type_; protected int taille_; private Color couleur_; + public TraceIcone() { this(TracePoint.POINT, 1); } + public TraceIcone(int _type, int _taille) { ! type_ = _type; ! taille_ = _taille; } + public void type(int _type) { ! type_ = _type; } + public int type() { return type_; } + /** ! * Correspond a la taille/2 de l'icone */ public void taille(int _taille) { ! taille_ = _taille; } + /** ! * Correspond a la taille/2 de l'icone */ public int taille() { return taille_; } + public void couleur(Color _couleur) { ! couleur_ = _couleur; } + public Color couleur() { return couleur_; } + public int getIconWidth() { ! return type_ == POINT ? 1 : 2 * taille_; } + public int getIconHeight() { ! return type_ == POINT ? 1 : 2 * taille_; } + public void paintIcon(Component _c, Graphics _g, double _x, double _y) { ! paintIcon(_c, _g, (int) _x, (int) _y); } + public void paintIcon(Component _c, Graphics _g, int _x, int _y) { ! Color old = null; if (couleur_ != null) { ! old = _g.getColor(); _g.setColor(couleur_); } switch (type_) { ! case RIEN: ! break; ! case POINT: ! _g.drawLine(_x, _y, _x, _y); ! break; ! case PLUS: ! _g.drawLine(_x - taille_, _y, _x + taille_, _y); ! _g.drawLine(_x, _y - taille_, _x, _y + taille_); ! break; ! case CROIX: ! _g.drawLine(_x - taille_, _y - taille_, _x + taille_, _y + taille_); ! _g.drawLine(_x + taille_, _y - taille_, _x - taille_, _y + taille_); ! break; ! case CARRE: ! _g.drawRect(_x - taille_, _y - taille_, 2 * taille_ - 1, 2 * taille_ - 1); ! break; ! case CARRE_PLEIN: ! _g.fillRect(_x - taille_, _y - taille_, 2 * taille_ - 1, 2 * taille_ - 1); ! break; ! case LOSANGE: ! _g.drawLine(_x - taille_, _y, _x, _y - taille_); ! _g.drawLine(_x, _y - taille_, _x + taille_, _y); ! _g.drawLine(_x + taille_, _y, _x, _y + taille_); ! _g.drawLine(_x, _y + taille_, _x - taille_, _y); ! break; ! case CERCLE: ! _g.drawArc(_x - taille_, _y - taille_, 2 * taille_ + 1, 2 * taille_ + 1, 0, 360); ! break; ! case DISQUE: ! _g.fillArc(_x - taille_, _y - taille_, 2 * taille_ + 1, 2 * taille_ + 1, 0, 360); ! break; ! default: ! break; } if (couleur_ != null) { *************** *** 137,139 **** } } ! } --- 131,133 ---- } } ! } \ No newline at end of file Index: TraceLigne.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/trace/TraceLigne.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TraceLigne.java 25 Nov 2003 10:06:48 -0000 1.7 --- TraceLigne.java 11 Jun 2004 16:38:27 -0000 1.8 *************** *** 8,11 **** --- 8,12 ---- */ package org.fudaa.ebli.trace; + import java.awt.*; import java.awt.geom.CubicCurve2D; *************** *** 17,66 **** /** * Une classe de trace de lignes. [...1440 lines suppressed...] ! * private void bresenham(int x1, int y1, int x2, int y2, BresenhamParams bp) { int xprec=x1; int ! * yprec=y1; int c, deltaX, deltaY, x, y, incrX, incrY, i; deltaX=Math.abs(x2-x1); ! * deltaY=Math.abs(y2-y1); if( (y2-y1)>0 ) incrY=1; else incrY=-1; if( (x2-x1)>0 ) incrX=1; else ! * incrX=-1; if( deltaX>deltaY ) { c=2*deltaY-deltaX; y=y1; x=x1; for(i=0; i <deltaX; i++) { if( ! * bp.trait ) { if( bp.count <bp.lgTrait ) { g_.drawLine(xprec, yprec, x, y); bp.count++; } else { ! * bp.count=0; bp.trait=false; } } else { if( bp.count <bp.lgVide ) bp.count++; else { bp.count=0; ! * xprec=x; yprec=y; bp.trait=true; } } x+=incrX; if( c <0 ) c+=(2*deltaY); else { y+=incrY; ! * c+=(2*deltaY-2*deltaX); } } } else { c=2*deltaX-deltaY; x=x1; y=y1; for(i=0; i <deltaY; i++) { ! * if( bp.trait ) { if( bp.count <bp.lgTrait ) { g_.drawLine(xprec, yprec, x, y); bp.count++; } ! * else { bp.trait=false; bp.count=0; } } else { if( bp.count <bp.lgVide ) bp.count++; else { ! * bp.count=0; xprec=x; yprec=y; bp.trait=true; } } y+=incrY; if( c <0 ) c+=(2*deltaX); else { ! * x+=incrX; c+=(2*deltaX-2*deltaY); } } } } */ } /** Structure de donnees pour l'algorithme de Bresenham. */ /* ! * class BresenhamParams { public int lgTrait, lgVide; public int count; public boolean trait; ! * public BresenhamParams(int _lgTrait, int _lgVide) { lgTrait=_lgTrait; lgVide=_lgVide; count=0; ! * trait=true; } } */ |
From: Frederic D. <de...@us...> - 2004-06-11 16:38:36
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/dialog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5340/src/org/fudaa/ebli/dialog Modified Files: EbliFavoriteFiles.java Log Message: Maj calque segment Index: EbliFavoriteFiles.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/dialog/EbliFavoriteFiles.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EbliFavoriteFiles.java 1 Jun 2004 11:25:00 -0000 1.3 --- EbliFavoriteFiles.java 11 Jun 2004 16:38:26 -0000 1.4 *************** *** 26,29 **** --- 26,31 ---- import com.memoire.bu.BuBorderLayout; import com.memoire.bu.BuButtonLayout; + import com.memoire.bu.BuMenu; + import com.memoire.bu.BuMenuItem; import com.memoire.bu.BuPanel; import com.memoire.bu.BuPreferences; *************** *** 151,154 **** --- 153,177 ---- Collections.sort(list_); } + + public void fillMenu(BuMenu _m,ActionListener _l){ + String pref="DIR_"; + for(int i=0;i<list_.size();i++){ + String s=(String)list_.get(i); + BuMenuItem it=_m.addMenuItem(FuLib.reducedPath(s),pref+s); + it.addActionListener(_l); + it.setToolTipText(s); + } + } + + public final static boolean isFavAction(String s){ + return ((s!=null) && (s.startsWith("DIR_"))); + } + + public String getPathFromMenuCommand(String _init){ + if((_init!=null) && (_init.length()>4)){ + return _init.substring(4); + } + return null; + } private class FavoriteModel extends AbstractListModel implements MutableComboBoxModel { |
From: Frederic D. <de...@us...> - 2004-06-11 16:36:39
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test/rubar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3396/src/org/fudaa/dodico/test/rubar Added Files: SECT24.PAR SECT24.CIN TestJPARReader.java TestJDATReader.java SECT24.DAT Log Message: Rubar --- NEW FILE: SECT24.CIN --- 0.000 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 9999.9902 [...3150 lines suppressed...] 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 100.000 --- NEW FILE: TestJPARReader.java --- /** * @creation 8 juin 2004 * @modification $Date: 2004/06/11 16:36:26 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.test.rubar; import java.util.Arrays; import org.fudaa.dodico.dico.DicoCasAbstract; import org.fudaa.dodico.dico.DicoCasFileFormatVersion; import org.fudaa.dodico.dico.DicoDataType; import org.fudaa.dodico.dico.DicoEntite; import org.fudaa.dodico.dico.DicoEntiteComparator; import org.fudaa.dodico.dico.DicoModelAbstract; import org.fudaa.dodico.dico.DicoParams; import org.fudaa.dodico.fichiers.FileOperationSynthese; import org.fudaa.dodico.rubar.io.RubarPARFileFormat; import org.fudaa.dodico.rubar.io.RubarPARReader; import org.fudaa.dodico.test.TestIO; /** * @author Fred Deniger * @version $Id: TestJPARReader.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class TestJPARReader extends TestIO { /** * SECT24.DAT */ public TestJPARReader() { super("SECT24.PAR"); } /** * Test la lecture du fichier SECT24.DAT */ public void testReader() { RubarPARFileFormat.PARVersion v = (RubarPARFileFormat.PARVersion) RubarPARFileFormat.INSTANCE() .getLastVersionInstance(); RubarPARReader r = new RubarPARReader(v); r.setFile(fic_); FileOperationSynthese s = r.read(); if (s.containsMessages()) { s.printAnalyze(); } DicoParams p = (DicoParams) s.getSource(); DicoModelAbstract dico = p.getDicoFileFormatVersion().getDico(); int nb = dico.getEntiteNombre(); assertEquals(25, nb); DicoEntite[] d = new DicoEntite[25]; dico.getEntites().toArray(d); Arrays.sort(d, new DicoEntiteComparator.Index()); String[] t = new String[2]; int idx=0; t[0] = "Reprise de calcul"; t[1] = "Computation continued"; DicoEntite ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0", p.getValue(ent)); assertFalse(DicoDataType.Binaire.getValue(p.getValue(ent))); t[0] = "Précision sur les hauteurs"; t[1] = "Precision for elevation"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.100E-09", p.getValue(ent)); t[0] = "Accélération de la pesanteur"; t[1] = "Gravity acceleration"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("9.810", p.getValue(ent)); t[0] = "Temps début du calcul"; t[1] = "Computation start time"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.000", p.getValue(ent)); t[0] = "Temps fin calcul"; t[1] = "Computation end time"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("7200.", p.getValue(ent)); t[0] = "Valeur pas de temps initial"; t[1] = "Initial time step"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.05", p.getValue(ent)); t[0] = "Calcul à nombre de Courant constant"; t[1] = "Computation with constant \"Courant\" number"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0", p.getValue(ent)); t[0] = "Valeur du nombre Courant"; t[1] = "\"Courant\" value"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("50.", p.getValue(ent)); t[0] = "Schéma calcul"; t[1] = "Computation scheme"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("2", p.getValue(ent)); t[0] = "Conditions limites variables dans le temps"; t[1] = "Boundary conditions depending on time"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("1", p.getValue(ent)); t[0] = "Correction de Van Leer"; t[1] = "Van Leer correction"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.600", p.getValue(ent)); t[0] = "Ouvrages"; t[1] = "Works"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("1", p.getValue(ent)); t[0] = "Définition du frottement"; t[1] = "Friction definition"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("1", p.getValue(ent)); t[0] = "Pas de temps de sauvegarde"; t[1] = "Save time step"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("300.", p.getValue(ent)); t[0] = "fichier hyrdrogrammes (TRC)"; t[1] = "File hydrograph (TRC)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("1", p.getValue(ent)); t[0] = "Edition maillage (EDM)"; t[1] = "Grid Edition (EDM)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0", p.getValue(ent)); t[0] = "Edition des conditions limites(ECL)"; t[1] = "Boundary conditions edition (ECL)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0", p.getValue(ent)); t[0] = "Edition des conditions initiales (ECI)"; t[1] = "Initial condition edition (ECI)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0", p.getValue(ent)); t[0] = "Edition des frottements de fond (EFR)"; t[1] = "Bottom friction edition (EFR)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0", p.getValue(ent)); t[0] = "Valeurs aux arêtes entrantes,sortantes et sur les ouvrages (OUT)"; t[1] = "Values for inflowing/outflowing edges et for works (OUT)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("1", p.getValue(ent)); t[0] = "Maxima des résultats depuis le début du calcul (ENV)"; t[1] = "Maximal values from the computation beginning (ENV)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("1", p.getValue(ent)); t[0] = "Constante de viscosité (ou diffusion)"; t[1] = "Viscosity constante (or diffusion)"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.00", p.getValue(ent)); t[0] = "Coefficient de frottement à la paroi"; t[1] = "Friction coefficient for wall"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.00", p.getValue(ent)); t[0] = "Vitesse du vent selon X"; t[1] = "Wind velocity along X"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.00", p.getValue(ent)); t[0] = "Vitesse du vent selon Y"; t[1] = "Wind velocity along Y"; ent = d[idx++]; assertEquals(ent, v.getEntiteFor(t)); assertEquals("0.00", p.getValue(ent)); } } --- NEW FILE: SECT24.DAT --- 6375 4 1 2 3 4 4 1 3 4 2 4 0 0 2 24 4 3 5 6 7 4 2 4 6 5 4 1 0 3 25 4 6 8 9 10 4 5 6 8 7 4 2 0 4 26 4 9 11 12 13 4 7 8 10 9 4 3 0 5 27 4 12 14 15 16 4 9 10 12 11 4 4 0 6 28 4 15 17 18 19 4 11 12 14 13 4 5 0 7 29 [...46778 lines suppressed...] 171.241 171.129 171.017 170.905 171.090 171.275 171.840 173.098 174.355 175.612 177.073 178.759 180.759 180.284 179.822 179.359 178.897 178.434 177.971 177.509 177.046 176.584 176.107 175.620 175.179 174.742 174.305 173.868 173.431 172.994 172.557 172.120 171.683 168.683 168.683 171.683 171.589 171.494 171.400 171.306 171.212 171.118 171.024 170.926 170.802 170.678 170.553 170.739 170.925 171.509 172.815 174.121 175.427 176.946 178.640 180.569 180.192 179.718 179.243 178.769 178.294 177.820 177.346 176.871 176.397 175.913 175.422 174.979 174.540 174.100 173.660 173.220 172.781 172.341 171.901 171.461 168.461 168.461 171.461 171.357 171.252 171.147 171.042 170.938 170.833 170.728 170.620 170.484 170.348 170.212 170.399 170.586 171.186 172.540 173.894 175.247 176.823 178.525 180.384 180.093 179.606 179.119 178.632 178.145 177.657 177.170 176.683 176.196 175.704 175.209 174.765 174.322 173.879 173.437 172.994 172.551 172.109 171.666 171.223 168.223 168.223 171.223 171.107 170.991 170.875 170.759 170.643 170.527 170.411 170.292 170.143 169.994 169.845 170.033 170.221 170.840 172.245 173.650 175.055 176.691 178.400 180.186 180.000 179.501 179.002 178.503 178.004 177.505 177.005 176.506 176.007 175.508 175.009 174.563 174.117 173.672 173.227 172.781 172.336 171.891 171.445 171.000 168.000 168.000 171.000 170.873 170.747 170.620 170.493 170.366 170.240 170.113 169.982 169.822 169.661 169.500 169.689 169.878 170.515 171.968 173.421 174.874 176.567 178.283 180.000 0 --- NEW FILE: TestJDATReader.java --- /** * @creation 8 juin 2004 * @modification $Date: 2004/06/11 16:36:27 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.test.rubar; import org.fudaa.dodico.ef.EfElementVolume; import org.fudaa.dodico.ef.EfGridVolume; import org.fudaa.dodico.ef.EfNode; import org.fudaa.dodico.fichiers.FileOperationSynthese; import org.fudaa.dodico.h2d.rubar.H2dRubarArete; import org.fudaa.dodico.h2d.rubar.H2dRubarGrid; import org.fudaa.dodico.h2d.rubar.H2dRubarGridAreteSource; import org.fudaa.dodico.rubar.io.RubarDATFileFormat; import org.fudaa.dodico.rubar.io.RubarDATReader; import org.fudaa.dodico.test.TestIO; /** * @author Fred Deniger * @version $Id: TestJDATReader.java,v 1.1 2004/06/11 16:36:27 deniger Exp $ */ public class TestJDATReader extends TestIO { /** * SECT24.DAT */ public TestJDATReader() { super("SECT24.DAT"); } /** * Test la lecture du fichier SECT24.DAT */ public void testReader(){ RubarDATReader r=new RubarDATReader((RubarDATFileFormat.DATVersion)RubarDATFileFormat.INSTANCE().getLastVersionInstance()); r.setFile(fic_); FileOperationSynthese s=r.read(); if(s.containsMessages()){ s.printAnalyze(); } H2dRubarGridAreteSource gridArete=(H2dRubarGridAreteSource)s.getSource(); assertNotNull(gridArete); EfGridVolume gv=gridArete.getRubarGrid(); assertNotNull(gv); assertEquals(6375,gv.getEltNb()); EfElementVolume v=gv.getEltVolume(0); assertEquals(4,v.getPtNb()); assertEquals(0,v.getPtIndex(0)); assertEquals(2,v.getPtIndex(1)); assertEquals(3,v.getPtIndex(2)); assertEquals(1,v.getPtIndex(3)); assertEquals(4,v.getNbAretes()); assertEquals(0,v.getIdxArete(0)); assertEquals(1,v.getIdxArete(1)); assertEquals(2,v.getIdxArete(2)); assertEquals(3,v.getIdxArete(3)); int[] eltVoison=gridArete.elementsVoisinsParElement()[0]; assertNotNull(eltVoison); assertEquals(4,eltVoison.length); assertEquals(-1,eltVoison[0]); assertEquals(-1,eltVoison[1]); assertEquals(1,eltVoison[2]); assertEquals(23,eltVoison[3]); //99 v=gv.getEltVolume(100); assertEquals(4,v.getPtNb()); assertEquals(104,v.getPtIndex(0)); assertEquals(105,v.getPtIndex(1)); assertEquals(129,v.getPtIndex(2)); assertEquals(128,v.getPtIndex(3)); assertEquals(4,v.getNbAretes()); assertEquals(182,v.getIdxArete(0)); assertEquals(228,v.getIdxArete(1)); assertEquals(229,v.getIdxArete(2)); assertEquals(226,v.getIdxArete(3)); eltVoison=gridArete.elementsVoisinsParElement()[100]; assertNotNull(eltVoison); assertEquals(4,eltVoison.length); assertEquals(77,eltVoison[0]); assertEquals(101,eltVoison[1]); assertEquals(123,eltVoison[2]); assertEquals(99,eltVoison[3]); //LES ARETES H2dRubarGrid g=gridArete.getRubarGrid(); assertEquals(12869,g.getNbAretes()); H2dRubarArete ar=g.getRubarArete(0); assertEquals(0,ar.getPt1Idx()); assertEquals(2,ar.getPt2Idx()); assertEquals(2,ar.getType().getRubarIdx()); eltVoison=gridArete.elementsVoisinsParArete()[0]; assertEquals(2,eltVoison.length); assertEquals(-1,eltVoison[0]); assertEquals(0,eltVoison[1]); ar=g.getRubarArete(12865); assertEquals(null,ar.getType()); ar=g.getRubarArete(12868); assertEquals(6493,ar.getPt1Idx()); assertEquals(6494,ar.getPt2Idx()); assertEquals(2,ar.getType().getRubarIdx()); eltVoison=gridArete.elementsVoisinsParArete()[12868]; assertEquals(2,eltVoison.length); assertEquals(6374,eltVoison[0]); assertEquals(-1,eltVoison[1]); //LES POINTS assertEquals(6495,gv.getPtsNb()); EfNode n=gv.getPt(0); assertDoubleEquals(811784.0,n.getX()); assertDoubleEquals(284760.0,n.getY()); assertDoubleEquals(235,n.getZ()); n=gv.getPt(6494); assertDoubleEquals(808623.3,n.getX()); assertDoubleEquals(286799.2,n.getY()); assertDoubleEquals(180,n.getZ()); } } --- NEW FILE: SECT24.PAR --- REPRISE (0/1) 1=REPR :0 VALEUR DE PARAY : 0.100E-09 VALEUR DE LA GRAVITE : 9.810 TEMPS DEBUT DE CALCUL= : 0.000 TEMPS FIN DE CALCUL= : 7200. VALEUR PAS DE TEMPS INITIAL : 0.05 CALCUL A CFL CONST OUI(1)/0 :0 VALEUR DE CFL : 50. SCHEMA CALCUL G(0)/V1(1)/V2(2) :2 CONDITIONS LIMITES F(T) OUI(1)/0 :1 CORRECTION VAN LEER : 0.600 OUVRAGES OUI(1)/0 :1 STRICKLER(1)/CHEZY(0) :1 PAS DE TEMPS DE STOCKAGE : 300. RESULTATS POUR HYDROGRAMMES (0/1):1 EDITION MAILLAGE (0/1) :0 EDITION COND LIM (0/1) :0 EDITION COND INIT (0/1) :0 EDITION FROTTEMENTS (0/1) :0 EDITION RESULTAT AUX LIMITES(0/1):1 EDITION ENVELOPPES (0/1) :1 CONSTANTE DE VISCOSITE : 0.00 FROTTEMENT A LA PAROI(CHEZY) : 0.00 VITESSE DU VENT SUR OX : 0.00 VITESSE DU VENT SUR OY : 0.00 |
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/rubar/io In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3396/src/org/fudaa/dodico/rubar/io Added Files: RubarPARFileFormat.java RubarDATReader.java RubarPARReader.java RubarDatSource.java RubarDATFileFormat.java Log Message: Rubar --- NEW FILE: RubarPARFileFormat.java --- /** * @creation 8 juin 2004 * @modification $Date: 2004/06/11 16:36:26 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.rubar.io; import org.fudaa.dodico.dico.DicoCasFileFormat; import org.fudaa.dodico.dico.DicoCasFileFormatVersion; import org.fudaa.dodico.dico.DicoManager; import org.fudaa.dodico.fichiers.FileFormatVersion; import org.fudaa.dodico.fichiers.FileReadOperationAbstract; import org.fudaa.dodico.fichiers.FileWriteOperationAbstract; import org.fudaa.dodico.h2d.resource.H2dResource; import org.fudaa.dodico.h2d.rubar.H2dRubarBcTypeList; import org.fudaa.dodico.h2d.rubar.H2dRubarBoundaryType; import org.fudaa.dodico.h2d.rubar.H2dRubarDicoModel; import org.fudaa.dodico.rubar.io.RubarDATFileFormat.DATVersion; /** * @author Fred Deniger * @version $Id: RubarPARFileFormat.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class RubarPARFileFormat extends DicoCasFileFormat { public DicoManager getDicoManager() { return null; } private static RubarPARFileFormat INSTANCE_ = null; /** * @return l'instance a utiliser */ public static RubarPARFileFormat INSTANCE() { //pas besoin de synchronise. S'il y a 2 instances, c'est pas grave if (INSTANCE_ == null) INSTANCE_ = new RubarPARFileFormat(); return INSTANCE_; } /** * */ public RubarPARFileFormat() { super("rubar"); extensions_ = new String[] { "PAR"}; super.description_ = H2dResource.getS("Fichier des paramètres de simulation"); super.ID_ = "RUBAR_PAR"; super.nom_ = "Rubar par"; } /** * @see org.fudaa.dodico.fichiers.FileFormat#getLastVersion() */ public String getLastVersion() { return "1.0"; } /** * @see org.fudaa.dodico.fichiers.FileFormat#getLastVersionInstance() */ public FileFormatVersion getLastVersionInstance() { return new PARVersion(); } /** * La version courante. * * @author Fred Deniger * @version $Id: RubarPARFileFormat.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class PARVersion extends DicoCasFileFormatVersion { /** * Constructeur par defaut */ public PARVersion() { super(INSTANCE(), new H2dRubarDicoModel()); } /** * @param _idxRubar l'indice a tester * @return true s'il s'agit */ public boolean isExternIdx(int _idxRubar) { return _idxRubar != 0; } /** * Si renvoie null, il se peut ce soit un bord interne. A tester avec isExternIdx * * @param _idx l'indice a tester * @return le bord extern correspondant ou null si aucun. */ public H2dRubarBoundaryType getExternType(int _idx) { return H2dRubarBcTypeList.getExternType(_idx); } /** * @see org.fudaa.dodico.fichiers.FileFormatVersion#createReader() */ public FileReadOperationAbstract createReader() { return new RubarPARReader(this); } /** * @see org.fudaa.dodico.fichiers.FileFormatVersion#createWriter() */ public FileWriteOperationAbstract createWriter() { return null; } } } --- NEW FILE: RubarDATReader.java --- /** * @creation 8 juin 2004 * @modification $Date: 2004/06/11 16:36:26 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.rubar.io; import java.io.IOException; import java.util.Arrays; import org.fudaa.ctulu.CtuluLib; import org.fudaa.dodico.ef.EfElementVolume; import org.fudaa.dodico.ef.EfGridVolume; import org.fudaa.dodico.ef.EfNode; import org.fudaa.dodico.fichiers.FileOpReadCharSimpleAbstract; import org.fudaa.dodico.h2d.resource.H2dResource; import org.fudaa.dodico.h2d.rubar.H2dRubarArete; import org.fudaa.dodico.h2d.rubar.H2dRubarBoundaryType; import org.fudaa.dodico.h2d.rubar.H2dRubarGrid; /** * @author Fred Deniger * @version $Id: RubarDATReader.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class RubarDATReader extends FileOpReadCharSimpleAbstract { RubarDATFileFormat.DATVersion v_; public RubarDATReader(RubarDATFileFormat.DATVersion _v) { v_ = _v; } protected Object _read() { RubarDatSource r = null; try { //LECTURE DES ELEMENTS in_.readFields(); //lecture ne int ne = in_.intField(0); //initialisation donnees int tmpOnLine = 0; int nbFieldByLine; EfElementVolume[] elt = new EfElementVolume[ne]; int[][] ieNeve = new int[ne][]; int[] fmt = new int[] { 6, 6, 6, 6, 6}; nbFieldByLine = fmt.length; for (int ie = 0; ie < ne; ie++) { //lecture de la ligne NAE(IE),IAE(JA) in_.readFields(fmt); int nae = in_.intField(0); //utilise pour savoir ou on se trouve sur la ligne tmpOnLine = 1; int[] iae = new int[nae]; for (int ja = 0; ja < nae; ja++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } //en java les index commencent a 0 iae[ja] = in_.intField(tmpOnLine) - 1; tmpOnLine++; } //lecture de la ligne NNE(IE),INE(JN) in_.readFields(); int nne = in_.intField(0); tmpOnLine = 1; int[] ine = new int[nne]; for (int jn = 0; jn < nne; jn++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } ine[jn] = in_.intField(tmpOnLine) - 1; tmpOnLine++; } //lecture de la ligne NEVE(IE),IEVE(JE) //donnees stockes dans un tableau autre pour l'instant in_.readFields(); int neve = in_.intField(0); tmpOnLine = 1; ieNeve[ie] = new int[neve]; for (int je = 0; je < neve; je++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } ieNeve[ie][je] = in_.intField(tmpOnLine) - 1; tmpOnLine++; } //maj de l'element correspondant elt[ie] = new EfElementVolume(iae, ine); } if (progress_ != null) progress_.setProgression(20); //LECTURE DES ARETES //na in_.readFields(); int na = in_.intField(0); fmt = new int[] { 6, 6, 6, 6, 6, 6}; nbFieldByLine = fmt.length; H2dRubarArete[] segment = new H2dRubarArete[na]; int[][] iaNeva = new int[na][]; //permet de calculer le nombre d'aretes limites rentrantes int nbNasCalculated = 0; for (int ia = 0; ia < na; ia++) { //lecture nna(ia),ina(ia,jn) in_.readFields(fmt); int nna = in_.intField(0); //une arete invalide on arrete la lecture if (nna != 2) { analyze_.addFatalError(H2dResource .getS("Le nombre de points pour une arête est incorrect") + " (" + CtuluLib.getString(nna) + ")", in_.getLineNumber()); return null; } //on affecte les indices int seg1=in_.intField(1) - 1; int seg2=in_.intField(2) - 1; //lecture de nrefa,neva,ieva in_.readFields(fmt); int nrefa = in_.intField(0); if (nrefa > 2) nbNasCalculated++; H2dRubarBoundaryType type=null; if(v_.isExternIdx(nrefa)){ type=v_.getExternType(nrefa); if(type==null) { analyze_.addFatalError(H2dResource.getS("Code inconnu")+" "+CtuluLib.getString(nrefa)); return null; } } segment[ia] = new H2dRubarArete(seg1,seg2,type); int neva = in_.intField(1); tmpOnLine = 2; iaNeva[ia] = new int[neva]; for (int je = 0; je < neva; je++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } iaNeva[ia][je] = in_.intField(tmpOnLine) - 1; tmpOnLine++; } } if (progress_ != null) progress_.setProgression(50); //LECTURE DES POINTS //nn in_.readFields(); int nn = in_.intField(0); fmt = new int[10]; Arrays.fill(fmt, 8); nbFieldByLine = fmt.length; EfNode[] nds = new EfNode[nn]; double[] x = new double[nn]; double[] y = new double[nn]; double[] z = new double[nn]; //xn in_.readFields(fmt); tmpOnLine = 0; for (int i = 0; i < nn; i++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } x[i] = in_.doubleField(tmpOnLine); tmpOnLine++; } //yn in_.readFields(fmt); tmpOnLine = 0; for (int i = 0; i < nn; i++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } y[i] = in_.doubleField(tmpOnLine); tmpOnLine++; } //zn in_.readFields(fmt); tmpOnLine = 0; for (int i = 0; i < nn; i++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } z[i] = in_.doubleField(tmpOnLine); tmpOnLine++; } //affectation des valeurs dans les noeuds for (int i = 0; i < nn; i++) { nds[i] = new EfNode(x[i], y[i], z[i]); } if (progress_ != null) progress_.setProgression(70); //LECTURE NAS in_.readFields(); int nas = in_.intField(0); if (nas != nbNasCalculated) { analyze_.addFatalError(H2dResource .getS("Le nombre d'arêtes limites lu (NAS) n'est pas cohérent")); return null; } if (nas > 0) { //LECTURE DES IAC POUR VERIF UNIQUEMENT in_.readFields(); fmt = new int[13]; Arrays.fill(fmt, 6); nbFieldByLine = fmt.length; tmpOnLine = 0; for (int i = 0; i < nas; i++) { if (tmpOnLine == (nbFieldByLine)) { in_.readFields(fmt); tmpOnLine = 0; } int idx = in_.intField(tmpOnLine); if (!segment[idx].isExternAndLiquid()) { analyze_.addFatalError(H2dResource.getS("L'arête {0} n'est pas une arête limite", CtuluLib.getString(idx))); return null; } tmpOnLine++; } } r = new RubarDatSource(new H2dRubarGrid(nds, elt,segment), ieNeve, iaNeva); } catch (NumberFormatException e) { analyze_.manageException(e, in_.getLineNumber()); } catch (IOException e) { analyze_.manageException(e); } return r; }} --- NEW FILE: RubarDatSource.java --- /** * @creation 9 juin 2004 * @modification $Date: 2004/06/11 16:36:26 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.rubar.io; import org.fudaa.dodico.ef.EfGrid; import org.fudaa.dodico.ef.EfGridSourcesAbstract; import org.fudaa.dodico.ef.EfGridVolume; import org.fudaa.dodico.fichiers.FileFormat; import org.fudaa.dodico.h2d.rubar.H2dRubarArete; import org.fudaa.dodico.h2d.rubar.H2dRubarGrid; import org.fudaa.dodico.h2d.rubar.H2dRubarGridAreteSource; /** * @author Fred Deniger * @version $Id: RubarDatSource.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class RubarDatSource extends EfGridSourcesAbstract implements H2dRubarGridAreteSource { public H2dRubarGrid getRubarGrid() { return grid_; } public FileFormat getFileFormat() { return RubarDATFileFormat.INSTANCE(); } H2dRubarGrid grid_; /** * les elements voisins par elements */ int[][] ieElementVoisin; /** * les elements voisins par aretes */ int[][] iaElementVoisin; /** * @param _g le maillage volumique * @param _as les aretes * @param _ieEltVoisin le tableau des elt voisins pour chaque elt * @param _iaEltVoisin le tableau des elt voisins pour chaque arete */ public RubarDatSource(H2dRubarGrid _g, int[][] _ieEltVoisin, int[][] _iaEltVoisin) { grid_ = _g; ieElementVoisin = _ieEltVoisin; iaElementVoisin = _iaEltVoisin; } /** * @see org.fudaa.dodico.h2d.rubar.H2dRubarGridAreteSource#getGrid() */ public EfGrid getGrid() { return grid_; } /** * @see org.fudaa.dodico.h2d.rubar.H2dRubarGridAreteSource#elementsVoisinsParElement() */ public int[][] elementsVoisinsParElement() { return ieElementVoisin; } /** * @see org.fudaa.dodico.h2d.rubar.H2dRubarGridAreteSource#elementsVoisinsParArete() */ public int[][] elementsVoisinsParArete() { return iaElementVoisin; } } --- NEW FILE: RubarDATFileFormat.java --- /** * @creation 8 juin 2004 * @modification $Date: 2004/06/11 16:36:26 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.rubar.io; import java.io.File; import org.fudaa.dodico.commun.ProgressionInterface; import org.fudaa.dodico.ef.EfGridSource; import org.fudaa.dodico.ef.FileFormatGridVersion; import org.fudaa.dodico.fichiers.FileFormat; import org.fudaa.dodico.fichiers.FileFormatVersion; import org.fudaa.dodico.fichiers.FileOperationSynthese; import org.fudaa.dodico.fichiers.FileReadOperationAbstract; import org.fudaa.dodico.fichiers.FileWriteOperationAbstract; import org.fudaa.dodico.h2d.resource.H2dResource; import org.fudaa.dodico.h2d.rubar.H2dRubarBcTypeList; import org.fudaa.dodico.h2d.rubar.H2dRubarBoundaryType; /** * @author Fred Deniger * @version $Id: RubarDATFileFormat.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class RubarDATFileFormat extends FileFormat { private static RubarDATFileFormat INSTANCE_ = null; /** * @return l'instance a utiliser */ public static RubarDATFileFormat INSTANCE() { //pas besoin de synchronise. S'il y a 2 instances, c'est pas grave if (INSTANCE_ == null) INSTANCE_ = new RubarDATFileFormat(); return INSTANCE_; } /** * */ public RubarDATFileFormat() { super(1); extensions_ = new String[] { "DAT"}; super.description_ = H2dResource.getS("Fichier des données"); super.ID_ = "RUBAR_DAT"; super.nom_ = "Rubar dat"; } /** * @see org.fudaa.dodico.fichiers.FileFormat#getLastVersion() */ public String getLastVersion() { return "1.0"; } /** * @see org.fudaa.dodico.fichiers.FileFormat#getLastVersionInstance() */ public FileFormatVersion getLastVersionInstance() { return new DATVersion(); } /** * La version courante. * * @author Fred Deniger * @version $Id: RubarDATFileFormat.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class DATVersion extends FileFormatVersion implements FileFormatGridVersion { /** * Constructeur par defaut */ public DATVersion() { super(INSTANCE(), getLastVersion()); } /** * @param _idxRubar l'indice a tester * @return true s'il s'agit */ public boolean isExternIdx(int _idxRubar) { return _idxRubar != 0; } /** * Si renvoie null, il se peut ce soit un bord interne. A tester avec isExternIdx * @param _idx l'indice a tester * @return le bord extern correspondant ou null si aucun. */ public H2dRubarBoundaryType getExternType(int _idx) { return H2dRubarBcTypeList.getExternType(_idx); } /** * @see org.fudaa.dodico.ef.FileFormatGridVersion#canWriteOnlyGrid() * @return false */ public boolean canWriteOnlyGrid() { return false; } /** * @see org.fudaa.dodico.ef.FileFormatGridVersion#readGrid(java.io.File, * org.fudaa.dodico.commun.ProgressionInterface) */ public FileOperationSynthese readGrid(File _f, ProgressionInterface _prog) { System.out.println("read " + _f.getName()); return read(_f, _prog); } /** * @see org.fudaa.dodico.ef.FileFormatGridVersion#writeGrid(java.io.File, * org.fudaa.dodico.ef.EfGridSource, org.fudaa.dodico.commun.ProgressionInterface) */ public FileOperationSynthese writeGrid(File _f, EfGridSource _m, ProgressionInterface _prog) { return null; } /** * @see org.fudaa.dodico.mnt.FileFormatListMNTPoint#readListPoint(java.io.File, * org.fudaa.dodico.commun.ProgressionInterface) */ public FileOperationSynthese readListPoint(File _f, ProgressionInterface _prog) { return null; } /** * @see org.fudaa.dodico.fichiers.FileFormatVersion#createReader() */ public FileReadOperationAbstract createReader() { return new RubarDATReader(this); } /** * @see org.fudaa.dodico.fichiers.FileFormatVersion#createWriter() */ public FileWriteOperationAbstract createWriter() { return null; } } } --- NEW FILE: RubarPARReader.java --- /** * @creation 11 juin 2004 * @modification $Date: 2004/06/11 16:36:26 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.rubar.io; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.fudaa.dodico.dico.DicoEntite; import org.fudaa.dodico.dico.DicoEntiteComparator; import org.fudaa.dodico.dico.DicoModelAbstract; import org.fudaa.dodico.dico.DicoParams; import org.fudaa.dodico.fichiers.FileOpReadCharSimpleAbstract; /** * @author Fred Deniger * @version $Id: RubarPARReader.java,v 1.1 2004/06/11 16:36:26 deniger Exp $ */ public class RubarPARReader extends FileOpReadCharSimpleAbstract { RubarPARFileFormat.PARVersion v_; /** * @param _v la version utilise */ public RubarPARReader(RubarPARFileFormat.PARVersion _v) { v_ = _v; } protected Object _read() { DicoModelAbstract m = v_.getDico(); int nb = m.getEntiteNombre(); DicoEntite[] kw = new DicoEntite[nb]; m.getEntites().toArray(kw); //les mots-clés sont dans l'ordre d'apparition Arrays.sort(kw, new DicoEntiteComparator.Index()); Map map = new HashMap(nb); int[] fmt = new int[] { 35, 11}; try { for (int i = 0; i < nb; i++) { in_.readFields(fmt); map.put(kw[i], in_.stringField(1).trim()); } } catch (IOException _io) { analyze_.manageException(_io); } catch (NumberFormatException _if) { analyze_.manageException(_if, in_.getLineNumber()); } return new DicoParams(map, null, v_); } } |
From: Frederic D. <de...@us...> - 2004-06-11 16:35:48
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/rubar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3258/src/org/fudaa/dodico/rubar Log Message: Directory /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/rubar added to the repository |
From: Frederic D. <de...@us...> - 2004-06-11 16:35:48
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/rubar/io In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3258/src/org/fudaa/dodico/rubar/io Log Message: Directory /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/rubar/io added to the repository |
From: Frederic D. <de...@us...> - 2004-06-11 16:35:46
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test/rubar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3258/src/org/fudaa/dodico/test/rubar Log Message: Directory /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test/rubar added to the repository |
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/telemac In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1333/src/org/fudaa/dodico/telemac Modified Files: TelemacDicoFileFormat.java TelemacDicoFileFormatVersion.java TelemacDicoManager.java Added Files: TelemacSubief2dFileFormatVersion.java Log Message: Maj --- NEW FILE: TelemacSubief2dFileFormatVersion.java --- /** * @creation 1 juin 2004 * @modification $Date: 2004/06/11 16:34:22 $ * @license GNU General Public License 2 * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne * @mail fud...@li... */ package org.fudaa.dodico.telemac; import org.fudaa.dodico.dico.DicoCasFileFormat; import org.fudaa.dodico.dico.DicoEntite; import org.fudaa.dodico.dico.DicoModelAbstract; /** * @author Fred Deniger * @version $Id: TelemacSubief2dFileFormatVersion.java,v 1.1 2004/06/11 16:34:22 deniger Exp $ */ public class TelemacSubief2dFileFormatVersion extends TelemacDicoFileFormatVersion { /** * @param _ft * @param _dico */ public TelemacSubief2dFileFormatVersion(DicoCasFileFormat _ft, DicoModelAbstract _dico) { super(_ft, _dico); DicoEntite e=getEntiteFor( new String[]{"FICHIER FORTRAN DE LECTURE DES DONNEES","FORTRAN FILE FOR READING DATA"}); e.setRequired(true); e=getEntiteFor( new String[]{"FICHIER FORTRAN DE CHIMIE","CHIMIE FORTRAN FILE"}); e.setRequired(true); e=getEntiteFor( new String[]{"DICTIONNAIRE DES PARAMETRES DE QE","QE PARAMETERS DICTIONARY"}); e.setRequired(true); e=getEntiteFor( new String[]{"FICHIER DES PARAMETRES DE QE","WQ STEERING FILE"}); e.setRequired(true); e=getEntiteFor( new String[]{"FICHIER FORTRAN","FORTRAN FILE"}); e.setRequired(true); e=getEntiteFor( new String[]{"FICHIER DES RESULTATS","RESULTS FILE"}); e.setRequired(true); e=getEntiteFor( new String[]{"FICHIER HYDRODYNAMIQUE","HYDRODYNAMIC FILE"}); e.setRequired(true); } } Index: TelemacDicoFileFormatVersion.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/telemac/TelemacDicoFileFormatVersion.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TelemacDicoFileFormatVersion.java 5 May 2004 12:38:17 -0000 1.1 --- TelemacDicoFileFormatVersion.java 11 Jun 2004 16:34:22 -0000 1.2 *************** *** 22,28 **** import org.fudaa.dodico.telemac.io.SerafinFileFormat; import org.fudaa.dodico.telemac.io.TelemacCLFileFormat; import org.fudaa.dodico.telemac.io.TelemacLiquideFileFormat; import org.fudaa.dodico.telemac.io.SerafinFileFormat.SerafinVersion; - import org.fudaa.dodico.telemac.io.TelemacCLFileFormat.TelemacCLVersion; import org.fudaa.dodico.telemac.io.TelemacLiquideFileFormat.TelemacLiquideVersion; /** --- 22,28 ---- import org.fudaa.dodico.telemac.io.SerafinFileFormat; import org.fudaa.dodico.telemac.io.TelemacCLFileFormat; + import org.fudaa.dodico.telemac.io.TelemacCLVersion; import org.fudaa.dodico.telemac.io.TelemacLiquideFileFormat; import org.fudaa.dodico.telemac.io.SerafinFileFormat.SerafinVersion; import org.fudaa.dodico.telemac.io.TelemacLiquideFileFormat.TelemacLiquideVersion; /** *************** *** 85,91 **** new String[] { "FICHIER DES FONDS", "BOTTOM TOPOGRAPHY FILE" }); } ! public boolean isEntiteFileRequired(DicoEntite _e) { ! return (_e == getMaillageEntiteFile() || (_e == getCLEntiteFile())); ! } public SerafinFileFormat.SerafinVersion getDefaultSerafinFormat() { return (SerafinFileFormat.SerafinVersion)SerafinFileFormat --- 85,91 ---- new String[] { "FICHIER DES FONDS", "BOTTOM TOPOGRAPHY FILE" }); } ! // public boolean isEntiteFileRequired(DicoEntite _e) { ! // return (_e == getMaillageEntiteFile() || (_e == getCLEntiteFile())); ! // } public SerafinFileFormat.SerafinVersion getDefaultSerafinFormat() { return (SerafinFileFormat.SerafinVersion)SerafinFileFormat *************** *** 93,100 **** .getLastVersionImpl(); } ! public TelemacCLFileFormat.TelemacCLVersion getDefaultTelemacCLFormat() { ! return (TelemacCLFileFormat.TelemacCLVersion)TelemacCLFileFormat .getInstance() ! .getLastVersionImpl(); } public TelemacLiquideFileFormat --- 93,100 ---- .getLastVersionImpl(); } ! public TelemacCLVersion getDefaultTelemacCLFormat(String _s) { ! return (TelemacCLVersion)TelemacCLFileFormat .getInstance() ! .getLastVersionInstance(_s); } public TelemacLiquideFileFormat Index: TelemacDicoManager.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/telemac/TelemacDicoManager.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** TelemacDicoManager.java 1 Jun 2004 11:23:27 -0000 1.19 --- TelemacDicoManager.java 11 Jun 2004 16:34:22 -0000 1.20 *************** *** 8,11 **** --- 8,12 ---- */ package org.fudaa.dodico.telemac; + import java.util.HashMap; *************** *** 16,19 **** --- 17,21 ---- import org.fudaa.dodico.dico.DicoManager; import org.fudaa.dodico.dico.DicoModelAbstract; + import org.fudaa.dodico.h2d.telemac.H2dTelemacDicoParams; /** * @author deniger *************** *** 21,102 **** */ public class TelemacDicoManager extends DicoManager { ! public final static TelemacDicoManager INSTANCE= new TelemacDicoManager(); ! private final static String LAST_VERSION="v5p4"; static { ! HashMap map= new HashMap(11); ! map.put(new TelemacDicoFileFormat("artemis"), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("estel2d"), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("estel3d"), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("postel3d"), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("sisyphe"), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("stbtel"), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("subief2d"), new String[] { LAST_VERSION }); ! map.put(Telemac2dFileFormat.getInstance(), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("telemac3d"), new String[] { LAST_VERSION }); ! map.put(new TelemacDicoFileFormat("tomawac"), new String[] { LAST_VERSION }); INSTANCE.init(map); INSTANCE.load(); } //pour eviter d'instancier ce format a chaque fois. private Telemac2dFileFormat.TelemacVersion telemac2dv5p4_; public final static TelemacDicoManager getINSTANCE() { return INSTANCE; } protected TelemacDicoManager() { super("org.fudaa.dodico.telemac.dico."); } protected DicoCasFileFormat createFormat(String _s) { if (_s.equals(Telemac2dFileFormat.getInstance().getID())) ! return Telemac2dFileFormat.getInstance(); return new TelemacDicoFileFormat(_s); } public static boolean isTelemac2d(DicoCasFileFormat _f) { return _f == Telemac2dFileFormat.getInstance(); } ! public DicoCasFileFormatVersion createVersionImpl( ! Telemac2dFileFormat _ft, ! String _v, ! int _language) { return createTelemacVersionImpl(_ft, _v, _language); } ! public DicoCasFileFormatVersion createVersionImpl( ! DicoCasFileFormat _ft, ! String _v, ! int _language) { return createTelemacVersionImpl(_ft, _v, _language); } ! public Telemac2dFileFormat.TelemacVersion createTelemac2dVersionImpl( ! Telemac2dFileFormat _ft, ! String _v, ! int _language) { ! String name= Telemac2dFileFormat.getInstance().getName(); ! String lastVersion= LAST_VERSION; ! if ((lastVersion.equals(_v)) ! && (DicoLanguage.getCurrentID() == _language)) { ! if (CtuluLib.DEBUG) ! CtuluLib.debug("new instance for telemac 2d"); if (telemac2dv5p4_ == null) ! telemac2dv5p4_= _ft.createVersion(createDico(name, _v, _language)); return telemac2dv5p4_; } return _ft.createVersion(createDico(name, _v, _language)); } ! public TelemacDicoFileFormatVersion createTelemacVersionImpl( ! Telemac2dFileFormat _ft, ! String _v, ! int _language) { return createTelemac2dVersionImpl(_ft, _v, _language); } ! public TelemacDicoFileFormatVersion createTelemacVersionImpl( ! DicoCasFileFormat _ft, ! String _v, ! int _language) { if (Telemac2dFileFormat.getInstance() == _ft) ! return createTelemac2dVersionImpl( ! (Telemac2dFileFormat)_ft, ! _v, ! _language); ! DicoModelAbstract model= createDico(_ft.getName(), _v, _language); ! return model == null ? null : new TelemacDicoFileFormatVersion(_ft, model); } ! } --- 23,111 ---- */ public class TelemacDicoManager extends DicoManager { ! ! public final static TelemacDicoManager INSTANCE = new TelemacDicoManager(); ! private final static String LAST_VERSION = "v5p4"; static { ! HashMap map = new HashMap(11); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.ARTEMIS_ID()), ! new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.ESTEL2D_ID()), ! new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.ESTEL3D_ID()), ! new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.POSTEL3D_ID()), ! new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.SISYPHE_ID()), ! new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.STBTEL_ID()), ! new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.SUBIEF2D_ID()), ! new String[] { LAST_VERSION}); ! map.put(Telemac2dFileFormat.getInstance(), new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.TELEMAC3D_ID()), ! new String[] { LAST_VERSION}); ! map.put(new TelemacDicoFileFormat(H2dTelemacDicoParams.TOMAWAC_ID()), ! new String[] { LAST_VERSION}); INSTANCE.init(map); INSTANCE.load(); } + //pour eviter d'instancier ce format a chaque fois. private Telemac2dFileFormat.TelemacVersion telemac2dv5p4_; + public final static TelemacDicoManager getINSTANCE() { return INSTANCE; } + protected TelemacDicoManager() { super("org.fudaa.dodico.telemac.dico."); } + protected DicoCasFileFormat createFormat(String _s) { if (_s.equals(Telemac2dFileFormat.getInstance().getID())) ! return Telemac2dFileFormat.getInstance(); return new TelemacDicoFileFormat(_s); } + public static boolean isTelemac2d(DicoCasFileFormat _f) { return _f == Telemac2dFileFormat.getInstance(); } ! ! public DicoCasFileFormatVersion createVersionImpl(Telemac2dFileFormat _ft, String _v, ! int _language) { return createTelemacVersionImpl(_ft, _v, _language); } ! ! public DicoCasFileFormatVersion createVersionImpl(DicoCasFileFormat _ft, String _v, int _language) { return createTelemacVersionImpl(_ft, _v, _language); } ! ! public Telemac2dFileFormat.TelemacVersion createTelemac2dVersionImpl(Telemac2dFileFormat _ft, ! String _v, int _language) { ! String name = Telemac2dFileFormat.getInstance().getName(); ! String lastVersion = LAST_VERSION; ! if ((lastVersion.equals(_v)) && (DicoLanguage.getCurrentID() == _language)) { ! if (CtuluLib.DEBUG) CtuluLib.debug("new instance for telemac 2d"); if (telemac2dv5p4_ == null) ! telemac2dv5p4_ = _ft.createVersion(createDico(name, _v, _language)); return telemac2dv5p4_; } return _ft.createVersion(createDico(name, _v, _language)); } ! ! public TelemacDicoFileFormatVersion createTelemacVersionImpl(Telemac2dFileFormat _ft, String _v, ! int _language) { return createTelemac2dVersionImpl(_ft, _v, _language); } ! ! public TelemacDicoFileFormatVersion createTelemacVersionImpl(DicoCasFileFormat _ft, String _v, ! int _language) { if (Telemac2dFileFormat.getInstance() == _ft) ! return createTelemac2dVersionImpl((Telemac2dFileFormat) _ft, _v, _language); ! DicoModelAbstract model = createDico(_ft.getName(), _v, _language); ! if (model == null) return null; ! if (_ft.getName().equals(H2dTelemacDicoParams.SUBIEF2D_ID())) ! return new TelemacSubief2dFileFormatVersion(_ft, model); ! return new TelemacDicoFileFormatVersion(_ft, model); } ! } \ No newline at end of file Index: TelemacDicoFileFormat.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/telemac/TelemacDicoFileFormat.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TelemacDicoFileFormat.java 5 May 2004 12:38:17 -0000 1.1 --- TelemacDicoFileFormat.java 11 Jun 2004 16:34:22 -0000 1.2 *************** *** 1,3 **** ! /* * @file TelemacDicoFileFormat.java * @creation 14 août 2003 --- 1,3 ---- ! /** * @file TelemacDicoFileFormat.java * @creation 14 août 2003 |