Implement UdateActor method.

This commit is contained in:
rnv 2017-10-04 10:47:04 +03:00
parent 009944a75a
commit bc5e6135d1
3 changed files with 22 additions and 0 deletions

View File

@ -684,6 +684,25 @@ void SMESH_Swig::EraseActor( const char* Mesh_Entry, const bool allViewers )
ProcessVoidEvent(new TEvent(Mesh_Entry, allViewers));
}
void SMESH_Swig::UpdateActor( const char* Mesh_Entry ) {
class TEvent: public SALOME_Event
{
private:
const char* _entry;
public:
TEvent( const char* Mesh_Entry ) {
_entry = Mesh_Entry;
}
virtual void Execute() {
Handle(SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject
( _entry, "SMESH", "" );
SMESH::Update( anIO, true );
}
};
ProcessVoidEvent( new TEvent(Mesh_Entry) );
}
void SMESH_Swig::SetName(const char* theEntry,
const char* theName)
{

View File

@ -89,6 +89,8 @@ public:
void EraseActor( const char*, const bool allViewers = false );
void UpdateActor( const char* Mesh_Entry );
/*!
* \brief Set mesh icon according to compute status
* \param Mesh_Entry - entry of a mesh

View File

@ -101,6 +101,7 @@ class SMESH_Swig
void CreateAndDisplayActor( const char* Mesh_Entry );
void EraseActor( const char* Mesh_Entry, const bool allViewers = false );
void UpdateActor( const char* Mesh_Entry );
void setSelectionMode( SelectionMode selectionMode);
std::vector<int> getSelected( const char* Mesh_Entry );