Salome HOME
[Verima] Missing giles
authorRenaud Nédélec <renaud.nedelec@opencascade.com>
Tue, 6 May 2014 16:00:28 +0000 (18:00 +0200)
committerRenaud Nédélec <renaud.nedelec@opencascade.com>
Tue, 6 May 2014 16:00:28 +0000 (18:00 +0200)
src/Tools/Verima/Base/tableGroupeRatios.py [new file with mode: 0644]
src/Tools/Verima/Base/tableGroupeTailles.py [new file with mode: 0644]
src/Tools/Verima/CreeDocuments/templatesHtml/groupeRatio.html [new file with mode: 0644]
src/Tools/Verima/CreeDocuments/templatesHtml/groupeTaille.html [new file with mode: 0644]
src/Tools/Verima/CreeDocuments/templatesHtml/maillageEntete.html [new file with mode: 0644]
src/Tools/Verima/Gui/desFenetreChoix.py [new file with mode: 0644]
src/Tools/Verima/Gui/myMain.py [new file with mode: 0644]
src/Tools/Verima/Gui/nomBase.py [new file with mode: 0644]
src/Tools/Verima/Stats/Type_Maille.py [new file with mode: 0644]
src/Tools/Verima/Stats/getCritere.py [new file with mode: 0644]

