0020918: EDF 1447 SMESH: Mesh common borders

1) NotifySubMeshesHypothesisModification() in LoadFrom()
2) +  virtual void  UpdateAsMeshesRestored(); // for hyps needing full data restored
This commit is contained in:
eap 2010-11-12 14:49:46 +00:00
parent 77adab5aab
commit f6271fec89
2 changed files with 15 additions and 1 deletions

View 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
}

View 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
};