mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +05:00
[PY3] use python3 idioms, fix relative imports, fix plugins
This commit is contained in:
parent
2620c8a9db
commit
5637345b9a
@ -33,7 +33,7 @@ for vId in geompy.SubShapeAllIDs( box, geompy.ShapeType["VERTEX"]):
|
||||
pass
|
||||
|
||||
if not node000:
|
||||
raise "node000 not found"
|
||||
raise Exception("node000 not found")
|
||||
|
||||
# find node000 using a dedicated function
|
||||
n = mesh.FindNodeClosestTo( -1,-1,-1 )
|
||||
|
@ -31,7 +31,7 @@
|
||||
# class.
|
||||
#
|
||||
# This script is intended for internal usage - only
|
||||
# for generatation of the extra developer documentation for
|
||||
# for generation of the extra developer documentation for
|
||||
# the meshing plug-in(s).
|
||||
#
|
||||
# Usage:
|
||||
@ -46,6 +46,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
import inspect
|
||||
import sys
|
||||
|
||||
def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"):
|
||||
@ -59,7 +60,7 @@ def main(plugin_name, dummymeshhelp = True, output_file = "smeshBuilder.py"):
|
||||
for attr in dir( mod ):
|
||||
if attr.startswith( '_' ): continue
|
||||
algo = getattr( mod, attr )
|
||||
if type( algo ).__name__ == 'classobj' and hasattr( algo, "meshMethod" ):
|
||||
if inspect.isclass(algo) and hasattr(algo, "meshMethod"):
|
||||
method = getattr( algo, "meshMethod" )
|
||||
if method not in methods: methods[ method ] = []
|
||||
methods[ method ].append( algo )
|
||||
|
@ -21,7 +21,7 @@
|
||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||
#
|
||||
|
||||
from .SMESH_test1 import *
|
||||
from SMESH_test1 import *
|
||||
|
||||
## Old style
|
||||
def CheckBelongToGeomFilterOld(theMeshGen, theMesh, theShape, theSubShape, theElemType):
|
||||
|
@ -24,7 +24,7 @@
|
||||
# File : SMESH_GroupFromGeom.py
|
||||
# Module : SMESH
|
||||
#
|
||||
from .SMESH_test1 import *
|
||||
from SMESH_test1 import *
|
||||
|
||||
# Compute the mesh created in SMESH_test1
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
# Project : PAL/SALOME
|
||||
#==============================================================================
|
||||
#
|
||||
from .SMESH_test1 import *
|
||||
from SMESH_test1 import *
|
||||
|
||||
|
||||
# Compute the mesh created in SMESH_test1
|
||||
|
@ -37,7 +37,7 @@ def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
|
||||
aGroup.Add(anIds)
|
||||
|
||||
#Example
|
||||
from .SMESH_test1 import *
|
||||
from SMESH_test1 import *
|
||||
|
||||
mesh.Compute()
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
# Module : SMESH
|
||||
#
|
||||
import salome
|
||||
from . import SMESH_mechanic
|
||||
import SMESH_mechanic
|
||||
|
||||
import SMESH, SALOMEDS
|
||||
from salome.smesh import smeshBuilder
|
||||
|
@ -26,7 +26,7 @@
|
||||
# Hypothesis and algorithms for the mesh generation are global
|
||||
#
|
||||
import salome
|
||||
from . import SMESH_fixation
|
||||
import SMESH_fixation
|
||||
|
||||
import SMESH, SALOMEDS
|
||||
from salome.smesh import smeshBuilder
|
||||
|
@ -26,7 +26,7 @@
|
||||
# The new Netgen algorithm is used that discretizes baoundaries itself
|
||||
#
|
||||
import salome
|
||||
from . import SMESH_fixation
|
||||
import SMESH_fixation
|
||||
|
||||
import SMESH, SALOMEDS
|
||||
from salome.smesh import smeshBuilder
|
||||
|
@ -26,7 +26,7 @@
|
||||
# Hypothesis and algorithms for the mesh generation are global
|
||||
#
|
||||
import salome
|
||||
from . import SMESH_fixation
|
||||
import SMESH_fixation
|
||||
|
||||
import SMESH, SALOMEDS
|
||||
from salome.smesh import smeshBuilder
|
||||
|
@ -114,5 +114,5 @@ mesh.Compute()
|
||||
salome.sg.updateObjBrowser(True)
|
||||
|
||||
sg = salome.ImportComponentGUI('SMESH')
|
||||
if type(sg) != type(salome.salome_ComponentGUI):
|
||||
if not isinstance(sg, type(salome.salome_ComponentGUI)):
|
||||
sg.CreateAndDisplayActor('0:1:2:3')
|
||||
|
@ -24,7 +24,7 @@
|
||||
# File : SMESH_test2.py
|
||||
# Module : SMESH
|
||||
#
|
||||
from .SMESH_test1 import *
|
||||
from SMESH_test1 import *
|
||||
|
||||
# ---- compute box
|
||||
|
||||
|
@ -369,7 +369,7 @@ class StdMeshersBuilder_Segment(Mesh_Algorithm):
|
||||
def LengthNearVertex(self, length, vertex=0, UseExisting=0):
|
||||
import types
|
||||
store_geom = self.geom
|
||||
if type(vertex) is int:
|
||||
if isinstance(vertex, int):
|
||||
if vertex == 0 or vertex == 1:
|
||||
from salome.geom import geomBuilder
|
||||
vertex = self.mesh.geompyD.ExtractShapes(self.geom, geomBuilder.geomBuilder.ShapeType["VERTEX"],True)[vertex]
|
||||
|
@ -26,7 +26,7 @@ import re
|
||||
|
||||
import batchmode_salome
|
||||
import batchmode_geompy
|
||||
from . import batchmode_smesh
|
||||
import batchmode_smesh
|
||||
from salome.StdMeshers import StdMeshersBuilder
|
||||
|
||||
smesh = batchmode_smesh.smesh
|
||||
|
@ -25,22 +25,22 @@
|
||||
# Load all examples
|
||||
# -----------------
|
||||
#
|
||||
from . import ex01_cube2build
|
||||
from . import ex02_cube2primitive
|
||||
from . import ex03_cube2partition
|
||||
from . import ex04_cube5tetraHexa
|
||||
from . import ex05_hole1build
|
||||
from . import ex06_hole1boolean
|
||||
from . import ex07_hole1partition
|
||||
from . import ex08_hole2build
|
||||
from . import ex09_grid4build
|
||||
from . import ex10_grid4geometry
|
||||
from . import ex11_grid3partition
|
||||
from . import ex12_grid17partition
|
||||
from . import ex13_hole1partial
|
||||
from . import ex14_cyl1holed
|
||||
from . import ex15_cyl2geometry
|
||||
from . import ex16_cyl2complementary
|
||||
from . import ex17_dome1
|
||||
from . import ex18_dome2
|
||||
from . import ex19_sphereINcube
|
||||
import ex01_cube2build
|
||||
import ex02_cube2primitive
|
||||
import ex03_cube2partition
|
||||
import ex04_cube5tetraHexa
|
||||
import ex05_hole1build
|
||||
import ex06_hole1boolean
|
||||
import ex07_hole1partition
|
||||
import ex08_hole2build
|
||||
import ex09_grid4build
|
||||
import ex10_grid4geometry
|
||||
import ex11_grid3partition
|
||||
import ex12_grid17partition
|
||||
import ex13_hole1partial
|
||||
import ex14_cyl1holed
|
||||
import ex15_cyl2geometry
|
||||
import ex16_cyl2complementary
|
||||
import ex17_dome1
|
||||
import ex18_dome2
|
||||
import ex19_sphereINcube
|
||||
|
@ -29,6 +29,7 @@
|
||||
\brief Module smesh
|
||||
"""
|
||||
|
||||
import inspect
|
||||
import salome
|
||||
from salome import *
|
||||
|
||||
@ -49,7 +50,7 @@ except:
|
||||
pass
|
||||
|
||||
# load plugins and add dynamically generated methods to Mesh class,
|
||||
# the same for for global variables declared by plug-ins
|
||||
# the same for global variables declared by plug-ins
|
||||
from salome.smesh.smeshBuilder import *
|
||||
from salome.smesh.smeshBuilder import Mesh, algoCreator
|
||||
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
|
||||
@ -69,7 +70,7 @@ for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
|
||||
for k in dir( plugin ):
|
||||
if k[0] == '_': continue
|
||||
algo = getattr( plugin, k )
|
||||
if type( algo ).__name__ == 'classobj' and hasattr( algo, "meshMethod" ):
|
||||
if inspect.isclass(algo) and hasattr(algo, "meshMethod"):
|
||||
if not hasattr( Mesh, algo.meshMethod ):
|
||||
setattr( Mesh, algo.meshMethod, algoCreator() )
|
||||
pass
|
||||
|
@ -90,7 +90,7 @@ from salome.smesh.smesh_algorithm import Mesh_Algorithm
|
||||
import SALOME
|
||||
import SALOMEDS
|
||||
import os
|
||||
import collections
|
||||
import inspect
|
||||
|
||||
## Private class used to workaround a problem that sometimes isinstance(m, Mesh) returns False
|
||||
#
|
||||
@ -124,7 +124,7 @@ def ParseParameters(*args):
|
||||
Parameters = ""
|
||||
hasVariables = False
|
||||
varModifFun=None
|
||||
if args and isinstance( args[-1], collections.Callable):
|
||||
if args and callable(args[-1]):
|
||||
args, varModifFun = args[:-1], args[-1]
|
||||
for parameter in args:
|
||||
|
||||
@ -989,7 +989,7 @@ class smeshBuilder(SMESH._objref_SMESH_Gen):
|
||||
if not meth_name.startswith("Get") and \
|
||||
not meth_name in dir ( SMESH._objref_SMESH_Hypothesis ):
|
||||
method = getattr ( hyp.__class__, meth_name )
|
||||
if isinstance(method, collections.Callable):
|
||||
if callable(method):
|
||||
setattr( hyp, meth_name, hypMethodWrapper( hyp, method ))
|
||||
|
||||
return hyp
|
||||
@ -5179,8 +5179,8 @@ class algoCreator:
|
||||
|
||||
# Store a python class of algorithm
|
||||
def add(self, algoClass):
|
||||
if type( algoClass ).__name__ == 'classobj' and \
|
||||
hasattr( algoClass, "algoType"):
|
||||
if inspect.isclass(algoClass) and \
|
||||
hasattr(algoClass, "algoType"):
|
||||
self.algoTypeToClass[ algoClass.algoType ] = algoClass
|
||||
if not self.defaultAlgoType and \
|
||||
hasattr( algoClass, "isDefault") and algoClass.isDefault:
|
||||
@ -5286,7 +5286,7 @@ for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
|
||||
if k[0] == '_': continue
|
||||
algo = getattr( plugin, k )
|
||||
#print " algo:", str(algo)
|
||||
if type( algo ).__name__ == 'classobj' and hasattr( algo, "meshMethod" ):
|
||||
if inspect.isclass(algo) and hasattr(algo, "meshMethod"):
|
||||
#print " meshMethod:" , str(algo.meshMethod)
|
||||
if not hasattr( Mesh, algo.meshMethod ):
|
||||
setattr( Mesh, algo.meshMethod, algoCreator() )
|
||||
|
@ -178,7 +178,7 @@ def RemoveLastObj() :
|
||||
Config.Connections = Config.Connections[:-1]
|
||||
|
||||
def GroupArray(indices, GroupNames) :
|
||||
if type(indices) is int :
|
||||
if isinstance(indices, int) :
|
||||
indices = [indices]
|
||||
GroupNames = [GroupNames]
|
||||
Output = [None,None,None,None]
|
||||
|
@ -174,8 +174,7 @@ def IndexMultiOcc (Array,Element) :
|
||||
|
||||
def SortList (ValList, CritList):
|
||||
Output = []
|
||||
SortedCritList = copy.copy(CritList)
|
||||
SortedCritList.sort()
|
||||
SortedCritList = sorted(copy.copy(CritList))
|
||||
for i in range(0,len(ValList)):
|
||||
index = CritList.index(SortedCritList[i])
|
||||
Output.append(ValList[index])
|
||||
|
@ -222,8 +222,7 @@ def IndexMultiOcc (Array,Element) :
|
||||
|
||||
def SortList (ValList, CritList):
|
||||
Output = []
|
||||
SortedCritList = copy.copy(CritList)
|
||||
SortedCritList.sort()
|
||||
SortedCritList = sorted(copy.copy(CritList))
|
||||
for i in range(0,len(ValList)):
|
||||
index = CritList.index(SortedCritList[i])
|
||||
Output.append(ValList[index])
|
||||
|
@ -51,7 +51,7 @@ def Go(GeoObj, CutPlnLst, OutLvlLst, PrefixLst, Publish):
|
||||
|
||||
NumCuts = CheckInput(CutPlnLst, OutLvlLst, PrefixLst, 1)
|
||||
OrigType = FindStandType(GeoObj,0)
|
||||
InvDictionary = dict((v,k) for k, v in geompy.ShapeType.items()) # Give geometry type name as a function of standard type numbering, ex: 4=FACE, 6=EDGE, 7=VERTEX
|
||||
InvDictionary = {v: k for k, v in geompy.ShapeType.items()} # Give geometry type name as a function of standard type numbering, ex: 4=FACE, 6=EDGE, 7=VERTEX
|
||||
TrimSize = geompy.BasicProperties(GeoObj)[0]*100
|
||||
CutPlane = [] ; Sections = [] ; Parts = []
|
||||
|
||||
@ -113,7 +113,7 @@ def GoTrim(GeoObj, CutPlnLst, OutLvlLst, PrefixLst, Publish):
|
||||
|
||||
NumCuts = CheckInput(CutPlnLst, OutLvlLst, PrefixLst, 0)
|
||||
OrigType = FindStandType(GeoObj,0)
|
||||
InvDictionary = dict((v,k) for k, v in geompy.ShapeType.items()) # Give geometry type name as a function of standard type numbering, ex: 4=FACE, 6=EDGE, 7=VERTEX
|
||||
InvDictionary = {v: k for k, v in geompy.ShapeType.items()} # Give geometry type name as a function of standard type numbering, ex: 4=FACE, 6=EDGE, 7=VERTEX
|
||||
CutPlane = [] ; Sections = [] ; Parts = []
|
||||
if NumCuts:
|
||||
for i in range(0, NumCuts): # Loop over the cutting planes to create them one by one
|
||||
|
@ -825,8 +825,7 @@ def IndexMultiOcc (Array,Element) :
|
||||
|
||||
def SortList (ValList, CritList):
|
||||
Output = []
|
||||
SortedCritList = copy.copy(CritList)
|
||||
SortedCritList.sort()
|
||||
SortedCritList = sorted(copy.copy(CritList))
|
||||
for i in range(0,len(ValList)):
|
||||
if i > 0 :
|
||||
if not(SortedCritList[i]==SortedCritList[i-1]):
|
||||
|
@ -209,7 +209,7 @@ class MacObject:
|
||||
"""
|
||||
PtCoor = self.PtCoor
|
||||
PtCoor.append(self.PtCoor[0])
|
||||
if type(Direction) is str :
|
||||
if isinstance(Direction, str) :
|
||||
Dir = { 'South' : lambda : 0,
|
||||
'North' : lambda : 1,
|
||||
'West' : lambda : 2,
|
||||
@ -226,7 +226,7 @@ class MacObject:
|
||||
The interest in using this method is for non-orthogonal objects where the sides can be
|
||||
deviated from the orthogonal basis vectors
|
||||
"""
|
||||
if type(Direction) is str :
|
||||
if isinstance(Direction, str) :
|
||||
Dir = { 'South' : lambda : 0,
|
||||
'North' : lambda : 1,
|
||||
'West' : lambda : 2,
|
||||
@ -243,7 +243,7 @@ class MacObject:
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New( Config.theStudy )
|
||||
|
||||
if type(Criterion) is str :
|
||||
if isinstance(Criterion, str) :
|
||||
Crit = {'South' : lambda : 0,
|
||||
'North' : lambda : 1,
|
||||
'West' : lambda : 2,
|
||||
|
@ -238,7 +238,7 @@ def SharpAngleIn (X0 , Y0 , DX , DY , DLocal, LocalMeshing , CornerOrientation ,
|
||||
return Obj
|
||||
|
||||
def GroupArray(indices, GroupNames) :
|
||||
if type(indices) is int :
|
||||
if isinstance(indices, int) :
|
||||
indices = [indices]
|
||||
GroupNames = [GroupNames]
|
||||
Output = [None,None,None,None]
|
||||
|
@ -28,7 +28,6 @@ SET(plugin_SCRIPTS
|
||||
__init__.py
|
||||
ellipse.py
|
||||
genereCrack.py
|
||||
images_rc.py
|
||||
main.py
|
||||
output.py
|
||||
rectangle.py
|
||||
@ -49,11 +48,18 @@ SET(_pyuic_files
|
||||
zcracks.ui
|
||||
)
|
||||
|
||||
# qrc files / to be processed by pyrcc
|
||||
SET(_pyqrcc_files
|
||||
images.qrc
|
||||
)
|
||||
|
||||
# scripts / pyuic wrappings
|
||||
PYQT_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files})
|
||||
PYQT_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files} OPTIONS "--import-from=Zcracks" "--resource-suffix=_qrc")
|
||||
PYQT_WRAP_QRC(_pyqrc_SCRIPTS ${_pyqrcc_files})
|
||||
|
||||
# --- rules ---
|
||||
|
||||
SALOME_INSTALL_SCRIPTS("${plugin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/Zcracks)
|
||||
SALOME_INSTALL_SCRIPTS("${_pyuic_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/Zcracks)
|
||||
SALOME_INSTALL_SCRIPTS("${_pyqrc_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/Zcracks)
|
||||
SALOME_INSTALL_SCRIPTS("${command_SCRIPTS}" ${SALOME_INSTALL_BINS})
|
||||
|
@ -74,10 +74,10 @@ def launchZcrack(minS, maxS,
|
||||
zfile.write(' convert_surface("%s");\n' %crackN.replace('.geo',''))
|
||||
zfile.write(' cracked_name="%s";\n' %crackedN.replace('.geo',''))
|
||||
|
||||
if Gfac!='': zfile.write(' faset_names="%s";\n' %(Gfac[0] if type(Gfac)==list else Gfac))
|
||||
if Gnod!='': zfile.write(' nset_names="%s";\n' %(Gnod[0] if type(Gnod)==list else Gnod))
|
||||
if Gvol!='': zfile.write(' elset_names="%s";\n' %(Gvol[0] if type(Gvol)==list else Gvol))
|
||||
if Gedg!='': zfile.write(' liset_names="%s";\n' %(Gedg[0] if type(Gedg)==list else Gedg))
|
||||
if Gfac!='': zfile.write(' faset_names="%s";\n' %(Gfac[0] if isinstance(Gfac, list) else Gfac))
|
||||
if Gnod!='': zfile.write(' nset_names="%s";\n' %(Gnod[0] if isinstance(Gnod, list) else Gnod))
|
||||
if Gvol!='': zfile.write(' elset_names="%s";\n' %(Gvol[0] if isinstance(Gvol, list) else Gvol))
|
||||
if Gedg!='': zfile.write(' liset_names="%s";\n' %(Gedg[0] if isinstance(Gedg, list) else Gedg))
|
||||
if surfOpt!='':
|
||||
zfile.write(' yams_options="%s";\n' %surfOpt)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import sys, os, shutil, pickle, tempfile
|
||||
from . import main, genereCrack, Zset
|
||||
from . import utilityFunctions as uF
|
||||
from Zcracks import main, genereCrack, Zset
|
||||
from Zcracks import utilityFunctions as uF
|
||||
|
||||
#commande="/bin/bash -c ""source $HOME/zebulon/Z8.6.6_NEW/do_config_bash"""
|
||||
#os.system(commande)
|
||||
|
@ -27,7 +27,7 @@ if len(meshgemsdir) > 0:
|
||||
uF.removeFromSessionPath('LD_LIBRARY_PATH', meshgems)
|
||||
|
||||
def LAUNCH(listCas=[]):
|
||||
if type(listCas)!=list: listCas=[listCas]
|
||||
if not isinstance(listCas, list): listCas=[listCas]
|
||||
|
||||
N=20
|
||||
L=1.
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -17,11 +17,11 @@ def calcCoordVectors(normalIN, directionIN):
|
||||
|
||||
def testStrictRange(x, inf=0.0, sup=False):
|
||||
test=False
|
||||
c1=(type(x)==list)
|
||||
c1=(isinstance(x, list))
|
||||
if c1:
|
||||
c2=(len(x)==1)
|
||||
if c2:
|
||||
c3=(type(x[0])==type(inf))
|
||||
c3=(isinstance(x[0], type(inf)))
|
||||
if c3:
|
||||
c4=(x[0]>inf)
|
||||
c5=True
|
||||
@ -33,24 +33,24 @@ def testStrictRange(x, inf=0.0, sup=False):
|
||||
|
||||
def test3dVector(x):
|
||||
test=False
|
||||
c1=(type(x)==list)
|
||||
c1=(isinstance(x, list))
|
||||
if c1:
|
||||
c2=(len(x)==3)
|
||||
if c2:
|
||||
c3=(type(x[0])==float)
|
||||
c4=(type(x[1])==float)
|
||||
c5=(type(x[2])==float)
|
||||
c3=(isinstance(x[0], float))
|
||||
c4=(isinstance(x[1], float))
|
||||
c5=(isinstance(x[2], float))
|
||||
if c3 and c4 and c5:
|
||||
test=True
|
||||
return(test)
|
||||
|
||||
def testRange(x, inf=0.0, sup=False):
|
||||
test=False
|
||||
c1=(type(x)==list)
|
||||
c1=(isinstance(x, list))
|
||||
if c1:
|
||||
c2=(len(x)==1)
|
||||
if c2:
|
||||
c3=(type(x[0])==type(inf))
|
||||
c3=(isinstance(x[0], type(inf)))
|
||||
if c3:
|
||||
c4=(x[0]>=inf)
|
||||
c5=True
|
||||
@ -427,8 +427,8 @@ def getMaxAspectRatio(tmpdir):
|
||||
|
||||
|
||||
def removeFromSessionPath(envVar, patern):
|
||||
if type(patern) is not list: patern=[patern]
|
||||
if type(envVar) is not list: envVar=[envVar]
|
||||
if not isinstance(patern, list): patern=[patern]
|
||||
if not isinstance(envVar, list): envVar=[envVar]
|
||||
|
||||
for env in envVar:
|
||||
path=environ[env]
|
||||
|
@ -1,738 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'zcracks.ui'
|
||||
#
|
||||
# Created: Wed Oct 19 07:56:41 2016
|
||||
# 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_Zui(object):
|
||||
def setupUi(self, Zui):
|
||||
Zui.setObjectName(_fromUtf8("Zui"))
|
||||
Zui.resize(709, 540)
|
||||
Zui.setMinimumSize(QtCore.QSize(709, 540))
|
||||
Zui.setMaximumSize(QtCore.QSize(709, 540))
|
||||
palette = QtGui.QPalette()
|
||||
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
|
||||
Zui.setPalette(palette)
|
||||
Zui.setTitle(_fromUtf8(""))
|
||||
self.horizontalLayoutWidget = QtGui.QWidget(Zui)
|
||||
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(3, 497, 301, 37))
|
||||
self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
|
||||
self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
|
||||
self.horizontalLayout.setMargin(0)
|
||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||
self.btReset = QtGui.QPushButton(self.horizontalLayoutWidget)
|
||||
self.btReset.setMinimumSize(QtCore.QSize(85, 35))
|
||||
self.btReset.setMaximumSize(QtCore.QSize(85, 35))
|
||||
self.btReset.setObjectName(_fromUtf8("btReset"))
|
||||
self.horizontalLayout.addWidget(self.btReset)
|
||||
self.btSave = QtGui.QPushButton(self.horizontalLayoutWidget)
|
||||
self.btSave.setMinimumSize(QtCore.QSize(85, 35))
|
||||
self.btSave.setMaximumSize(QtCore.QSize(85, 35))
|
||||
self.btSave.setObjectName(_fromUtf8("btSave"))
|
||||
self.horizontalLayout.addWidget(self.btSave)
|
||||
self.btLoad = QtGui.QPushButton(self.horizontalLayoutWidget)
|
||||
self.btLoad.setMinimumSize(QtCore.QSize(85, 35))
|
||||
self.btLoad.setMaximumSize(QtCore.QSize(85, 35))
|
||||
self.btLoad.setObjectName(_fromUtf8("btLoad"))
|
||||
self.horizontalLayout.addWidget(self.btLoad)
|
||||
self.horizontalLayoutWidget_2 = QtGui.QWidget(Zui)
|
||||
self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(344, 490, 360, 51))
|
||||
self.horizontalLayoutWidget_2.setObjectName(_fromUtf8("horizontalLayoutWidget_2"))
|
||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_2)
|
||||
self.horizontalLayout_2.setMargin(0)
|
||||
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
||||
self.btCancel = QtGui.QPushButton(self.horizontalLayoutWidget_2)
|
||||
self.btCancel.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.btCancel.setMaximumSize(QtCore.QSize(100, 35))
|
||||
self.btCancel.setObjectName(_fromUtf8("btCancel"))
|
||||
self.horizontalLayout_2.addWidget(self.btCancel)
|
||||
self.btApply = QtGui.QPushButton(self.horizontalLayoutWidget_2)
|
||||
self.btApply.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.btApply.setMaximumSize(QtCore.QSize(100, 35))
|
||||
self.btApply.setObjectName(_fromUtf8("btApply"))
|
||||
self.horizontalLayout_2.addWidget(self.btApply)
|
||||
self.btApplyClose = QtGui.QPushButton(self.horizontalLayoutWidget_2)
|
||||
self.btApplyClose.setMinimumSize(QtCore.QSize(130, 35))
|
||||
self.btApplyClose.setMaximumSize(QtCore.QSize(130, 35))
|
||||
self.btApplyClose.setObjectName(_fromUtf8("btApplyClose"))
|
||||
self.horizontalLayout_2.addWidget(self.btApplyClose)
|
||||
self.frame = QtGui.QFrame(Zui)
|
||||
self.frame.setGeometry(QtCore.QRect(3, 6, 309, 255))
|
||||
self.frame.setFrameShape(QtGui.QFrame.Panel)
|
||||
self.frame.setFrameShadow(QtGui.QFrame.Raised)
|
||||
self.frame.setLineWidth(2)
|
||||
self.frame.setMidLineWidth(0)
|
||||
self.frame.setObjectName(_fromUtf8("frame"))
|
||||
self.gridLayoutWidget = QtGui.QWidget(self.frame)
|
||||
self.gridLayoutWidget.setGeometry(QtCore.QRect(-2, 21, 311, 81))
|
||||
self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
|
||||
self.gridLayout.setSpacing(6)
|
||||
self.gridLayout.setContentsMargins(10, 0, 10, 0)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.txtCrackedName = QtGui.QLabel(self.gridLayoutWidget)
|
||||
self.txtCrackedName.setMinimumSize(QtCore.QSize(112, 0))
|
||||
self.txtCrackedName.setMaximumSize(QtCore.QSize(76, 16777215))
|
||||
self.txtCrackedName.setStatusTip(_fromUtf8(""))
|
||||
self.txtCrackedName.setWhatsThis(_fromUtf8(""))
|
||||
self.txtCrackedName.setAccessibleName(_fromUtf8(""))
|
||||
self.txtCrackedName.setAccessibleDescription(_fromUtf8(""))
|
||||
self.txtCrackedName.setObjectName(_fromUtf8("txtCrackedName"))
|
||||
self.gridLayout.addWidget(self.txtCrackedName, 0, 0, 1, 1)
|
||||
self.valCrackedName = QtGui.QLineEdit(self.gridLayoutWidget)
|
||||
self.valCrackedName.setMinimumSize(QtCore.QSize(118, 0))
|
||||
self.valCrackedName.setAutoFillBackground(True)
|
||||
self.valCrackedName.setObjectName(_fromUtf8("valCrackedName"))
|
||||
self.gridLayout.addWidget(self.valCrackedName, 0, 1, 1, 1)
|
||||
self.txtSaneName = QtGui.QLabel(self.gridLayoutWidget)
|
||||
self.txtSaneName.setMaximumSize(QtCore.QSize(100, 16777215))
|
||||
self.txtSaneName.setObjectName(_fromUtf8("txtSaneName"))
|
||||
self.gridLayout.addWidget(self.txtSaneName, 1, 0, 1, 1)
|
||||
self.valSaneName = QtGui.QLineEdit(self.gridLayoutWidget)
|
||||
self.valSaneName.setToolTip(_fromUtf8("file address (ex: /home/A123456/cuve.med)"))
|
||||
self.valSaneName.setAutoFillBackground(True)
|
||||
self.valSaneName.setInputMask(_fromUtf8(""))
|
||||
self.valSaneName.setText(_fromUtf8(""))
|
||||
self.valSaneName.setObjectName(_fromUtf8("valSaneName"))
|
||||
self.gridLayout.addWidget(self.valSaneName, 1, 1, 1, 1)
|
||||
self.btLoadCracked = QtGui.QPushButton(self.gridLayoutWidget)
|
||||
self.btLoadCracked.setMinimumSize(QtCore.QSize(28, 28))
|
||||
self.btLoadCracked.setMaximumSize(QtCore.QSize(28, 28))
|
||||
self.btLoadCracked.setObjectName(_fromUtf8("btLoadCracked"))
|
||||
self.gridLayout.addWidget(self.btLoadCracked, 0, 2, 1, 1)
|
||||
self.btLoadSane = QtGui.QPushButton(self.gridLayoutWidget)
|
||||
self.btLoadSane.setMinimumSize(QtCore.QSize(28, 28))
|
||||
self.btLoadSane.setMaximumSize(QtCore.QSize(28, 28))
|
||||
self.btLoadSane.setObjectName(_fromUtf8("btLoadSane"))
|
||||
self.gridLayout.addWidget(self.btLoadSane, 1, 2, 1, 1)
|
||||
self.cracked_name_2 = QtGui.QLabel(self.frame)
|
||||
self.cracked_name_2.setGeometry(QtCore.QRect(0, 0, 311, 28))
|
||||
palette = QtGui.QPalette()
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(118, 118, 117))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(118, 118, 117))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(118, 118, 117))
|
||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
||||
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
|
||||
self.cracked_name_2.setPalette(palette)
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.cracked_name_2.setFont(font)
|
||||
self.cracked_name_2.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.cracked_name_2.setObjectName(_fromUtf8("cracked_name_2"))
|
||||
self.gridLayoutWidget_3 = QtGui.QWidget(self.frame)
|
||||
self.gridLayoutWidget_3.setGeometry(QtCore.QRect(-2, 102, 311, 161))
|
||||
self.gridLayoutWidget_3.setObjectName(_fromUtf8("gridLayoutWidget_3"))
|
||||
self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
|
||||
self.gridLayout_3.setContentsMargins(10, 0, 10, 0)
|
||||
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
|
||||
self.txtMaxSize = QtGui.QLabel(self.gridLayoutWidget_3)
|
||||
self.txtMaxSize.setObjectName(_fromUtf8("txtMaxSize"))
|
||||
self.gridLayout_3.addWidget(self.txtMaxSize, 1, 0, 1, 1)
|
||||
self.txtExtractLength = QtGui.QLabel(self.gridLayoutWidget_3)
|
||||
self.txtExtractLength.setObjectName(_fromUtf8("txtExtractLength"))
|
||||
self.gridLayout_3.addWidget(self.txtExtractLength, 2, 0, 1, 1)
|
||||
self.valMinSize = QtGui.QLineEdit(self.gridLayoutWidget_3)
|
||||
self.valMinSize.setAutoFillBackground(True)
|
||||
self.valMinSize.setObjectName(_fromUtf8("valMinSize"))
|
||||
self.gridLayout_3.addWidget(self.valMinSize, 0, 1, 1, 1)
|
||||
self.valMaxSize = QtGui.QLineEdit(self.gridLayoutWidget_3)
|
||||
self.valMaxSize.setAutoFillBackground(True)
|
||||
self.valMaxSize.setObjectName(_fromUtf8("valMaxSize"))
|
||||
self.gridLayout_3.addWidget(self.valMaxSize, 1, 1, 1, 1)
|
||||
self.valExtractLength = QtGui.QLineEdit(self.gridLayoutWidget_3)
|
||||
self.valExtractLength.setAutoFillBackground(True)
|
||||
self.valExtractLength.setObjectName(_fromUtf8("valExtractLength"))
|
||||
self.gridLayout_3.addWidget(self.valExtractLength, 2, 1, 1, 1)
|
||||
self.CBQuad = QtGui.QCheckBox(self.gridLayoutWidget_3)
|
||||
self.CBQuad.setObjectName(_fromUtf8("CBQuad"))
|
||||
self.gridLayout_3.addWidget(self.CBQuad, 3, 0, 1, 1)
|
||||
self.CBBarsoum = QtGui.QCheckBox(self.gridLayoutWidget_3)
|
||||
self.CBBarsoum.setEnabled(False)
|
||||
self.CBBarsoum.setObjectName(_fromUtf8("CBBarsoum"))
|
||||
self.gridLayout_3.addWidget(self.CBBarsoum, 3, 1, 1, 1)
|
||||
self.txtMinSize = QtGui.QLabel(self.gridLayoutWidget_3)
|
||||
self.txtMinSize.setObjectName(_fromUtf8("txtMinSize"))
|
||||
self.gridLayout_3.addWidget(self.txtMinSize, 0, 0, 1, 1)
|
||||
self.frame_2 = QtGui.QFrame(Zui)
|
||||
self.frame_2.setGeometry(QtCore.QRect(2, 265, 309, 226))
|
||||
self.frame_2.setFrameShape(QtGui.QFrame.Panel)
|
||||
self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
|
||||
self.frame_2.setLineWidth(2)
|
||||
self.frame_2.setMidLineWidth(0)
|
||||
self.frame_2.setObjectName(_fromUtf8("frame_2"))
|
||||
self.labelCrackedName = QtGui.QLabel(self.frame_2)
|
||||
self.labelCrackedName.setGeometry(QtCore.QRect(-1, 0, 311, 28))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.labelCrackedName.setFont(font)
|
||||
self.labelCrackedName.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.labelCrackedName.setObjectName(_fromUtf8("labelCrackedName"))
|
||||
self.gridLayoutWidget_2 = QtGui.QWidget(self.frame_2)
|
||||
self.gridLayoutWidget_2.setGeometry(QtCore.QRect(0, 14, 311, 220))
|
||||
self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2"))
|
||||
self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2)
|
||||
self.gridLayout_2.setMargin(10)
|
||||
self.gridLayout_2.setSpacing(10)
|
||||
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
||||
self.txtGrVol = QtGui.QLabel(self.gridLayoutWidget_2)
|
||||
self.txtGrVol.setObjectName(_fromUtf8("txtGrVol"))
|
||||
self.gridLayout_2.addWidget(self.txtGrVol, 0, 0, 1, 1)
|
||||
self.valGrVol = QtGui.QLineEdit(self.gridLayoutWidget_2)
|
||||
self.valGrVol.setAutoFillBackground(True)
|
||||
self.valGrVol.setObjectName(_fromUtf8("valGrVol"))
|
||||
self.gridLayout_2.addWidget(self.valGrVol, 0, 1, 1, 1)
|
||||
self.txtGrFace = QtGui.QLabel(self.gridLayoutWidget_2)
|
||||
self.txtGrFace.setToolTip(_fromUtf8("Groups of faces to keep"))
|
||||
self.txtGrFace.setObjectName(_fromUtf8("txtGrFace"))
|
||||
self.gridLayout_2.addWidget(self.txtGrFace, 1, 0, 1, 1)
|
||||
self.valGrFace = QtGui.QLineEdit(self.gridLayoutWidget_2)
|
||||
self.valGrFace.setToolTip(_fromUtf8("groups separated by a space (ex: Gr1 Gr2 Gr3)"))
|
||||
self.valGrFace.setAutoFillBackground(True)
|
||||
self.valGrFace.setInputMask(_fromUtf8(""))
|
||||
self.valGrFace.setText(_fromUtf8(""))
|
||||
self.valGrFace.setObjectName(_fromUtf8("valGrFace"))
|
||||
self.gridLayout_2.addWidget(self.valGrFace, 1, 1, 1, 1)
|
||||
self.txtGrEdge = QtGui.QLabel(self.gridLayoutWidget_2)
|
||||
self.txtGrEdge.setObjectName(_fromUtf8("txtGrEdge"))
|
||||
self.gridLayout_2.addWidget(self.txtGrEdge, 2, 0, 1, 1)
|
||||
self.valGrEdge = QtGui.QLineEdit(self.gridLayoutWidget_2)
|
||||
self.valGrEdge.setAutoFillBackground(True)
|
||||
self.valGrEdge.setObjectName(_fromUtf8("valGrEdge"))
|
||||
self.gridLayout_2.addWidget(self.valGrEdge, 2, 1, 1, 1)
|
||||
self.txtGrNode = QtGui.QLabel(self.gridLayoutWidget_2)
|
||||
self.txtGrNode.setObjectName(_fromUtf8("txtGrNode"))
|
||||
self.gridLayout_2.addWidget(self.txtGrNode, 3, 0, 1, 1)
|
||||
self.valGrNode = QtGui.QLineEdit(self.gridLayoutWidget_2)
|
||||
self.valGrNode.setAutoFillBackground(True)
|
||||
self.valGrNode.setObjectName(_fromUtf8("valGrNode"))
|
||||
self.gridLayout_2.addWidget(self.valGrNode, 3, 1, 1, 1)
|
||||
self.btGrVol = QtGui.QPushButton(self.gridLayoutWidget_2)
|
||||
self.btGrVol.setMaximumSize(QtCore.QSize(40, 28))
|
||||
self.btGrVol.setObjectName(_fromUtf8("btGrVol"))
|
||||
self.gridLayout_2.addWidget(self.btGrVol, 0, 2, 1, 1)
|
||||
self.btGrFace = QtGui.QPushButton(self.gridLayoutWidget_2)
|
||||
self.btGrFace.setMaximumSize(QtCore.QSize(40, 28))
|
||||
self.btGrFace.setObjectName(_fromUtf8("btGrFace"))
|
||||
self.gridLayout_2.addWidget(self.btGrFace, 1, 2, 1, 1)
|
||||
self.btGrEdge = QtGui.QPushButton(self.gridLayoutWidget_2)
|
||||
self.btGrEdge.setMaximumSize(QtCore.QSize(40, 28))
|
||||
self.btGrEdge.setObjectName(_fromUtf8("btGrEdge"))
|
||||
self.gridLayout_2.addWidget(self.btGrEdge, 2, 2, 1, 1)
|
||||
self.btGrNode = QtGui.QPushButton(self.gridLayoutWidget_2)
|
||||
self.btGrNode.setMaximumSize(QtCore.QSize(40, 28))
|
||||
self.btGrNode.setObjectName(_fromUtf8("btGrNode"))
|
||||
self.gridLayout_2.addWidget(self.btGrNode, 3, 2, 1, 1)
|
||||
self.btGrAll = QtGui.QPushButton(self.gridLayoutWidget_2)
|
||||
self.btGrAll.setMaximumSize(QtCore.QSize(80, 28))
|
||||
self.btGrAll.setObjectName(_fromUtf8("btGrAll"))
|
||||
self.gridLayout_2.addWidget(self.btGrAll, 4, 1, 1, 1)
|
||||
self.frame_3 = QtGui.QFrame(Zui)
|
||||
self.frame_3.setGeometry(QtCore.QRect(317, 6, 388, 333))
|
||||
self.frame_3.setFrameShape(QtGui.QFrame.Panel)
|
||||
self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
|
||||
self.frame_3.setLineWidth(2)
|
||||
self.frame_3.setMidLineWidth(0)
|
||||
self.frame_3.setObjectName(_fromUtf8("frame_3"))
|
||||
self.tabWidget = QtGui.QTabWidget(self.frame_3)
|
||||
self.tabWidget.setGeometry(QtCore.QRect(4, 23, 378, 306))
|
||||
self.tabWidget.setMinimumSize(QtCore.QSize(0, 270))
|
||||
self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 331))
|
||||
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
|
||||
self.ongletEllipse = QtGui.QWidget()
|
||||
self.ongletEllipse.setObjectName(_fromUtf8("ongletEllipse"))
|
||||
self.tabEllipse = QtGui.QTableWidget(self.ongletEllipse)
|
||||
self.tabEllipse.setGeometry(QtCore.QRect(0, 0, 375, 271))
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.tabEllipse.sizePolicy().hasHeightForWidth())
|
||||
self.tabEllipse.setSizePolicy(sizePolicy)
|
||||
self.tabEllipse.setMaximumSize(QtCore.QSize(16777215, 301))
|
||||
self.tabEllipse.setBaseSize(QtCore.QSize(0, 0))
|
||||
font = QtGui.QFont()
|
||||
font.setUnderline(False)
|
||||
self.tabEllipse.setFont(font)
|
||||
self.tabEllipse.setMouseTracking(False)
|
||||
self.tabEllipse.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
|
||||
self.tabEllipse.setAutoFillBackground(False)
|
||||
self.tabEllipse.setObjectName(_fromUtf8("tabEllipse"))
|
||||
self.tabEllipse.setColumnCount(1)
|
||||
self.tabEllipse.setRowCount(8)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setItalic(False)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabEllipse.setVerticalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabEllipse.setVerticalHeaderItem(1, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabEllipse.setVerticalHeaderItem(2, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setVerticalHeaderItem(3, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setVerticalHeaderItem(4, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setVerticalHeaderItem(5, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setVerticalHeaderItem(6, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setVerticalHeaderItem(7, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setHorizontalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.NoBrush)
|
||||
item.setBackground(brush)
|
||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
brush.setStyle(QtCore.Qt.NoBrush)
|
||||
item.setForeground(brush)
|
||||
self.tabEllipse.setItem(0, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabEllipse.setItem(1, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabEllipse.setItem(2, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setItem(3, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setItem(4, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabEllipse.setItem(5, 0, item)
|
||||
self.infoEllipse = QtGui.QLabel(self.ongletEllipse)
|
||||
self.infoEllipse.setGeometry(QtCore.QRect(330, 0, 40, 25))
|
||||
self.infoEllipse.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.infoEllipse.setObjectName(_fromUtf8("infoEllipse"))
|
||||
self.tabWidget.addTab(self.ongletEllipse, _fromUtf8(""))
|
||||
self.ongletRectangle = QtGui.QWidget()
|
||||
self.ongletRectangle.setObjectName(_fromUtf8("ongletRectangle"))
|
||||
self.tabRectangle = QtGui.QTableWidget(self.ongletRectangle)
|
||||
self.tabRectangle.setGeometry(QtCore.QRect(0, 0, 375, 271))
|
||||
self.tabRectangle.setMaximumSize(QtCore.QSize(16777215, 301))
|
||||
self.tabRectangle.setObjectName(_fromUtf8("tabRectangle"))
|
||||
self.tabRectangle.setColumnCount(1)
|
||||
self.tabRectangle.setRowCount(8)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabRectangle.setVerticalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabRectangle.setVerticalHeaderItem(1, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabRectangle.setVerticalHeaderItem(2, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabRectangle.setVerticalHeaderItem(3, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setVerticalHeaderItem(4, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setVerticalHeaderItem(5, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setVerticalHeaderItem(6, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setVerticalHeaderItem(7, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setHorizontalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setItem(3, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setItem(4, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setItem(5, 0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabRectangle.setItem(6, 0, item)
|
||||
self.infoRectangle = QtGui.QLabel(self.ongletRectangle)
|
||||
self.infoRectangle.setGeometry(QtCore.QRect(330, 0, 40, 25))
|
||||
self.infoRectangle.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.infoRectangle.setObjectName(_fromUtf8("infoRectangle"))
|
||||
self.tabWidget.addTab(self.ongletRectangle, _fromUtf8(""))
|
||||
self.ongletSphere = QtGui.QWidget()
|
||||
self.ongletSphere.setObjectName(_fromUtf8("ongletSphere"))
|
||||
self.tabSphere = QtGui.QTableWidget(self.ongletSphere)
|
||||
self.tabSphere.setGeometry(QtCore.QRect(0, 0, 375, 272))
|
||||
self.tabSphere.setMaximumSize(QtCore.QSize(16777215, 301))
|
||||
self.tabSphere.setObjectName(_fromUtf8("tabSphere"))
|
||||
self.tabSphere.setColumnCount(1)
|
||||
self.tabSphere.setRowCount(2)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabSphere.setVerticalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabSphere.setVerticalHeaderItem(1, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabSphere.setHorizontalHeaderItem(0, item)
|
||||
self.infoSphere = QtGui.QLabel(self.ongletSphere)
|
||||
self.infoSphere.setGeometry(QtCore.QRect(330, 0, 40, 25))
|
||||
self.infoSphere.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.infoSphere.setObjectName(_fromUtf8("infoSphere"))
|
||||
self.tabWidget.addTab(self.ongletSphere, _fromUtf8(""))
|
||||
self.ongletPerso = QtGui.QWidget()
|
||||
self.ongletPerso.setObjectName(_fromUtf8("ongletPerso"))
|
||||
self.tabPerso = QtGui.QTableWidget(self.ongletPerso)
|
||||
self.tabPerso.setGeometry(QtCore.QRect(0, 0, 375, 271))
|
||||
self.tabPerso.setMaximumSize(QtCore.QSize(16777215, 301))
|
||||
self.tabPerso.setObjectName(_fromUtf8("tabPerso"))
|
||||
self.tabPerso.setColumnCount(1)
|
||||
self.tabPerso.setRowCount(1)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
item.setFont(font)
|
||||
self.tabPerso.setVerticalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
font = QtGui.QFont()
|
||||
font.setBold(False)
|
||||
font.setWeight(50)
|
||||
item.setFont(font)
|
||||
self.tabPerso.setHorizontalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tabPerso.setItem(0, 0, item)
|
||||
self.infoCustom = QtGui.QLabel(self.ongletPerso)
|
||||
self.infoCustom.setGeometry(QtCore.QRect(330, 0, 40, 25))
|
||||
self.infoCustom.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.infoCustom.setObjectName(_fromUtf8("infoCustom"))
|
||||
self.tabWidget.addTab(self.ongletPerso, _fromUtf8(""))
|
||||
self.labelCrackName = QtGui.QLabel(self.frame_3)
|
||||
self.labelCrackName.setGeometry(QtCore.QRect(0, 0, 381, 28))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.labelCrackName.setFont(font)
|
||||
self.labelCrackName.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.labelCrackName.setObjectName(_fromUtf8("labelCrackName"))
|
||||
self.frame_4 = QtGui.QFrame(Zui)
|
||||
self.frame_4.setEnabled(True)
|
||||
self.frame_4.setGeometry(QtCore.QRect(317, 344, 388, 147))
|
||||
self.frame_4.setFrameShape(QtGui.QFrame.Panel)
|
||||
self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
|
||||
self.frame_4.setLineWidth(2)
|
||||
self.frame_4.setMidLineWidth(0)
|
||||
self.frame_4.setObjectName(_fromUtf8("frame_4"))
|
||||
self.CBAdvanced = QtGui.QCheckBox(self.frame_4)
|
||||
self.CBAdvanced.setGeometry(QtCore.QRect(6, 2, 171, 23))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.CBAdvanced.setFont(font)
|
||||
self.CBAdvanced.setObjectName(_fromUtf8("CBAdvanced"))
|
||||
self.widget = QtGui.QWidget(self.frame_4)
|
||||
self.widget.setGeometry(QtCore.QRect(0, 24, 427, 106))
|
||||
self.widget.setObjectName(_fromUtf8("widget"))
|
||||
self.gridLayoutWidget_9 = QtGui.QWidget(self.widget)
|
||||
self.gridLayoutWidget_9.setGeometry(QtCore.QRect(1, 35, 381, 40))
|
||||
self.gridLayoutWidget_9.setObjectName(_fromUtf8("gridLayoutWidget_9"))
|
||||
self.gridLayout_9 = QtGui.QGridLayout(self.gridLayoutWidget_9)
|
||||
self.gridLayout_9.setContentsMargins(10, 0, 10, 0)
|
||||
self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
|
||||
self.btVisu = QtGui.QPushButton(self.gridLayoutWidget_9)
|
||||
self.btVisu.setMinimumSize(QtCore.QSize(85, 28))
|
||||
self.btVisu.setMaximumSize(QtCore.QSize(85, 28))
|
||||
self.btVisu.setObjectName(_fromUtf8("btVisu"))
|
||||
self.gridLayout_9.addWidget(self.btVisu, 0, 0, 1, 1)
|
||||
self.txtSurfopt = QtGui.QLabel(self.gridLayoutWidget_9)
|
||||
self.txtSurfopt.setMinimumSize(QtCore.QSize(67, 28))
|
||||
self.txtSurfopt.setMaximumSize(QtCore.QSize(16777215, 28))
|
||||
self.txtSurfopt.setObjectName(_fromUtf8("txtSurfopt"))
|
||||
self.gridLayout_9.addWidget(self.txtSurfopt, 0, 1, 1, 1)
|
||||
self.valSurfopt = QtGui.QLineEdit(self.gridLayoutWidget_9)
|
||||
self.valSurfopt.setMinimumSize(QtCore.QSize(0, 28))
|
||||
self.valSurfopt.setMaximumSize(QtCore.QSize(16777215, 28))
|
||||
self.valSurfopt.setAutoFillBackground(True)
|
||||
self.valSurfopt.setText(_fromUtf8(""))
|
||||
self.valSurfopt.setObjectName(_fromUtf8("valSurfopt"))
|
||||
self.gridLayout_9.addWidget(self.valSurfopt, 0, 2, 1, 1)
|
||||
self.CBIs2D = QtGui.QCheckBox(self.widget)
|
||||
self.CBIs2D.setGeometry(QtCore.QRect(0, 80, 81, 26))
|
||||
self.CBIs2D.setObjectName(_fromUtf8("CBIs2D"))
|
||||
self.CBRefine = QtGui.QCheckBox(self.widget)
|
||||
self.CBRefine.setGeometry(QtCore.QRect(90, 80, 92, 26))
|
||||
self.CBRefine.setObjectName(_fromUtf8("CBRefine"))
|
||||
self.gridLayoutWidget_8 = QtGui.QWidget(self.widget)
|
||||
self.gridLayoutWidget_8.setGeometry(QtCore.QRect(2, 6, 381, 30))
|
||||
self.gridLayoutWidget_8.setObjectName(_fromUtf8("gridLayoutWidget_8"))
|
||||
self.gridLayout_8 = QtGui.QGridLayout(self.gridLayoutWidget_8)
|
||||
self.gridLayout_8.setContentsMargins(10, 0, 10, 0)
|
||||
self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
|
||||
self.txtGradation = QtGui.QLabel(self.gridLayoutWidget_8)
|
||||
self.txtGradation.setMinimumSize(QtCore.QSize(0, 28))
|
||||
self.txtGradation.setObjectName(_fromUtf8("txtGradation"))
|
||||
self.gridLayout_8.addWidget(self.txtGradation, 0, 0, 1, 1)
|
||||
self.valGradation = QtGui.QLineEdit(self.gridLayoutWidget_8)
|
||||
self.valGradation.setMinimumSize(QtCore.QSize(40, 28))
|
||||
self.valGradation.setAutoFillBackground(True)
|
||||
self.valGradation.setObjectName(_fromUtf8("valGradation"))
|
||||
self.gridLayout_8.addWidget(self.valGradation, 0, 1, 1, 1)
|
||||
self.txtLayers = QtGui.QLabel(self.gridLayoutWidget_8)
|
||||
self.txtLayers.setMinimumSize(QtCore.QSize(50, 28))
|
||||
self.txtLayers.setObjectName(_fromUtf8("txtLayers"))
|
||||
self.gridLayout_8.addWidget(self.txtLayers, 0, 2, 1, 1)
|
||||
self.txtIterations = QtGui.QLabel(self.gridLayoutWidget_8)
|
||||
self.txtIterations.setMinimumSize(QtCore.QSize(69, 0))
|
||||
self.txtIterations.setMaximumSize(QtCore.QSize(16777215, 28))
|
||||
self.txtIterations.setObjectName(_fromUtf8("txtIterations"))
|
||||
self.gridLayout_8.addWidget(self.txtIterations, 0, 4, 1, 1)
|
||||
self.valLayers = QtGui.QLineEdit(self.gridLayoutWidget_8)
|
||||
self.valLayers.setMinimumSize(QtCore.QSize(30, 28))
|
||||
self.valLayers.setMaximumSize(QtCore.QSize(35, 16777215))
|
||||
self.valLayers.setAutoFillBackground(True)
|
||||
self.valLayers.setObjectName(_fromUtf8("valLayers"))
|
||||
self.gridLayout_8.addWidget(self.valLayers, 0, 3, 1, 1)
|
||||
self.valIterations = QtGui.QLineEdit(self.gridLayoutWidget_8)
|
||||
self.valIterations.setMinimumSize(QtCore.QSize(30, 28))
|
||||
self.valIterations.setMaximumSize(QtCore.QSize(30, 28))
|
||||
self.valIterations.setAutoFillBackground(True)
|
||||
self.valIterations.setObjectName(_fromUtf8("valIterations"))
|
||||
self.gridLayout_8.addWidget(self.valIterations, 0, 5, 1, 1)
|
||||
|
||||
self.retranslateUi(Zui)
|
||||
self.tabWidget.setCurrentIndex(2)
|
||||
QtCore.QMetaObject.connectSlotsByName(Zui)
|
||||
|
||||
def retranslateUi(self, Zui):
|
||||
Zui.setWindowTitle(_translate("Zui", "Zcracks interface - version dev", None))
|
||||
self.btReset.setToolTip(_translate("Zui", "Clear all parameters", None))
|
||||
self.btReset.setText(_translate("Zui", "Reset", None))
|
||||
self.btSave.setToolTip(_translate("Zui", "Save parameters in a file", None))
|
||||
self.btSave.setText(_translate("Zui", "Save", None))
|
||||
self.btLoad.setToolTip(_translate("Zui", "Load all parameters from a file", None))
|
||||
self.btLoad.setText(_translate("Zui", "Load", None))
|
||||
self.btCancel.setToolTip(_translate("Zui", "Exit Zcracks", None))
|
||||
self.btCancel.setText(_translate("Zui", "Cancel", None))
|
||||
self.btApply.setToolTip(_translate("Zui", "Launch crack insertion", None))
|
||||
self.btApply.setText(_translate("Zui", "Apply", None))
|
||||
self.btApplyClose.setToolTip(_translate("Zui", "Launch crack insertion and quit", None))
|
||||
self.btApplyClose.setText(_translate("Zui", "Apply and close", None))
|
||||
self.txtCrackedName.setToolTip(_translate("Zui", "Name of the resulting cracked mesh", None))
|
||||
self.txtCrackedName.setText(_translate("Zui", "Cracked name", None))
|
||||
self.valCrackedName.setToolTip(_translate("Zui", "file address (ex: /home/A123456/cracked.med)", None))
|
||||
self.txtSaneName.setToolTip(_translate("Zui", "Name of the sane mesh", None))
|
||||
self.txtSaneName.setText(_translate("Zui", "Sane mesh", None))
|
||||
self.btLoadCracked.setText(_translate("Zui", "...", None))
|
||||
self.btLoadSane.setText(_translate("Zui", "...", None))
|
||||
self.cracked_name_2.setToolTip(_translate("Zui", "General parameters", None))
|
||||
self.cracked_name_2.setText(_translate("Zui", "Mesh parameters", None))
|
||||
self.txtMaxSize.setToolTip(_translate("Zui", "Maximum mesh size", None))
|
||||
self.txtMaxSize.setText(_translate("Zui", "Maximum size", None))
|
||||
self.txtExtractLength.setToolTip(_translate("Zui", "Extraction length (optionnal)", None))
|
||||
self.txtExtractLength.setText(_translate("Zui", "Extraction length", None))
|
||||
self.valMinSize.setToolTip(_translate("Zui", "float (ex: 1.E-04)", None))
|
||||
self.valMaxSize.setToolTip(_translate("Zui", "float (ex: 1.E-03)", None))
|
||||
self.valExtractLength.setToolTip(_translate("Zui", "float (ex: 1.E-04)", None))
|
||||
self.CBQuad.setToolTip(_translate("Zui", "Quadratic cracked mesh", None))
|
||||
self.CBQuad.setText(_translate("Zui", "Quadratic", None))
|
||||
self.CBBarsoum.setToolTip(_translate("Zui", "Use Barsoum (quarter nodes) elements at crack front", None))
|
||||
self.CBBarsoum.setText(_translate("Zui", "Barsoum", None))
|
||||
self.txtMinSize.setToolTip(_translate("Zui", "Minimum mesh size", None))
|
||||
self.txtMinSize.setText(_translate("Zui", "Minimum size", None))
|
||||
self.labelCrackedName.setToolTip(_translate("Zui", "Groups to save (limit list to vital groups)", None))
|
||||
self.labelCrackedName.setText(_translate("Zui", "Groups", None))
|
||||
self.txtGrVol.setToolTip(_translate("Zui", "Groups of volumes to keep", None))
|
||||
self.txtGrVol.setText(_translate("Zui", "Volumes", None))
|
||||
self.valGrVol.setToolTip(_translate("Zui", "groups separated by a space (ex: Gr1 Gr2 Gr3)", None))
|
||||
self.txtGrFace.setText(_translate("Zui", "Faces", None))
|
||||
self.txtGrEdge.setToolTip(_translate("Zui", "Groups of edges to keep", None))
|
||||
self.txtGrEdge.setText(_translate("Zui", "Edges", None))
|
||||
self.valGrEdge.setToolTip(_translate("Zui", "groups separated by a space (ex: Gr1 Gr2 Gr3)", None))
|
||||
self.txtGrNode.setToolTip(_translate("Zui", "Groups of nodes to keep", None))
|
||||
self.txtGrNode.setText(_translate("Zui", "Nodes", None))
|
||||
self.valGrNode.setToolTip(_translate("Zui", "groups separated by a space (ex: Gr1 Gr2 Gr3)", None))
|
||||
self.btGrVol.setText(_translate("Zui", "Load", None))
|
||||
self.btGrFace.setText(_translate("Zui", "Load", None))
|
||||
self.btGrEdge.setText(_translate("Zui", "Load", None))
|
||||
self.btGrNode.setText(_translate("Zui", "Load", None))
|
||||
self.btGrAll.setText(_translate("Zui", "Load all", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "Centre", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(1)
|
||||
item.setText(_translate("Zui", "Normale", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(2)
|
||||
item.setText(_translate("Zui", "Rayon", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(3)
|
||||
item.setText(_translate("Zui", "Direction", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(4)
|
||||
item.setText(_translate("Zui", "Rayon 2", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(5)
|
||||
item.setText(_translate("Zui", "Angle", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(6)
|
||||
item.setText(_translate("Zui", "Rayon entaille", None))
|
||||
item = self.tabEllipse.verticalHeaderItem(7)
|
||||
item.setText(_translate("Zui", "Extension", None))
|
||||
item = self.tabEllipse.horizontalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "Valeur", None))
|
||||
__sortingEnabled = self.tabEllipse.isSortingEnabled()
|
||||
self.tabEllipse.setSortingEnabled(False)
|
||||
self.tabEllipse.setSortingEnabled(__sortingEnabled)
|
||||
self.infoEllipse.setToolTip(_translate("Zui", "<html><head/><body><p><span style=\" font-weight:600; text-decoration: underline;\">Fissure de forme elliptique :</span></p><p><img src=\":/newPrefix/images/schema_ellipse.png\"/><br/></p><p><span style=\" font-weight:600; text-decoration: underline;\">Centre</span> : Coordonnées du centre de l\'ellipse (ex: 0 0 1)</p><p><span style=\" font-weight:600; text-decoration: underline;\">Normale</span> : Coordonnées du vecteur normal à l\'ellipse (ex: 1 0 0)</p><p><span style=\" font-weight:600; text-decoration: underline;\">Rayon</span> : Rayon de l\'ellipse le long du vecteur direction (ex: 1.0e1)</p><p><span style=\" text-decoration: underline;\">Direction</span> : Coordonnées du vecteur direction de l\'ellipse (ex: 0 1 0). Nécessaire pour une ellipse</p><p><span style=\" text-decoration: underline;\">Rayon 2</span> : Rayon de l\'ellipse le long du vecteur orthogonal à normale et direction (ex: 1.0e1). Si vide égal à Rayon</p><p><span style=\" text-decoration: underline;\">Angle</span> : Angle en degrés pour une ellipse tronquée (ex: 180.). Si vide, l\'ellipse n\'est pas tronquée</p><p><span style=\" text-decoration: underline;\">Rayon entaille</span> : Rayon du fond d\'entaille. (ex: 1.0e1). Si vide, la fissure est plane sans entaille</p><p><span style=\" text-decoration: underline;\">Extension</span> : Longueur d\'extension de l\'ellipse tronquée dans le long de la direction opposée à Direction (ex: 1.0)</p><p><span style=\" font-weight:600; font-style:italic;\">Gras : Informations obligatoires</span></p></body></html>", None))
|
||||
self.infoEllipse.setText(_translate("Zui", "?", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.ongletEllipse), _translate("Zui", "Ellipse", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "Centre", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(1)
|
||||
item.setText(_translate("Zui", "Normale", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(2)
|
||||
item.setText(_translate("Zui", "Longueur", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(3)
|
||||
item.setText(_translate("Zui", "Direction", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(4)
|
||||
item.setText(_translate("Zui", "Largeur", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(5)
|
||||
item.setText(_translate("Zui", "Rayon", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(6)
|
||||
item.setText(_translate("Zui", "Angle", None))
|
||||
item = self.tabRectangle.verticalHeaderItem(7)
|
||||
item.setText(_translate("Zui", "Rayon entaille", None))
|
||||
item = self.tabRectangle.horizontalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "Valeur", None))
|
||||
__sortingEnabled = self.tabRectangle.isSortingEnabled()
|
||||
self.tabRectangle.setSortingEnabled(False)
|
||||
self.tabRectangle.setSortingEnabled(__sortingEnabled)
|
||||
self.infoRectangle.setToolTip(_translate("Zui", "<html><head/><body><p><span style=\" font-weight:600; text-decoration: underline;\">Fissure de forme rectangulaire :</span></p><p><img src=\":/newPrefix/images/schema_rectangle.png\"/><br/></p><p><span style=\" font-weight:600; text-decoration: underline;\">Centre</span> : Coordonnées du centre du rectangle (ex: 0 0 1)</p><p><span style=\" font-weight:600; text-decoration: underline;\">Normale</span> : Coordonnées du vecteur normal au rectangle (ex: 1 0 0)</p><p><span style=\" font-weight:600; text-decoration: underline;\">Longueur</span> : Demie longueur du rectangle le long du vecteur direction (ex: 1.0e1)</p><p><span style=\" font-weight:600; text-decoration: underline;\">Direction</span> : Coordonnées du vecteur direction du rectangle (ex: 0 1 0)</p><p><span style=\" text-decoration: underline;\">Largeur</span> : Demie largeur du rectangle le long du vecteur orthogonal à normale et direction (ex: 1.0e1). Si vide, égal à Longueur</p><p><span style=\" text-decoration: underline;\">Rayon </span>: Rayon du congé aux angles du rectangle (ex: 1.0e1). Si vide, pas de congé</p><p><span style=\" text-decoration: underline;\">Angle</span> : Angle en degrés pour un rectangle tronqué (ex: 180.). Si vide, le rectangle n\'est pas tronquée</p><p><span style=\" text-decoration: underline;\">Rayon entaille</span> : Rayon du fond d\'entaille. (ex: 1.0e1). Si vide, la fissure est plane sans entaille</p><p><span style=\" font-weight:600; font-style:italic;\">Gras : Informations obligatoires</span></p></body></html>", None))
|
||||
self.infoRectangle.setText(_translate("Zui", "?", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.ongletRectangle), _translate("Zui", "Rectangle", None))
|
||||
item = self.tabSphere.verticalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "Centre", None))
|
||||
item = self.tabSphere.verticalHeaderItem(1)
|
||||
item.setText(_translate("Zui", "Rayon", None))
|
||||
item = self.tabSphere.horizontalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "Valeur", None))
|
||||
self.infoSphere.setToolTip(_translate("Zui", "<html><head/><body><p><span style=\" font-weight:600; text-decoration: underline;\">Fissure de forme spherique :</span></p><p><img src=\":/newPrefix/images/schema_shpere.png\"/><br/></p><p><span style=\" font-weight:600; text-decoration: underline;\">Centre</span> : Coordonnées du centre de la sphere (ex: 0 0 1)</p><p><span style=\" font-weight:600; text-decoration: underline;\">Rayon</span> : Rayon de la sphere (ex: 1.0e1)</p><p><span style=\" font-weight:600; font-style:italic;\">Gras : Informations obligatoires</span></p></body></html>", None))
|
||||
self.infoSphere.setText(_translate("Zui", "?", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.ongletSphere), _translate("Zui", "Sphere", None))
|
||||
item = self.tabPerso.verticalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "med file", None))
|
||||
item = self.tabPerso.horizontalHeaderItem(0)
|
||||
item.setText(_translate("Zui", "File", None))
|
||||
__sortingEnabled = self.tabPerso.isSortingEnabled()
|
||||
self.tabPerso.setSortingEnabled(False)
|
||||
self.tabPerso.setSortingEnabled(__sortingEnabled)
|
||||
self.infoCustom.setToolTip(_translate("Zui", "<html><head/><body><p><span style=\" font-weight:600; text-decoration: underline;\">Fissure de forme personnalisée :</span></p><p><span style=\" font-weight:600; text-decoration: underline;\">Med file</span> : Adresse du maillage décrivant la fissure (ex: $HOME/PROJETX/fissure3.med)</p><p><span style=\" font-style:italic;\">Le maillage de la fissure doit être une surface composée de tétrahèdres linéaires uniquement.</span></p><p><span style=\" font-weight:600; font-style:italic;\">Gras : Informations obligatoires</span></p></body></html>", None))
|
||||
self.infoCustom.setText(_translate("Zui", "?", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.ongletPerso), _translate("Zui", "Custom", None))
|
||||
self.labelCrackName.setToolTip(_translate("Zui", "Crack automatic generation", None))
|
||||
self.labelCrackName.setText(_translate("Zui", "Crack", None))
|
||||
self.CBAdvanced.setToolTip(_translate("Zui", "Advanced options (Use with caution)", None))
|
||||
self.CBAdvanced.setText(_translate("Zui", "Advanced options", None))
|
||||
self.btVisu.setToolTip(_translate("Zui", "Load all parameters from a file", None))
|
||||
self.btVisu.setText(_translate("Zui", "Quick View", None))
|
||||
self.txtSurfopt.setToolTip(_translate("Zui", "SURFOPT options", None))
|
||||
self.txtSurfopt.setText(_translate("Zui", "SURFOPT", None))
|
||||
self.valSurfopt.setToolTip(_translate("Zui", "string", None))
|
||||
self.CBIs2D.setToolTip(_translate("Zui", "Check if sane mesh is a surface", None))
|
||||
self.CBIs2D.setText(_translate("Zui", "2D case", None))
|
||||
self.CBRefine.setToolTip(_translate("Zui", "Check to refine sane mesh before crack insertion", None))
|
||||
self.CBRefine.setText(_translate("Zui", "Pre refine", None))
|
||||
self.txtGradation.setToolTip(_translate("Zui", "Mesh increase parameter", None))
|
||||
self.txtGradation.setText(_translate("Zui", "Gradation", None))
|
||||
self.valGradation.setToolTip(_translate("Zui", "float (ex: 1.3)", None))
|
||||
self.valGradation.setText(_translate("Zui", "1.3", None))
|
||||
self.txtLayers.setToolTip(_translate("Zui", "Constant size layers number", None))
|
||||
self.txtLayers.setText(_translate("Zui", "Layers", None))
|
||||
self.txtIterations.setToolTip(_translate("Zui", "Remeshing iterations number", None))
|
||||
self.txtIterations.setText(_translate("Zui", "Iterations", None))
|
||||
self.valLayers.setToolTip(_translate("Zui", "integer (ex: 5)", None))
|
||||
self.valLayers.setText(_translate("Zui", "5", None))
|
||||
self.valIterations.setToolTip(_translate("Zui", "integer (ex: 2)", None))
|
||||
self.valIterations.setText(_translate("Zui", "2", None))
|
||||
|
||||
from . import images_rc
|
@ -39,7 +39,7 @@ SET(_pyuic_files
|
||||
)
|
||||
|
||||
# scripts / pyuic wrappings
|
||||
PYQT_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files})
|
||||
PYQT_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files} OPTIONS "--import-from=blocFissure" "--resource-suffix=_qrc")
|
||||
|
||||
# --- rules ---
|
||||
|
||||
|
@ -22,10 +22,13 @@
|
||||
# if you already have plugins defined in a salome_plugins.py file, add this file at the end.
|
||||
# if not, copy this file as ${HOME}/Plugins/smesh_plugins.py or ${APPLI}/Plugins/smesh_plugins.py
|
||||
|
||||
import sys, traceback
|
||||
import math
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
from blocFissure import gmu
|
||||
|
||||
|
||||
def fissureCoudeDlg(context):
|
||||
# get context study, studyId, salomeGui
|
||||
study = context.study
|
||||
@ -36,7 +39,7 @@ def fissureCoudeDlg(context):
|
||||
#import subprocess
|
||||
#import tempfile
|
||||
from qtsalome import QFileDialog, QMessageBox, QPalette, QColor, QDialog
|
||||
from fissureCoude_ui import Ui_Dialog
|
||||
from blocFissure.ihm.fissureCoude_ui import Ui_Dialog
|
||||
|
||||
class fissureCoudeDialog(QDialog):
|
||||
|
||||
@ -259,15 +262,14 @@ def fissureCoudeDlg(context):
|
||||
|
||||
def writeDefault(self, dico):
|
||||
filedef = self.fileDefault()
|
||||
f = open(filedef, 'w')
|
||||
f.write(str(dico))
|
||||
f.close()
|
||||
with open(filedef, 'w') as f:
|
||||
f.write(str(dico))
|
||||
|
||||
def readValPrec(self):
|
||||
filedef = self.fileDefault()
|
||||
if os.path.exists(filedef):
|
||||
f = open(filedef, 'r')
|
||||
txt = f.read()
|
||||
with open(filedef, 'r') as f:
|
||||
txt = f.read()
|
||||
dico = eval(txt)
|
||||
print(dico)
|
||||
self.initDialog(dico)
|
||||
@ -286,9 +288,8 @@ def fissureCoudeDlg(context):
|
||||
fileNames = fileDiag.selectedFiles()
|
||||
filedef = fileNames[0]
|
||||
dico = self.creeDico()
|
||||
f = open(filedef, 'w')
|
||||
f.write(str(dico))
|
||||
f.close()
|
||||
with open(filedef, 'w') as f:
|
||||
f.write(str(dico))
|
||||
|
||||
def recharger(self):
|
||||
print("recharger")
|
||||
@ -301,8 +302,8 @@ def fissureCoudeDlg(context):
|
||||
filedef = fileNames[0]
|
||||
print(filedef)
|
||||
if os.path.exists(filedef):
|
||||
f = open(filedef, 'r')
|
||||
txt = f.read()
|
||||
with open(filedef, 'r') as f:
|
||||
txt = f.read()
|
||||
dico = eval(txt)
|
||||
print(dico)
|
||||
self.initDialog(dico)
|
||||
|
@ -42,7 +42,7 @@ def fissureGeneraleDlg(context):
|
||||
from PyQt5.QtWidgets import QMessageBox
|
||||
from PyQt5.QtGui import QPalette
|
||||
from PyQt5.QtGui import QColor
|
||||
from fissureGenerale_ui import Ui_Dialog
|
||||
from blocFissure.ihm.fissureGenerale_ui import Ui_Dialog
|
||||
|
||||
class fissureGeneraleDialog(QtWidgets.QDialog):
|
||||
|
||||
@ -181,9 +181,8 @@ def fissureGeneraleDlg(context):
|
||||
|
||||
def writeDefault(self, dico):
|
||||
filedef = self.fileDefault()
|
||||
f = open(filedef, 'w')
|
||||
f.write(str(dico))
|
||||
f.close()
|
||||
with open(filedef, 'w') as f:
|
||||
f.write(str(dico))
|
||||
|
||||
def genereExemples(self):
|
||||
maillageSain = os.path.join(gmu.pathBloc, 'materielCasTests/CubeAngle.med')
|
||||
@ -200,8 +199,8 @@ def fissureGeneraleDlg(context):
|
||||
def readValPrec(self):
|
||||
filedef = self.fileDefault()
|
||||
if os.path.exists(filedef):
|
||||
f = open(filedef, 'r')
|
||||
txt = f.read()
|
||||
with open(filedef, 'r') as f:
|
||||
txt = f.read()
|
||||
dico = eval(txt)
|
||||
print(dico)
|
||||
self.initDialog(dico)
|
||||
@ -236,9 +235,8 @@ def fissureGeneraleDlg(context):
|
||||
if filedef[-4:] not in ['.dic']:
|
||||
filedef += '.dic'
|
||||
dico = self.creeDico()
|
||||
f = open(filedef, 'w')
|
||||
f.write(str(dico))
|
||||
f.close()
|
||||
with open(filedef, 'w') as f:
|
||||
f.write(str(dico))
|
||||
|
||||
def recharger(self):
|
||||
print("recharger")
|
||||
@ -251,8 +249,8 @@ def fissureGeneraleDlg(context):
|
||||
filedef = fileNames[0]
|
||||
print(filedef)
|
||||
if os.path.exists(filedef):
|
||||
f = open(filedef, 'r')
|
||||
txt = f.read()
|
||||
with open(filedef, 'r') as f:
|
||||
txt = f.read()
|
||||
dico = eval(txt)
|
||||
print(dico)
|
||||
self.initDialog(dico)
|
||||
|
@ -32,8 +32,8 @@ from omniORB import CORBA
|
||||
|
||||
from qtsalome import QIcon, QStandardItemModel, QStandardItem, QMessageBox, pyqtSignal
|
||||
|
||||
from inputframe_ui import Ui_InputFrame
|
||||
from .inputdata import InputData
|
||||
from salome.smesh.spadder.gui.inputframe_ui import Ui_InputFrame
|
||||
from salome.smesh.spadder.gui.inputdata import InputData
|
||||
|
||||
DEBUG_MODE=True
|
||||
GROUPNAME_MAXLENGTH=8
|
||||
|
@ -22,9 +22,9 @@
|
||||
|
||||
from qtsalome import QDialog, QIcon, Qt
|
||||
|
||||
from plugindialog_ui import Ui_PluginDialog
|
||||
from .inputdialog import InputDialog
|
||||
from .inputdata import InputData
|
||||
from salome.smesh.spadder.gui.plugindialog_ui import Ui_PluginDialog
|
||||
from salome.smesh.spadder.gui.inputdialog import InputDialog
|
||||
from salome.smesh.spadder.gui.inputdata import InputData
|
||||
# __GBO__: uncomment this line and comment the previous one to use the
|
||||
# demo input dialog instead of the real one.
|
||||
#from demoinputdialog import InputDialog
|
||||
|
@ -27,8 +27,8 @@ try:
|
||||
salome_pluginsmanager.AddFunction('PADDER mesher',
|
||||
'Create a mesh with PADDER',
|
||||
runSpadderPlugin)
|
||||
except:
|
||||
salome_pluginsmanager.logger.info('ERROR: PADDER mesher plug-in is unavailable')
|
||||
except Exception as e:
|
||||
salome_pluginsmanager.logger.info('ERROR: PADDER mesher plug-in is unavailable: {}'.format(e))
|
||||
pass
|
||||
|
||||
try:
|
||||
@ -37,8 +37,8 @@ try:
|
||||
'Cut a tetrahedron mesh by a plane',
|
||||
MeshCut)
|
||||
|
||||
except:
|
||||
salome_pluginsmanager.logger.info('ERROR: MeshCut plug-in is unavailable')
|
||||
except Exception as e:
|
||||
salome_pluginsmanager.logger.info('ERROR: MeshCut plug-in is unavailable: {}'.format(e))
|
||||
pass
|
||||
|
||||
try:
|
||||
@ -46,8 +46,8 @@ try:
|
||||
salome_pluginsmanager.AddFunction('ReMesh with MGSurfOpt',
|
||||
'Run Yams',
|
||||
YamsLct)
|
||||
except:
|
||||
salome_pluginsmanager.logger.info('ERROR: MGSurfOpt plug-in is unavailable')
|
||||
except Exception as e:
|
||||
salome_pluginsmanager.logger.info('ERROR: MGSurfOpt plug-in is unavailable: {}'.format(e))
|
||||
pass
|
||||
|
||||
try:
|
||||
@ -55,8 +55,8 @@ try:
|
||||
salome_pluginsmanager.AddFunction('ReMesh with MGCleaner',
|
||||
'Run MGCleaner',
|
||||
MGCleanerLct)
|
||||
except:
|
||||
salome_pluginsmanager.logger.info('ERROR: MGCleaner plug-in is unavailable')
|
||||
except Exception as e:
|
||||
salome_pluginsmanager.logger.info('ERROR: MGCleaner plug-in is unavailable: {}'.format(e))
|
||||
pass
|
||||
|
||||
try:
|
||||
@ -64,16 +64,16 @@ try:
|
||||
salome_pluginsmanager.AddFunction('Meshed Pipe with a crack (blocFissure plugin)',
|
||||
'Create a mesh with blocFissure tool',
|
||||
fissureCoudeDlg)
|
||||
except:
|
||||
salome_pluginsmanager.logger.info('ERROR: Meshed Pipe with a crack plug-in is unavailable')
|
||||
except Exception as e:
|
||||
salome_pluginsmanager.logger.info('ERROR: Meshed Pipe with a crack plug-in is unavailable: {}'.format(e))
|
||||
pass
|
||||
try:
|
||||
from blocFissure.ihm.fissureGenerale_plugin import fissureGeneraleDlg
|
||||
salome_pluginsmanager.AddFunction('Add a crack in a mesh (blocFissure plugin)',
|
||||
'Insert a crack in an hexahedral mesh with blocFissure tool',
|
||||
fissureGeneraleDlg)
|
||||
except:
|
||||
salome_pluginsmanager.logger.info('ERROR: Meshed Pipe with a crack plug-in is unavailable')
|
||||
except Exception as e:
|
||||
salome_pluginsmanager.logger.info('ERROR: Meshed Pipe with a crack plug-in is unavailable: {}'.format(e))
|
||||
pass
|
||||
|
||||
# ZCracks plugin requires the Zcracks tool
|
||||
@ -85,7 +85,7 @@ try:
|
||||
salome_pluginsmanager.AddFunction('Run Zcrack',
|
||||
'Run Zcrack',
|
||||
ZcracksLct)
|
||||
except:
|
||||
except Exception as e:
|
||||
#print 'probleme zcracks'
|
||||
salome_pluginsmanager.logger.info('ERROR: Zcrack plug-in is unavailable')
|
||||
salome_pluginsmanager.logger.info('ERROR: Zcrack plug-in is unavailable: {}'.format(e))
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user