From: eap Date: Mon, 10 Sep 2007 14:20:27 +0000 (+0000) Subject: PAL16774,PAL16631(SALOME crash after a mesh computation that failed because of lack... X-Git-Tag: T_24092007~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cb1cf907595ea611c8feafb0b1a00da13b97101e;p=modules%2Fsmesh.git PAL16774,PAL16631(SALOME crash after a mesh computation that failed because of lack of memory) - void Update( int theIsClear = true ); + bool Update( int theIsClear = true ); --- diff --git a/src/OBJECT/SMESH_Object.h b/src/OBJECT/SMESH_Object.h index 44b737ba5..6ba242972 100644 --- a/src/OBJECT/SMESH_Object.h +++ b/src/OBJECT/SMESH_Object.h @@ -45,7 +45,7 @@ class vtkUnstructuredGrid; class SMESH_VisualObj { public: - virtual void Update( int theIsClear = true ) = 0; + virtual bool Update( int theIsClear = true ) = 0; virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ) = 0; virtual int GetElemDimension( const int theObjId ) = 0; diff --git a/src/OBJECT/SMESH_ObjectDef.h b/src/OBJECT/SMESH_ObjectDef.h index fff2f819d..a0acebdac 100644 --- a/src/OBJECT/SMESH_ObjectDef.h +++ b/src/OBJECT/SMESH_ObjectDef.h @@ -61,7 +61,7 @@ public: SMESH_VisualObjDef(); virtual ~SMESH_VisualObjDef(); - virtual void Update( int theIsClear = true ) = 0; + virtual bool Update( int theIsClear = true ) = 0; virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ) = 0; virtual int GetElemDimension( const int theObjId ) = 0; @@ -112,7 +112,7 @@ public: SMESH_MeshObj( SMESH::SMESH_Mesh_ptr ); virtual ~SMESH_MeshObj(); - virtual void Update( int theIsClear = true ); + virtual bool Update( int theIsClear = true ); virtual int GetNbEntities( const SMDSAbs_ElementType) const; virtual int GetEntities( const SMDSAbs_ElementType, TEntityList& ) const; @@ -142,7 +142,7 @@ public: SMESH_SubMeshObj(SMESH_MeshObj* theMeshObj); virtual ~SMESH_SubMeshObj(); - virtual void Update( int theIsClear = true ); + virtual bool Update( int theIsClear = true ); virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ); virtual int GetElemDimension( const int theObjId );