]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020918: EDF 1447 SMESH: Mesh common borders
authoreap <eap@opencascade.com>
Fri, 12 Nov 2010 14:49:46 +0000 (14:49 +0000)
committereap <eap@opencascade.com>
Fri, 12 Nov 2010 14:49:46 +0000 (14:49 +0000)
1) NotifySubMeshesHypothesisModification() in LoadFrom()
2) +  virtual void  UpdateAsMeshesRestored(); // for hyps needing full data restored

src/SMESH_I/SMESH_Hypothesis_i.cxx
src/SMESH_I/SMESH_Hypothesis_i.hxx

index 19d436ff6128affb3e8641e2f6ed80c48a56353b..8875e4d1f968d176a9abe6cfdf336cab4411fadb 100644 (file)
@@ -279,4 +279,17 @@ void SMESH_Hypothesis_i::LoadFrom( const char* theStream )
   MESSAGE( "SMESH_Hypothesis_i::LoadFrom" );
   std::istringstream is( theStream );
   myBaseImpl->LoadFrom( is );
+  // let listeners know about loading (issue 0020918)
+  myBaseImpl->NotifySubMeshesHypothesisModification();
+}
+
+//================================================================================
+/*!
+ * \brief This mesthod is called after completion of loading a study 
+ */
+//================================================================================
+
+void SMESH_Hypothesis_i::UpdateAsMeshesRestored()
+{
+  // for hyps needing full data restored
 }
index 24c01d46a8c241951db83dd0685bd290c9feeada..99eba89ca6544814dd98d0129321cadc0181cec5 100644 (file)
@@ -91,7 +91,8 @@ public:
   // Persistence
   virtual char* SaveTo();
   virtual void  LoadFrom( const char* theStream );
-  
+  virtual void  UpdateAsMeshesRestored(); // for hyps needing full data restored
+
 protected:
   ::SMESH_Hypothesis* myBaseImpl;    // base hypothesis implementation
 };