Commit Graph

277 Commits

Author SHA1 Message Date
mpv
666c66fdb3 Initial integration of SimanIO support and SIMAN study interfaces 2012-10-18 07:11:22 +00:00
eap
cbfa797d42 in bool _pyGen::IsGeomObject(const _pyID& theObjID) check that
IsStudyEntry( theObjID ), else e.g. "0.00173968" is treated as a
removed geometry and
"NETGEN_2D_Parameters.SetMinSize( 0.00173968 )" leads to erasing a
mesh to which NETGEN_2D_Parameters is assigned.
2012-05-11 11:39:51 +00:00
eap
497561723e do not clear a command creating a removed group if the command does
other job like MakeBoundaryMesh() or DoubleNodeGroupNew()
2012-05-03 08:40:24 +00:00
eap
7f69b1fe3e fix the previous "improvement" 2012-05-02 07:46:47 +00:00
eap
3305acaefc remove some memory leaks 2012-04-27 13:01:23 +00:00
eap
38a33519c9 0021557: EDF 2161 SMESH: Duplicate elements and nodes
1) Add
ListOfGroups DoubleNodeElemGroup2New(...)
2) Fix dump of DoubleNode*New(...)
2012-04-26 07:07:00 +00:00
eap
d6352114af 0021557: EDF 2161 SMESH: Duplicate elements and nodes
1) Convert DoubleNodeElemGroup2New()
2) Fix  _pyCommand::GetResultValue(int res);
3) Add _pyGroup::Flush() to prevent clearing "DoubleNode...() command if a group created by it is removed
2012-04-26 07:05:13 +00:00
eap
29bfee91ff small fix of indentation 2012-04-24 14:30:08 +00:00
vsr
43db13f33a Update copyright information 2012-04-13 09:31:26 +00:00
rnv
8d39a9f28e Porting SMESH Plugins on Win32 platform. 2012-03-28 14:37:07 +00:00
eap
ddec989c2f 0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
clear re-setting filters to group
2012-03-23 09:11:25 +00:00
eap
93aaa60ce3 0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
+  void fixFunctorType(...)
2012-03-21 15:55:38 +00:00
eap
834b58597d 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
adjust _pyHypothesisReader() for HexoticPLUGIN_ROOT_DIR but not HEXOTICPLUGIN_ROOT_DIR
2012-03-19 12:32:35 +00:00
vsr
d2f2237450 0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Change message format
2012-03-15 15:43:52 +00:00
eap
8317c21cad void UpdateParameters(const char* theParameters)
{
+  if ( strlen(theParameters) == 0 ) return;
2012-03-15 12:11:16 +00:00
vsr
b0b26bc35f Format of preferences messages has been changed ('/' is used as separator instead of ':') 2012-03-15 09:24:23 +00:00
eap
b66badd782 0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Register tmp files in Engines::Container to be removed by killSalome.py
2012-03-15 08:54:09 +00:00
eap
c668696b87 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Fix reading nodes from a new HDF file (attempt #2)
2012-03-14 15:20:31 +00:00
eap
c080bab83c 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Fix reading nodes from a new HDF file
2012-03-14 15:03:06 +00:00
eap
28bb38ba81 0021509: EDF 2157: Error in the dump
1) fix _pyCommand::GetArg()
  2) AddMeshAccessorMethod() to "group.AddFrom( mesh )" command
2012-03-11 10:12:30 +00:00
eap
93e79bb6c3 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Use TVar structure to dump arguments that can be defined via
   notebook variables
2012-03-07 15:03:32 +00:00
eap
130a2297e9 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Remove explicit treatment of NETGEN commands
2012-03-07 15:02:16 +00:00
eap
b38b77a5aa 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
void SMESH_Mesh_i::SetParameters(const char* theParameters)
 {
-  SMESH_Gen_i::GetSMESHGen()->UpdateParameters(SMESH::SMESH_Mesh::_narrow(_this()),
-                                               CORBA::string_dup(theParameters));
+  SMESH_Gen_i::GetSMESHGen()->UpdateParameters(theParameters);
2012-03-07 14:59:11 +00:00
eap
b0d8fa70d6 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Map names of variables set via SetVarParameter() to the method name setting them

+  void SetVarParameter (const char* parameter, const char* method);
+  char* GetVarParameter (const char* methodName);

+  std::map< std::string, std::string > myMethod2VarParams; // variable parameters
+
+ public:
+  // Methods for backward compatibility of notebook variables
+  virtual void setOldParameters (const char* theParameters);
+  virtual std::string getMethodOfParameter(const int paramIndex, int nbVars) const { return ""; }
+  virtual int getParamIndex(const TCollection_AsciiString& method, int nbVars) const { return -1; }
 };

 // ======================================================
2012-03-07 14:58:06 +00:00
eap
f5efe8066b 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Store names of variables set via UpdateParameters() in myLastParameters field