diff --git a/src/Tools/Verima/Base/tableGroupeRatios.py b/src/Tools/Verima/Base/tableGroupeRatios.py
new file mode 100644 (file)
index 0000000..b74d83b
--- /dev/null
@@ -0,0 +1,38 @@
+from PyQt4 import QtSql, QtCore
+from tableDeBase import TableDeBase
+
+class TableGroupeRatios (TableDeBase):
+      def __init__(self):
+          TableDeBase.__init__(self,"GroupesRatios")
+          self.setField(('Maillage','Version','Groupe','RatioMax','RatioMin','Quartile1','Mediane','Quartile3','Moyenne'))
+          self.setTypeField(('int','int','str','float','float','float','float','float','float'),('idMaillage','idVersion','Groupe'))
+
+      def createSqlTable(self):
+          query=QtSql.QSqlQuery()
+
+          texteQuery ="create table GroupesRatios(idMaillage int, idVersion int,  Groupe varchar(40),"
+          texteQuery+="RatioMax float, RatioMin float, "
+          texteQuery+="Q1 float,"
+          texteQuery+="Mediane float,"
+          texteQuery+="Q3 float,"
+          texteQuery+="Moyenne float,"
+          texteQuery+="foreign key (idMaillage) references Maillages(id)," 
+          texteQuery+="foreign key (idVersion) references Versions(id)," 
+          texteQuery+="foreign key (Groupe) references GroupesRef(nomGroupe)," 
+          texteQuery+="primary key (idMaillage,idVersion,Groupe));"
+          print "Creation de TableGroupeRatios : " , query.exec_(texteQuery)
+
+      def getVal(self,idMaillage, idVersion, Groupe, Entite):
+          query=QtSql.QSqlQuery()
+          texteQuery ='select '+ str(Entite) + ' from GroupesRatios where idMaillage='+str(idMaillage)
+          texteQuery+=' and  idVersion='+str(idVersion)
+          texteQuery+=" and Groupe='" + str(Groupe) +"';"
+          query.exec_(texteQuery)
+          nb=0
+          val=0                          # Valeur si l enregistrement n existe pas
+          while (query.next()) :
+              val=query.value(0).toFloat()[0]
+              nb=nb+1
+          if nb > 1 : print "Double valeur de Reference dans la table des mailles"
+          return val
+
diff --git a/src/Tools/Verima/Base/tableGroupeTailles.py b/src/Tools/Verima/Base/tableGroupeTailles.py
new file mode 100644 (file)
index 0000000..6c2763c
--- /dev/null
@@ -0,0 +1,39 @@
+from PyQt4 import QtSql, QtCore
+from tableDeBase import TableDeBase
+
+class TableGroupeTailles (TableDeBase):
+      def __init__(self):
+          TableDeBase.__init__(self,"GroupeTailles")
+          self.setField(('Maillage','Version','Groupe','TailleMax','TailleMin','Quartile1','Mediane','Quartile3','Moyenne'))
+          self.setTypeField(('int','int','str','float','float','float','float','float','float'),('idMaillage','idVersion'))
+
+      def createSqlTable(self):
+          query=QtSql.QSqlQuery()
+
+          texteQuery ="create table GroupeTailles(idMaillage int, idVersion int, "
+          texteQuery+="Groupe varchar(40),TailleMax float, TailleMin float, "
+          texteQuery+="Q1 float, "
+          texteQuery+="Mediane float, "
+          texteQuery+="Q3 float, "
+          texteQuery+="Moyenne float, "
+          texteQuery+="foreign key (idMaillage) references Maillages(id)," 
+          texteQuery+="foreign key (idVersion) references Versions(id)," 
+          texteQuery+="foreign key (Groupe) references GroupesRef(nomGroupe),"
+          texteQuery+="primary key (idMaillage,idVersion,Groupe));"
+
+          print "Creation de TableGroupeTailles : " , query.exec_(texteQuery)
+
+      def getVal(self,idMaillage, idVersion, Groupe,  Entite):
+          query=QtSql.QSqlQuery()
+          texteQuery ='select '+ str(Entite) + ' from GroupeTailles where idMaillage='+str(idMaillage)
+          texteQuery+=' and  idVersion='+str(idVersion)
+          texteQuery+=" and Groupe='" + str(Groupe) +"';"
+          query.exec_(texteQuery)
+          nb=0
+          val=0                          # Valeur si l enregistrement n existe pas
+          while (query.next()) :
+              val=query.value(0).toFloat()[0]
+              nb=nb+1
+          if nb > 1 : print "Double valeur de Reference dans la table des tailles"
+          return val
+
diff --git a/src/Tools/Verima/CreeDocuments/templatesHtml/groupeRatio.html b/src/Tools/Verima/CreeDocuments/templatesHtml/groupeRatio.html
new file mode 100644 (file)
index 0000000..32b202d
--- /dev/null
@@ -0,0 +1,179 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+       <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
+       <TITLE></TITLE>
+       <META NAME="GENERATOR" CONTENT="LibreOffice 3.5  (Linux)">
+       <META NAME="CREATED" CONTENT="0;0">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGED" CONTENT="20140506;14431400">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+</HEAD>
+<BODY LANG="fr-FR" DIR="LTR">
+<P LANG="en-US" ALIGN=LEFT STYLE="margin-bottom: 0cm; line-height: 200%; widows: 0; orphans: 0">
+<FONT COLOR="#000000"><U><FONT FACE="Arial, sans-serif"><FONT SIZE=3><B>Aspect
+Ratio</B></U></FONT></FONT></FONT></P>
+<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT><BR>
+                       </P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Référence</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Version
+                       courante</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Différence
+                       absolue</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Différence
+                       relative</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Warning</FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Ratio
+                       Max</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMAXREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMAX%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFARMAX%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRRMAX%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P LANG="en-US" ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WRRMAX%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Ratio
+                       Min</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMINREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMIN%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFARMIN%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRRMIN%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WRRMIN%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Moyenne</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMOYREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMOY%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFARMOY%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRRMOY%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WRRMOY%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>1er
+                       Quartile</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%R1QREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%R1Q%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFAR1Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRR1Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WRR1Q%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Elt
+                       Médian</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMEDREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%RMED%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFARMED%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRRMED%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WRRMED%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>3ieme
+                       Quartile</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%R3QREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%R3Q%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFAR3Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRR3Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WRR3Q%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+</TABLE>
+<P STYLE="page-break-before: always">
+</P>
+</BODY>
+</HTML>
diff --git a/src/Tools/Verima/CreeDocuments/templatesHtml/groupeTaille.html b/src/Tools/Verima/CreeDocuments/templatesHtml/groupeTaille.html
new file mode 100644 (file)
index 0000000..2a5c900
--- /dev/null
@@ -0,0 +1,178 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+       <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
+       <TITLE></TITLE>
+       <META NAME="GENERATOR" CONTENT="LibreOffice 3.5  (Linux)">
+       <META NAME="CREATED" CONTENT="0;0">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGED" CONTENT="20140506;14433800">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+</HEAD>
+<BODY LANG="fr-FR" DIR="LTR">
+<P LANG="en-US" ALIGN=LEFT STYLE="margin-bottom: 0cm; line-height: 200%; widows: 0; orphans: 0">
+<FONT COLOR="#000000"><U><FONT FACE="Arial, sans-serif"><FONT SIZE=3><B>Longueur
+des arêtes des mailles </B></U></FONT></FONT></FONT>
+</P>
+<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT><BR>
+                       </P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Référence</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Version
+                       courante</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Différence
+                       absolue</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Différence
+                       relative</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Warning</FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Taille
+                       Max</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMAXREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMAX%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFATMAX%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRTMAX%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WTMAX%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Taille
+                       Min</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMINREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMIN%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFATMIN%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRTMIN%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WTMIN%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Moyenne</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMOYREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMOY%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFATMOY%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRTMOY%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff0000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WTMOY%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>1er
+                       Quartile</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%T1QREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%T1Q%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFAT1Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRT1Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff0000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WT1Q%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Elt
+                       Médian</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMEDREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%TMED%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFATMED%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRTMED%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff0000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WTMED%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>3ieme
+                       Quartile</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%T3QREF%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%T3Q%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFAT3Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFRT3Q%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff0000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WT3Q%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+</TABLE>
+<P>
+</P>
+</BODY>
+</HTML>
diff --git a/src/Tools/Verima/CreeDocuments/templatesHtml/maillageEntete.html b/src/Tools/Verima/CreeDocuments/templatesHtml/maillageEntete.html
new file mode 100644 (file)
index 0000000..4ffe09d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+       <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
+       <TITLE></TITLE>
+       <META NAME="GENERATOR" CONTENT="LibreOffice 3.5  (Linux)">
+       <META NAME="CREATED" CONTENT="0;0">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGED" CONTENT="20140506;14392800">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+       <META NAME="CHANGEDBY" CONTENT="CANO Valerie">
+</HEAD>
+<BODY LANG="fr-FR" DIR="LTR">
+<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P ALIGN=CENTER STYLE="margin-bottom: 0cm; widows: 0; orphans: 0; page-break-before: always">
+<META NAME="CHANGEDBY" CONTENT="CANO Valerie"><META NAME="CHANGEDBY" CONTENT="CANO Valerie"><META NAME="CHANGEDBY" CONTENT="CANO Valerie"><META NAME="CHANGEDBY" CONTENT="CANO Valerie"><META NAME="CHANGEDBY" CONTENT="CANO Valerie"><BR>
+</P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm; widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=4><U><B>Cas
+Test : %MAILLAGE%</B></U></FONT></FONT></FONT></P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=3><B>Mailleur
+testé&nbsp;: <META NAME="CHANGEDBY" CONTENT="CANO Valerie">%MAILLEUR%</B></FONT></FONT></P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><FONT FACE="Arial, sans-serif"><FONT SIZE=3><B>Version
+de Réference&nbsp;%VERSIONREF%</B></FONT></FONT></P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm; line-height: 200%; widows: 0; orphans: 0">
+<FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3><SPAN LANG="fr-FR"><U><B>Performance
+CPU</B></U></SPAN></FONT></FONT></FONT><FONT COLOR="#000000"> </FONT>
+</P>
+<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <COL WIDTH=43*>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT><BR>
+                       </P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Référence</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Version
+                       courante</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Différence
+                       absolue</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Différence
+                       relative</FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border: 1px solid #000000; padding: 0cm">
+                       <P ALIGN=CENTER><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Warning</FONT></FONT></P>
+               </TD>
+       </TR>
+       <TR VALIGN=TOP>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>Nombre
+                       de seconde CPU</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%REFCPU%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%NBCPU%</FONT></FONT></FONT></P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFCPU%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding: 0cm">
+                       <P ALIGN=LEFT>%DIFREL%</P>
+               </TD>
+               <TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 0cm">
+                       <P LANG="en-US" ALIGN=LEFT STYLE="widows: 0; orphans: 0"><FONT COLOR="#ff3333"><FONT FACE="Arial, sans-serif"><FONT SIZE=3>%WARNING%</FONT></FONT></FONT></P>
+               </TD>
+       </TR>
+</TABLE>
+<P>
+</P>
+</BODY>
+</HTML>
diff --git a/src/Tools/Verima/Gui/desFenetreChoix.py b/src/Tools/Verima/Gui/desFenetreChoix.py
new file mode 100644 (file)
index 0000000..af7dc91
--- /dev/null
@@ -0,0 +1,119 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'desFenetreChoix.ui'
+#
+# Created: Thu Mar 27 11:25:15 2014
+#      by: PyQt4 UI code generator 4.9.6
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+    _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+    def _fromUtf8(s):
+        return s
+
+try:
+    _encoding = QtGui.QApplication.UnicodeUTF8
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_Choix(object):
+    def setupUi(self, Choix):
+        Choix.setObjectName(_fromUtf8("Choix"))
+        Choix.resize(440, 708)
+        self.gridLayout = QtGui.QGridLayout(Choix)
+        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
+        self.buttonBox = QtGui.QDialogButtonBox(Choix)
+        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
+        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
+        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
+        self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 1)
+        self.groupBox = QtGui.QGroupBox(Choix)
+        self.groupBox.setObjectName(_fromUtf8("groupBox"))
+        self.layoutWidget = QtGui.QWidget(self.groupBox)
+        self.layoutWidget.setGeometry(QtCore.QRect(40, 310, 311, 269))
+        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
+        self.gridLayout_2 = QtGui.QGridLayout(self.layoutWidget)
+        self.gridLayout_2.setMargin(0)
+        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
+        self.PBMaille = QtGui.QPushButton(self.layoutWidget)
+        self.PBMaille.setObjectName(_fromUtf8("PBMaille"))
+        self.gridLayout_2.addWidget(self.PBMaille, 1, 0, 1, 1)
+        self.PBRatio = QtGui.QPushButton(self.layoutWidget)
+        self.PBRatio.setObjectName(_fromUtf8("PBRatio"))
+        self.gridLayout_2.addWidget(self.PBRatio, 3, 0, 1, 1)
+        self.PBPerf = QtGui.QPushButton(self.layoutWidget)
+        self.PBPerf.setObjectName(_fromUtf8("PBPerf"))
+        self.gridLayout_2.addWidget(self.PBPerf, 7, 0, 1, 1)
+        self.PBGroupeRatio = QtGui.QPushButton(self.layoutWidget)
+        self.PBGroupeRatio.setObjectName(_fromUtf8("PBGroupeRatio"))
+        self.gridLayout_2.addWidget(self.PBGroupeRatio, 6, 0, 1, 1)
+        self.PBGroupe = QtGui.QPushButton(self.layoutWidget)
+        self.PBGroupe.setObjectName(_fromUtf8("PBGroupe"))
+        self.gridLayout_2.addWidget(self.PBGroupe, 4, 0, 1, 1)
+        self.PBTaille = QtGui.QPushButton(self.layoutWidget)
+        self.PBTaille.setObjectName(_fromUtf8("PBTaille"))
+        self.gridLayout_2.addWidget(self.PBTaille, 2, 0, 1, 1)
+        self.PBGroupeTaille = QtGui.QPushButton(self.layoutWidget)
+        self.PBGroupeTaille.setObjectName(_fromUtf8("PBGroupeTaille"))
+        self.gridLayout_2.addWidget(self.PBGroupeTaille, 5, 0, 1, 1)
+        self.layoutWidget1 = QtGui.QWidget(self.groupBox)
+        self.layoutWidget1.setGeometry(QtCore.QRect(40, 50, 301, 211))
+        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
+        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1)
+        self.verticalLayout.setMargin(0)
+        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
+        self.PBMailleur = QtGui.QPushButton(self.layoutWidget1)
+        self.PBMailleur.setObjectName(_fromUtf8("PBMailleur"))
+        self.verticalLayout.addWidget(self.PBMailleur)
+        self.PBMaillage = QtGui.QPushButton(self.layoutWidget1)
+        self.PBMaillage.setObjectName(_fromUtf8("PBMaillage"))
+        self.verticalLayout.addWidget(self.PBMaillage)
+        self.PBMachine = QtGui.QPushButton(self.layoutWidget1)
+        self.PBMachine.setObjectName(_fromUtf8("PBMachine"))
+        self.verticalLayout.addWidget(self.PBMachine)
+        self.PBVersion = QtGui.QPushButton(self.layoutWidget1)
+        self.PBVersion.setObjectName(_fromUtf8("PBVersion"))
+        self.verticalLayout.addWidget(self.PBVersion)
+        self.PBGroupesRef = QtGui.QPushButton(self.layoutWidget1)
+        self.PBGroupesRef.setObjectName(_fromUtf8("PBGroupesRef"))
+        self.verticalLayout.addWidget(self.PBGroupesRef)
+        self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1)
+
+        self.retranslateUi(Choix)
+        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Choix.accept)
+        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Choix.reject)
+        QtCore.QMetaObject.connectSlotsByName(Choix)
+
+    def retranslateUi(self, Choix):
+        Choix.setWindowTitle(_translate("Choix", "Verification de Maillage", None))
+        self.groupBox.setTitle(_translate("Choix", "Tables ", None))
+        self.PBMaille.setText(_translate("Choix", "Table Mailles", None))
+        self.PBRatio.setText(_translate("Choix", "Table Ratios", None))
+        self.PBPerf.setText(_translate("Choix", "Table Performances", None))
+        self.PBGroupeRatio.setText(_translate("Choix", "Table Groupe Ratios", None))
+        self.PBGroupe.setText(_translate("Choix", "Table Groupes", None))
+        self.PBTaille.setText(_translate("Choix", "Table Tailles", None))
+        self.PBGroupeTaille.setText(_translate("Choix", "Table Groupe Tailles", None))
+        self.PBMailleur.setText(_translate("Choix", "Table Mailleurs", None))
+        self.PBMaillage.setText(_translate("Choix", "Table Maillages", None))
+        self.PBMachine.setText(_translate("Choix", "Table Machines", None))
+        self.PBVersion.setText(_translate("Choix", "Table Versions", None))
+        self.PBGroupesRef.setText(_translate("Choix", "Table Groupes Référence", None))
+
+
+if __name__ == "__main__":
+    import sys
+    app = QtGui.QApplication(sys.argv)
+    Choix = QtGui.QDialog()
+    ui = Ui_Choix()
+    ui.setupUi(Choix)
+    Choix.show()
+    sys.exit(app.exec_())
+
diff --git a/src/Tools/Verima/Gui/myMain.py b/src/Tools/Verima/Gui/myMain.py
new file mode 100644 (file)
index 0000000..b29b99f
--- /dev/null
@@ -0,0 +1,72 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'myMain.ui'
+#
+# Created: Wed Feb 19 11:02:51 2014
+#      by: PyQt4 UI code generator 4.7.3
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+class Ui_Gestion(object):
+    def setupUi(self, Gestion):
+        Gestion.setObjectName("Gestion")
+        Gestion.resize(400, 525)
+        self.gridLayout_4 = QtGui.QGridLayout(Gestion)
+        self.gridLayout_4.setObjectName("gridLayout_4")
+        self.gridLayout_2 = QtGui.QGridLayout()
+        self.gridLayout_2.setObjectName("gridLayout_2")
+        self.gridLayout_4.addLayout(self.gridLayout_2, 2, 0, 1, 1)
+        spacerItem = QtGui.QSpacerItem(20, 45, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
+        self.gridLayout_4.addItem(spacerItem, 1, 0, 1, 1)
+        self.gridLayout_3 = QtGui.QGridLayout()
+        self.gridLayout_3.setObjectName("gridLayout_3")
+        self.BExp = QtGui.QPushButton(Gestion)
+        self.BExp.setMinimumSize(QtCore.QSize(281, 41))
+        self.BExp.setObjectName("BExp")
+        self.gridLayout_3.addWidget(self.BExp, 0, 0, 1, 1)
+        self.BImp = QtGui.QPushButton(Gestion)
+        self.BImp.setMinimumSize(QtCore.QSize(281, 41))
+        self.BImp.setObjectName("BImp")
+        self.gridLayout_3.addWidget(self.BImp, 1, 0, 1, 1)
+        self.gridLayout_4.addLayout(self.gridLayout_3, 5, 0, 1, 1)
+        self.gridLayout = QtGui.QGridLayout()
+        self.gridLayout.setObjectName("gridLayout")
+        self.BCree = QtGui.QPushButton(Gestion)
+        self.BCree.setMinimumSize(QtCore.QSize(281, 41))
+        self.BCree.setObjectName("BCree")
+        self.gridLayout.addWidget(self.BCree, 0, 0, 1, 1)
+        self.BVue = QtGui.QPushButton(Gestion)
+        self.BVue.setMinimumSize(QtCore.QSize(281, 41))
+        self.BVue.setObjectName("BVue")
+        self.gridLayout.addWidget(self.BVue, 1, 0, 1, 1)
+        self.gridLayout_4.addLayout(self.gridLayout, 0, 0, 1, 1)
+        spacerItem1 = QtGui.QSpacerItem(20, 45, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
+        self.gridLayout_4.addItem(spacerItem1, 4, 0, 1, 1)
+        self.BStat = QtGui.QPushButton(Gestion)
+        self.BStat.setMinimumSize(QtCore.QSize(281, 41))
+        self.BStat.setObjectName("BStat")
+        self.gridLayout_4.addWidget(self.BStat, 3, 0, 1, 1)
+
+        self.retranslateUi(Gestion)
+        QtCore.QMetaObject.connectSlotsByName(Gestion)
+
+    def retranslateUi(self, Gestion):
+        Gestion.setWindowTitle(QtGui.QApplication.translate("Gestion", "Gestion de la Database", None, QtGui.QApplication.UnicodeUTF8))
+        self.BExp.setText(QtGui.QApplication.translate("Gestion", "Export de la database", None, QtGui.QApplication.UnicodeUTF8))
+        self.BImp.setText(QtGui.QApplication.translate("Gestion", "Import d\'une database", None, QtGui.QApplication.UnicodeUTF8))
+        self.BCree.setText(QtGui.QApplication.translate("Gestion", "Creation de la database", None, QtGui.QApplication.UnicodeUTF8))
+        self.BVue.setText(QtGui.QApplication.translate("Gestion", "Visualiser  la database", None, QtGui.QApplication.UnicodeUTF8))
+        self.BStat.setText(QtGui.QApplication.translate("Gestion", "Statistiques", None, QtGui.QApplication.UnicodeUTF8))
+
+
+if __name__ == "__main__":
+    import sys
+    app = QtGui.QApplication(sys.argv)
+    Gestion = QtGui.QWidget()
+    ui = Ui_Gestion()
+    ui.setupUi(Gestion)
+    Gestion.show()
+    sys.exit(app.exec_())
+
diff --git a/src/Tools/Verima/Gui/nomBase.py b/src/Tools/Verima/Gui/nomBase.py
new file mode 100644 (file)
index 0000000..921e12c
--- /dev/null
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'nomBase.ui'
+#
+# Created: Wed Feb 19 11:02:51 2014
+#      by: PyQt4 UI code generator 4.7.3
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+class Ui_LEDataBaseName(object):
+    def setupUi(self, LEDataBaseName):
+        LEDataBaseName.setObjectName("LEDataBaseName")
+        LEDataBaseName.resize(400, 61)
+        self.gridLayout = QtGui.QGridLayout(LEDataBaseName)
+        self.gridLayout.setObjectName("gridLayout")
+        self.LEBaseName = QtGui.QLineEdit(LEDataBaseName)
+        self.LEBaseName.setMinimumSize(QtCore.QSize(341, 41))
+        self.LEBaseName.setObjectName("LEBaseName")
+        self.gridLayout.addWidget(self.LEBaseName, 0, 0, 1, 1)
+
+        self.retranslateUi(LEDataBaseName)
+        QtCore.QMetaObject.connectSlotsByName(LEDataBaseName)
+
+    def retranslateUi(self, LEDataBaseName):
+        LEDataBaseName.setWindowTitle(QtGui.QApplication.translate("LEDataBaseName", "Enter DataBase File", None, QtGui.QApplication.UnicodeUTF8))
+        self.LEBaseName.setText(QtGui.QApplication.translate("LEDataBaseName", "myMesh.db", None, QtGui.QApplication.UnicodeUTF8))
+
+
+if __name__ == "__main__":
+    import sys
+    app = QtGui.QApplication(sys.argv)
+    LEDataBaseName = QtGui.QDialog()
+    ui = Ui_LEDataBaseName()
+    ui.setupUi(LEDataBaseName)
+    LEDataBaseName.show()
+    sys.exit(app.exec_())
+
diff --git a/src/Tools/Verima/Stats/Type_Maille.py b/src/Tools/Verima/Stats/Type_Maille.py
new file mode 100644 (file)
index 0000000..7fc73a3
--- /dev/null
@@ -0,0 +1,26 @@
+dicoDimENtite= { 'Entity_Node':0,
+'Entity_0D':0,
+'Entity_Ball':0,
+'Entity_Edge':0,
+'Entity_Quad_Edge':0,
+'Entity_Triangle':1,
+'Entity_Quad_Triangle':1,
+'Entity_BiQuad_Triangle':1,
+'Entity_Quadrangle':1,
+'Entity_Quad_Quadrangle':1,
+'Entity_BiQuad_Quadrangle':1,
+'Entity_Polygon':1,
+'Entity_Quad_Polygon':1,
+'Entity_Tetra':1,
+'Entity_Quad_Tetra':1,
+'Entity_Hexa':1,
+'Entity_Quad_Hexa':1,
+'Entity_TriQuad_Hexa':1,
+'Entity_Pyramid ':1,
+'Entity_Quad_Pyramid':1,
+'Entity_Penta ':1,
+'Entity_Quad_Penta':1,
+'Entity_Hexagonal_Prism':1,
+'Entity_Polyhedra':1,
+'Entity_Quad_Polyhedra':1,
+}
diff --git a/src/Tools/Verima/Stats/getCritere.py b/src/Tools/Verima/Stats/getCritere.py
new file mode 100644 (file)
index 0000000..16239e1
--- /dev/null
@@ -0,0 +1,114 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import sys,os
+import salome
+from getStats import getGroupesRef
+from Type_Maille import dicoDimENtite
+
+def getCritere(dim,NomMesh,acritere,theStudy):
+  import SMESH
+  from salome.smesh import smeshBuilder
+  smesh = smeshBuilder.New(theStudy)
+  import numpy
+#  print dim,NomMesh,acritere
+  if dim == 2 :
+    NumElt=NomMesh.GetElementsByType(SMESH.FACE)
+  if dim == 3 :
+    NumElt=NomMesh.GetElementsByType(SMESH.VOLUME)
+  
+  critere=[]
+  if acritere =="Ratio" :
+    for i in range(len(NumElt)):
+      critere.append (NomMesh.GetAspectRatio(NumElt[i]))
+
+  if acritere =="Length" :
+    for i in range(len(NumElt)):
+      critere.append (NomMesh.GetMaxElementLength(NumElt[i]))
+      
+  crit= numpy.array(critere)
+  max=crit.max()
+  min=crit.min()
+  moyenne=crit.mean()
+  M=numpy.median(crit)
+  Q1=numpy.percentile(crit,25)
+  Q3=numpy.percentile(crit,75)
+  
+  return [max,min,Q1,M,Q3,moyenne]
+
+def getCritereGroupe(NomMesh,NomGr,acritere,theStudy):
+  import SMESH
+  from salome.smesh import smeshBuilder
+  smesh = smeshBuilder.New(theStudy)
+  import numpy
+    
+  # on ne traite que les mailles 2D et 3D
+  NumElt = NomGr.GetListOfID()
+  type_gr=NomMesh.GetElementGeomType(NumElt[0])
+
+#  print "critere",acritere
+#  print "type groupe",type_gr
+#  print dicoDimENtite[str(type_gr)]
+
+  if dicoDimENtite[str(type_gr)]==0 :
+     return [0,0,0,0,0,0]
+
+  critere=[]
+  if acritere =="Ratio" :
+    for i in range(len(NumElt)):
+      critere.append (NomMesh.GetAspectRatio(NumElt[i]))
+
+  if acritere =="Length" :
+    for i in range(len(NumElt)):
+      critere.append (NomMesh.GetMaxElementLength(NumElt[i]))
+      
+  crit= numpy.array(critere)
+  max=crit.max()
+  min=crit.min()
+  moyenne=crit.mean()
+  M=numpy.median(crit)
+  Q1=numpy.percentile(crit,25)
+  Q3=numpy.percentile(crit,75)
+  
+  return [max,min,Q1,M,Q3,moyenne]
+
+def getObjectsGroupe(Mesh,liste,theStudy):
+  import SMESH
+  from salome.smesh import smeshBuilder
+  dico={}
+  lGroups=Mesh.GetGroups()
+  for g in lGroups :
+      name = g.GetName() 
+      for n in liste :
+          if name == n :  dico[name]=g
+  return dico
+
+def getStatsCritere(dim,Mesh,fichierMedResult,theStudy):
+  fichierStatRatio=fichierMedResult.replace('.med','.ratio')
+  max,min,Q1,M,Q3,moyenne = getCritere(dim,Mesh,"Ratio",theStudy)
+  f = open(fichierStatRatio, 'w')
+  f.write(str(max)+","+str(min)+","+str(Q1)+","+str(M)+","+str(Q3)+","+str(moyenne))
+  f.close()
+
+  fichierStatRatio=fichierMedResult.replace('.med','.taille')
+  max,min,Q1,M,Q3,moyenne = getCritere(dim,Mesh,"Length",theStudy)
+  f = open(fichierStatRatio, 'w')
+  f.write(str(max)+","+str(min)+","+str(Q1)+","+str(M)+","+str(Q3)+","+str(moyenne))
+  f.close()
+
+  liste=getGroupesRef(fichierMedResult)
+  dicoGroupe=getObjectsGroupe(Mesh,liste,theStudy)
+  for groupe in liste :
+      max,min,Q1,M,Q3,moyenne=getCritereGroupe(Mesh,dicoGroupe[groupe],"Ratio",theStudy)
+      extension="_"+groupe+'_Ratio.res'
+      fichier=fichierMedResult.replace('.med',extension)
+      f = open(fichier, 'w')
+      f.write(str(max)+","+str(min)+","+str(Q1)+","+str(M)+","+str(Q3)+","+str(moyenne))
+      f.close()
+      max,min,Q1,M,Q3,moyenne=getCritereGroupe(Mesh,dicoGroupe[groupe],"Length",theStudy)
+      extension="_"+groupe+'_Taille.res'
+      fichier=fichierMedResult.replace('.med',extension)
+      f = open(fichier, 'w')
+      f.write(str(max)+","+str(min)+","+str(Q1)+","+str(M)+","+str(Q3)+","+str(moyenne))
+      f.close()
+