]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Implement UdateActor method.
authorrnv <rnv@opencascade.com>
Wed, 4 Oct 2017 07:47:04 +0000 (10:47 +0300)
committerrnv <rnv@opencascade.com>
Wed, 4 Oct 2017 07:47:04 +0000 (10:47 +0300)
src/SMESH_SWIG_WITHIHM/libSMESH_Swig.cxx
src/SMESH_SWIG_WITHIHM/libSMESH_Swig.h
src/SMESH_SWIG_WITHIHM/libSMESH_Swig.i

index f9527fbb8c7c8a2d47cab26d33240d5354f03b59..f8a61b76644f80cf43f82c62d3b3275818768bb8 100644 (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)
 {
index f6cde69485b393271817ac8114656b37d31a96ed..654c3e699c200ba8e0fdec51d6d9d1c0f6dafa8b 100644 (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
index 5f66f9f21011d7b066c187bc43bc681de1c238bf..68b0e1ec5618d51a0aac5c44b623d2d879d02917 100644 (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 );