-// Copyright (C) 2011-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2020-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/
-//
-// File : MG_ADAPT.hxx
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
#ifndef MG_ADAPT_IDL
#define MG_ADAPT_IDL
#include "SALOMEDS.idl"
#include "SMESH_Mesh.idl"
-module SMESH{
-
- typedef sequence<string> str_array ;
+module SMESH
+{
struct MgAdaptHypothesisData
{
string myFileInDir, myMeshFileIn, myInMeshName, myMeshFileBackground, myOutMeshName,
- myMeshFileOut, myFileOutDir, myFileSizeMapDir, myFieldName;
+ myMeshFileOut, myFileOutDir, myFileSizeMapDir, myFieldName;
boolean fromMedFile;
boolean myPublish, myMeshOutMed;
boolean myUseLocalMap, myUseBackgroundMap, myUseConstantValue;
long myVerboseLevel;
};
-
interface MG_ADAPT : SALOME::GenericObj
{
- //MG_ADAPT CreateMG_ADAPT(in PortableServer::POA_var poa);
- void setData( inout MgAdaptHypothesisData data);
+ void setData(inout MgAdaptHypothesisData data);
- void setMedFileIn(in string MedFileIn );
+ void setMedFileIn(in string MedFileIn);
string getMedFileIn();
void setMedFileOut(in string MedFileOut);
string getSizeMapFieldName();
void setTimeStep(in long s);
- long getTimeStep() ;
+ long getTimeStep();
void setTimeStepRank(in long s, in long f);
long getRank();
boolean getUseConstantValue();
void setConstantSize(in double f);
- double getConstantSize() ;
+ double getConstantSize();
void setSizeMapFile(in string f);
string getSizeMapFile();
boolean getPrintLogInFile();
void setWorkingDir(in string f);
- string getWorkingDir() ;
+ string getWorkingDir();
void setSizeMapType(in string f);
boolean setAll();
- string getCommandToRun() ;
- //long compute(out string errStr);
- long compute();
+ string getCommandToRun();
+ void compute() raises(SALOME::SALOME_Exception);
string getErrMsg();
- string getFileName() ;
+ string getFileName();
string getExeName();
- void copyMgAdaptHypothesisData(in MgAdaptHypothesisData f ) ;
+ void copyMgAdaptHypothesisData(in MgAdaptHypothesisData f);
- //void checkDirPath(inout string f);
+ //void checkDirPath(inout string f);
- boolean hasOptionDefined( in string optionName ) ;
+ boolean hasOptionDefined(in string optionName);
void setOptionValue(in string optionName, in string optionValue) raises (SALOME::SALOME_Exception);
string getOptionValue(in string optionName, inout boolean isDefault) raises (SALOME::SALOME_Exception);
- str_array getCustomOptionValuesStrVec() ;
- str_array getOptionValuesStrVec() ;
+ SMESH::string_array getCustomOptionValuesStrVec();
+ SMESH::string_array getOptionValuesStrVec();
};
typedef MG_ADAPT MG_ADAPT_HYPOTHESIS;
interface MG_ADAPT_OBJECT : SALOME::GenericObj
{
- void setMeshIn(in SMESH_Mesh theMesh ) raises (SALOME::SALOME_Exception);
+ void setMeshIn(in SMESH_Mesh theMesh) raises (SALOME::SALOME_Exception);
void setMEDFileIn(in string f) raises (SALOME::SALOME_Exception);
void setMEDFileOut(in string f) raises (SALOME::SALOME_Exception);
void setMEDFileBackground(in string f) raises (SALOME::SALOME_Exception);
void AddHypothesis(in MG_ADAPT mg) raises (SALOME::SALOME_Exception);
long Compute(in boolean Publish) raises (SALOME::SALOME_Exception);
};
-
};
+
#endif // MG_ADAPT_IDL