From 55910e3056d22d6d033156600359b2c1574e80fa Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 5 Aug 2008 12:15:59 +0000 Subject: [PATCH] 0016187: EDF PAL 460: To be able to export a MED file saved in a HDF study --- doc/salome/gui/VISU/images/exportmedfile.png | Bin 0 -> 24416 bytes .../gui/VISU/input/importing_med_objects.doc | 12 ++++- idl/VISU_Gen.idl | 3 ++ src/VISUGUI/VisuGUI.cxx | 46 ++++++++++++++++++ src/VISUGUI/VisuGUI.h | 1 + src/VISUGUI/VisuGUI_ActionsDef.h | 1 + src/VISU_I/VISU_Result_i.cc | 19 ++++++++ src/VISU_I/VISU_Result_i.hh | 4 ++ 8 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 doc/salome/gui/VISU/images/exportmedfile.png diff --git a/doc/salome/gui/VISU/images/exportmedfile.png b/doc/salome/gui/VISU/images/exportmedfile.png new file mode 100644 index 0000000000000000000000000000000000000000..c2fc56fdec75bf41714a09070e058872c535839f GIT binary patch literal 24416 zcmbTebyQVt_b$AVmQ-mFL?xuVLqJfZMA&pncXuiXNJ@8ii*$E)cXxN!x%czD?>XNY z3ck9(rdJ1FT4XXZX~Cad{VKEliH*B6 zjlS}_Ii;ne)zV5L=8~2T-E+9)sDp7SO2-cyYONqKnS%QxD-|v-%X6do102$vH_5%{ z-O>WiG|$oqdKLSNxHkc>I^l2>NrRUN=7h|4a%onC$JkKJcb*KeI_qGrx8T?AR!Tn3 zp%hvFkb+L+8VeBqJW4Li7UU#cI^;jwROEQS+T?#J+wGR~*yxk+`qO|<|HsrOWp_eT z%B|7oc=t%T*Ea^@?`}$a(*$|v*^AS$8_td>B8yK)2Fqm{3)pB>6#7!4hDXezDj?%J zAKQQSXFSsyLE%hz)kGj^X#;`7$zWI3&t4`h>(9hx z!xei6Ul@r|wm_U!BR$%8zuJ#^m_7=|*8l$akX3nd;OD#UlIjt$U_Bd&skzUasF8w-RO!pH z?990xyz1<1juD5rJL^&Maj`+$^MSkRzW#jk@X=c{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>`3HIrh& z0mj4}nwXqyw74)FynR($Tifo})K$Rjq<^ND(EZeINv7DVm@h|D>5G<@M|-y5Y2ZCk zn{U+bF)6k4%nnj+p}kZ!Ffj0EzBg*_tD4Hr2BCW>3LKW&nul!a2^UgTp&Dc{sr2-$ z>kaSE(7L*Mt40vyzW9J}Qppu#r~KN6wim&V?M5389_2f#voORn^lS$FA^GN{Zlv2B zx7(IQb$5!8l~yA(Gt0=#H2he#Ysj63hPHn`EiTFVnVPe`lige70|5sZLAc(|Rg)L= zzv57udbHZPOBYu;reJDo)gYxqWj=O)bV=q&Z zc&%x^deU)Nz2Fy_q(} z0k%0F6=nL0yW>K6c!@dzsj9;mf9wfz>FMc2jDV!n>2Dr@jzbx)%_b}?ETes$Ue5X{ zYD-Vnj)e|X`WaeUR^Q#d@)+K0Xeogn6csgyFro6*x9dqun!oT;&H*6 zLsV#$zHCA|F4zJO%luMb;?7(xin>yG)2A%j>(5XF2%)EEt*nyUWAscrrK`v_*tLHo zN`UJ)76!8IC)ntqjGE6u*Kp-edXz)gBJiQDf(Pc=#^ zI;B_OXQrfpNx5^+E*ZQPcg%RagDo-OROk=KsFBc_2dj*Ld2ZK3<284WA2ux`u{9<;;>w>cQLmp!%1@$+Ok#IX!g(R9p)GrJikn*_$)P*Qz|O*g4s8 z%od(^r=02*;yj9=iGdG`}gmcHU2LZ#9l>{iUFgV z|Cg8oTXgT~rrZfmlmBu?{^QjA|0RhuLl~|ck0Us%jb~U@1HV5#Nsw8@G2_&!AJ=-2eap literal 0 HcmV?d00001 diff --git a/doc/salome/gui/VISU/input/importing_med_objects.doc b/doc/salome/gui/VISU/input/importing_med_objects.doc index e4f00bba..e6a53c31 100644 --- a/doc/salome/gui/VISU/input/importing_med_objects.doc +++ b/doc/salome/gui/VISU/input/importing_med_objects.doc @@ -1,6 +1,6 @@ /*! -\page importing_med_objects_page Importing MED objects +\page importing_med_objects_page Import/Export MED objects \n There exist two sources of \ref structure_of_med_objects_page "MED objects": MED and other Salome components publishing them and MED files. @@ -77,4 +77,14 @@ highest and the lowest value. \b Time - shows the Elapsed time spent by the application on processing. +To export a MED file: +\par +Right-click on the top level of MED object in the Object Browser and select Export to MED +File option. When you do so you will see a standard dialog box where you can select the +path and change the name of the exported MED file: + +\image html exportmedfile.png + +To complete file export click Save. + */ \ No newline at end of file diff --git a/idl/VISU_Gen.idl b/idl/VISU_Gen.idl index 36b383b4..a0484262 100644 --- a/idl/VISU_Gen.idl +++ b/idl/VISU_Gen.idl @@ -1916,6 +1916,9 @@ module VISU { /*! Gets information about imported MED file */ SALOME_MED::MedFileInfo GetMEDFileInfo(); + + /*! Export MED file from temp object. */ + boolean ExportMED(in string theFileName); }; //------------------------------------------------------- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 109c8242..202faadc 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2505,6 +2505,10 @@ VisuGUI createAction( VISU_FILE_INFO, tr("MEN_FILE_INFO"), QIcon(), tr("MEN_FILE_INFO"), "", 0, aParent, false, this, SLOT(OnFileInfo())); + + createAction( VISU_EXPORT_MED, tr("MEN_EXPORT_MED"), QIcon(), + tr("MEN_EXPORT_MED"), "", 0, aParent, false, + this, SLOT(OnExportMED())); } void @@ -2689,6 +2693,7 @@ VisuGUI mgr->insert( action( VISU_MULTIPR_HIDE ), -1, -1, -1 ); mgr->insert( action( VISU_FILE_INFO ), -1, -1, -1 ); + mgr->insert( action( VISU_EXPORT_MED ), -1, -1, -1 ); // Rules @@ -2892,6 +2897,7 @@ VisuGUI } mgr->setRule( action( VISU_FILE_INFO ), "selcount=1 and type in {'VISU::TRESULT'}" ); + mgr->setRule( action( VISU_EXPORT_MED ), "selcount=1 and type in {'VISU::TRESULT'}" ); } //*************************************************************************** @@ -3913,3 +3919,43 @@ void VisuGUI::OnFileInfo() VisuGUI_FileInfoDlg dlg( getApp()->desktop(), aCResult->GetMEDFileInfo() ); dlg.exec(); } + +//--------------------------------------------------------------- +void VisuGUI::OnExportMED() +{ + SalomeApp_Study* aStudy = dynamic_cast( getApp()->activeStudy() ); + SUIT_DataOwnerPtrList lst; + getApp()->selectionMgr()->selected( lst ); + LightApp_DataOwner* owner = dynamic_cast( lst.first().get() ); + VISU::TObjectInfo anObjectInfo = VISU::GetObjectByEntry( aStudy, owner->entry().toLatin1().constData() ); + VISU::Result_i* aResult = dynamic_cast( anObjectInfo.myBase ); + if(!aResult) + return; + // VisuGUI_FileInfoDlg dlg( getApp()->desktop(), aResult->GetMEDFileInfo() ); + // dlg.exec(); + + SUIT_ResourceMgr* aResourceMgr = GetResourceMgr(); + QString aDir = aResourceMgr->stringValue("VISU","OutputDir",""); + + // get name for the file + QStringList aFilter; + aFilter.append("MED Files (*.med)"); + + std::string anInitFileName = aResult->GetInitFileName(); + QFileInfo anInitFileInfo(anInitFileName.c_str()); + QString aBaseName = anInitFileInfo.fileName(); + + QString aPath = Qtx::addSlash(aDir) + aBaseName; + + QFileInfo aFileInfo = + SUIT_FileDlg::getFileName(GetDesktop(this), + aPath, + aFilter, + tr("MEN_EXPORT_MED"), // "Export To Med File" + false); + + QString aFile = aFileInfo.filePath(); + if ( aFile.length() > 0 ) { + aResult->ExportMED((const char*)aFile.toLatin1()); + } +} diff --git a/src/VISUGUI/VisuGUI.h b/src/VISUGUI/VisuGUI.h index f2d18169..2325ddc1 100644 --- a/src/VISUGUI/VisuGUI.h +++ b/src/VISUGUI/VisuGUI.h @@ -178,6 +178,7 @@ protected slots: void OnMultiprChangeRes(VISU::Result::Resolution theResolution); void OnFileInfo(); + void OnExportMED(); protected: virtual LightApp_Selection* createSelection() const; diff --git a/src/VISUGUI/VisuGUI_ActionsDef.h b/src/VISUGUI/VisuGUI_ActionsDef.h index 5c1083fa..13cb18db 100644 --- a/src/VISUGUI/VisuGUI_ActionsDef.h +++ b/src/VISUGUI/VisuGUI_ActionsDef.h @@ -126,5 +126,6 @@ #define VISU_MULTIPR_HIDE 4098 #define VISU_FILE_INFO 4100 +#define VISU_EXPORT_MED 4101 #endif diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index a43015d9..4184edbc 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -1330,6 +1330,25 @@ VISU::Result_i Storable::DataToStream(theStr,"myIsBuildGroups", myIsGroupsDone); } +//--------------------------------------------------------------- + +bool +VISU::Result_i +::ExportMED(const char* theTargetFileName) +{ + static QString aCommand; + const char* aTempFileName = myFileInfo.absoluteFilePath().toLatin1(); + aCommand.sprintf(" %s %s", aTempFileName, theTargetFileName); + aCommand = QDir::convertSeparators( aCommand ); + aCommand.prepend( COPY_COMMAND ); + + if(system(aCommand.toLatin1().data()) != 0) { + if(MYDEBUG) MESSAGE("VISU_Gen_i::Copy - Cann't execute the command :"<