Salome HOME
Merge br_enable_import_mesh. Enable import mesh and save/load SMESH study.
[modules/smesh.git] / src / SMESHDS / SMESHDS_Script.cxx
index 57baf301c149f7d5de451b4a0f09fe805e123a0a..cc969b748471f5b468d522949ea1db61d938cd79 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SMESH
 //  $Header: 
 
-using namespace std;
 #include "SMESHDS_Script.hxx"
 
 //=======================================================================
@@ -321,3 +320,12 @@ const list<SMESHDS_Command*>& SMESHDS_Script::GetCommands()
 {
        return myCommands;
 }
+
+/**
+ * Add UpdateAll command to the log of this mesh. Once interpreted by the
+ * graphical client it will (re)draw the full mesh.
+ */
+void SMESHDS_Script::UpdateAll()
+{
+       myCommands.insert(myCommands.end(), new SMESHDS_Command(SMESHDS_UpdateAll));
+}