From f6271fec8961ec453f2c455c8a55dd4f58f2dea9 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 12 Nov 2010 14:49:46 +0000 Subject: [PATCH] 0020918: EDF 1447 SMESH: Mesh common borders 1) NotifySubMeshesHypothesisModification() in LoadFrom() 2) + virtual void UpdateAsMeshesRestored(); // for hyps needing full data restored --- src/SMESH_I/SMESH_Hypothesis_i.cxx | 13 +++++++++++++ src/SMESH_I/SMESH_Hypothesis_i.hxx | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_Hypothesis_i.cxx b/src/SMESH_I/SMESH_Hypothesis_i.cxx index 19d436ff6..8875e4d1f 100644 --- a/src/SMESH_I/SMESH_Hypothesis_i.cxx +++ b/src/SMESH_I/SMESH_Hypothesis_i.cxx @@ -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 } diff --git a/src/SMESH_I/SMESH_Hypothesis_i.hxx b/src/SMESH_I/SMESH_Hypothesis_i.hxx index 24c01d46a..99eba89ca 100644 --- a/src/SMESH_I/SMESH_Hypothesis_i.hxx +++ b/src/SMESH_I/SMESH_Hypothesis_i.hxx @@ -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 }; -- 2.39.2