-  void UpdateParameters(CORBA::Object_ptr theObject, const char* theParameters);
+  void UpdateParameters(/*CORBA::Object_ptr theObject,*/ const char* theParameters);

+  const std::vector< std::string >& GetLastParameters() const { return myLastParameters; }
+  std::vector< std::string >                               myLastParameters;
2012-03-07 14:52:53 +00:00
eap
27624ded2e 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Insert names of variables set via SMESH_Gen_i::UpdateParameters()
  into dump strings using TVar structure
2012-03-07 14:50:05 +00:00
eap
b32aba1501 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Create new _pyHypothesis'es by reading their data from resource files
  of plugins using _pyHypothesisReader
2012-03-07 14:44:20 +00:00
eap
8b1e8414fb 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
+class _pyHypothesisReader: public Standard_Transient
2012-03-07 14:42:06 +00:00
eap
4bbc91256d load mesh from study before Compute and PreCompute 2012-02-28 14:06:58 +00:00
rnv
a973225eef Fix compilation on win32 platform. 2012-02-28 14:00:22 +00:00
eap
7468bfdc0b 0021375: EDF 1671 SMESH: Dump study of current state
Do not erase commands of hyps not used to compute mesh
2012-02-28 07:47:56 +00:00
eap
4986d0a274 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Do not forget imported mesh on hypotheses modification
2012-02-24 11:49:16 +00:00
eap
154564a672 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
move actual mesh loading to SMESH_PreMeshInfo
2012-02-24 10:51:22 +00:00
eap
11bf8d1e4d 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  bool ToForgetMeshDataOnHypModif() const { return myToForgetMeshDataOnHypModif; }
2012-02-24 10:50:28 +00:00
eap
6bf9c4aeaf 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  virtual bool IsMeshInfoCorrect();
2012-02-24 10:49:36 +00:00
eap
9b54dd0f44 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
reimplement after making all member fields of SMESH_subMesh_i private
2012-02-24 10:49:18 +00:00
eap
f2e2182b74 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  CORBA::Boolean IsLoaded()
+  void Load()
+  virtual bool IsMeshInfoCorrect();

+  SMESH_PreMeshInfo* _preMeshInfo; // mesh info before full loading from study file
2012-02-24 10:47:20 +00:00
eap
53b7f3b9bb 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  virtual bool IsMeshInfoCorrect();

+  SMESH_PreMeshInfo* _preMeshInfo; // mesh info before full loading from study file
2012-02-24 10:46:31 +00:00
eap
feb9a2ff2e 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+	SMESH_PreMeshInfo.hxx \
2012-02-24 10:42:10 +00:00
eap
7c156331ce 0021375: EDF 1671 SMESH: Dump study of current state
Keep hyp parameters modifications done after mesh.Comput()
2012-02-20 06:59:35 +00:00
eap
d632c0f379 0021375: EDF 1671 SMESH: Dump study of current state
Fix non-historical treating of hypo methods setting different parameters via one method
    by passing parameter names like e.g. SetOption("size", "0.2") -
    mangle method name by appending a 1st textual arg
2012-02-17 15:59:58 +00:00
gdd
4ad6a5b19b Replace Descret by Discrete in variable and method names. 2012-02-17 14:30:02 +00:00
ana
e911ec9c1f 021374: EDF 1898 SMESH: Extrusion of a node to have an edge
and win32 compatibility ( replace isblank() -> isspace() )
2012-02-16 14:52:20 +00:00
eap
4f4088e813 0021374: EDF 1898 SMESH: Extrusion of a node to have an edge
Add accessor methods to all commands of the hypothesis
2012-02-15 11:16:59 +00:00
eap
64dc48191e 0021374]: EDF 1898 SMESH: Extrusion of a node to have an edge
Don't ExtrusionFlags
2012-02-13 17:52:48 +00:00
ana
a0e4f31fde Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge" issue. 2012-02-13 16:18:53 +00:00
vsr
f39558c4e3 Fix compilation error on Windows 2012-02-13 07:53:42 +00:00
eap
b1f48b44b7 0021375: EDF 1671 SMESH: Dump study of current state
correctly treat a false algorithm created by _pyMesh::Flush()
2012-02-09 16:42:07 +00:00
eap
0dad6db093 0021491: EDF 2094 SMESH: Error in the filters dump with "belong to GEOM " criterion
fix threshold setting
2012-02-09 16:24:01 +00:00
eap
4620909a6d 0021375: EDF 1671 SMESH: Dump study of current state
ConvertScript(const TCollection_AsciiString&            theScript,
                 Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod,
                 Resource_DataMapOfAsciiStringAsciiString& theObjectNames,
+                SALOMEDS::Study_ptr&                      theStudy,
+                const bool                                theHistoricalDump);
2012-02-09 13:17:49 +00:00