From: asl Date: Wed, 12 Oct 2016 05:36:24 +0000 (+0300) Subject: Lot 6: GUI for interpolz X-Git-Tag: v1.6~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e28010cc0833ea3a03473403c28a2e2818f6fab0;p=modules%2Fhydrosolver.git Lot 6: GUI for interpolz --- diff --git a/src/salome_hydro/interpolz.ui b/src/salome_hydro/interpolz.ui new file mode 100644 index 0000000..f3b1c17 --- /dev/null +++ b/src/salome_hydro/interpolz.ui @@ -0,0 +1,177 @@ + + + Dialog + + + + 0 + 0 + 656 + 500 + + + + Dialog + + + + + + + + Calculation case: + + + + + + + + + + + + Paths + + + + + + + + Output path: + + + + + + + + + + MED file: + + + + + + + + + + ... + + + + + + + ... + + + + + + + + + + + + Parameters + + + + + + + + Undefined Z: + + + + + + + + + + Interpolation method: + + + + + + + + + + + + + + + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + 0 + + + 0 + + + + + Apply and Close + + + + + + + Apply + + + + + + + Close + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Help + + + + + + + + + + + diff --git a/src/salome_hydro/interpolz_gui.py b/src/salome_hydro/interpolz_gui.py new file mode 100644 index 0000000..7e507f0 --- /dev/null +++ b/src/salome_hydro/interpolz_gui.py @@ -0,0 +1,23 @@ + +import sys, os +from PyQt4 import QtCore, QtGui + +class InterpolzDlg( QtGui.QDialog ): + + def __init__(self, parent = None): + QtGui.QDialog.__init__( self, parent ) + + +#app = QtGui.QApplication( sys.argv ) +#dlg = InterpolzDlg() +#dlg.show() +#app.exec_() + +sys.path.append(os.path.join(os.environ['MEDFILE_ROOT_DIR'], 'lib\python2.7\site-packages\med')) +import medfile +import medmesh +import medenum + +file_path = "c:/hydro/channel.med" +f = medfile.MEDfileOpen(str(file_path), medenum.MED_ACC_RDEXT) +print medmesh.MEDmeshInfo(fid, 1)