Salome HOME
Movement of examples to CVS EXAMPLES SAMPLES_SRC.
[modules/smesh.git] / src / SMESHDS / SMESHDS_Script.hxx
index 8a67c98fe0ea57610bee5b8e7f949fc42ba3f407..3874facfcecdc9f895d2eaea615967df5a906035 100644 (file)
 #define _SMESHDS_Script_HeaderFile
 
 #include "SMESHDS_Command.hxx"
+
 #include <list>
-using namespace std;
+#include <vector>
+
 
 class SMESHDS_Script
 {
@@ -47,15 +49,29 @@ class SMESHDS_Script
                int idnode4, int idnode5, int idnode6);
        void AddVolume(int NewVolID, int idnode1, int idnode2, int idnode3,
                int idnode4, int idnode5, int idnode6, int idnode7, int idnode8);
-       void MoveNode(int NewNodeID, double x, double y, double z);
+
+        void AddPolygonalFace (const int NewFaceID,
+                               std::vector<int> nodes_ids);
+       void AddPolyhedralVolume (const int NewVolID,
+                                  std::vector<int> nodes_ids,
+                                  std::vector<int> quantities);
+
+        void MoveNode(int NewNodeID, double x, double y, double z);
        void RemoveNode(int NodeID);
        void RemoveElement(int ElementID);
+       void ChangeElementNodes(int ElementID, int nodes[], int nbnodes);
+       void ChangePolyhedronNodes(const int        ElementID,
+                                   std::vector<int> nodes_ids,
+                                   std::vector<int> quantities);
+       void Renumber (const bool isNodes, const int startID, const int deltaID);
        void Clear();
-       const list<SMESHDS_Command*> & GetCommands();
+       const std::list<SMESHDS_Command*> & GetCommands();
        ~SMESHDS_Script();
   
   private:
-       list<SMESHDS_Command*> myCommands;
+       SMESHDS_Command* getCommand(const SMESHDS_CommandType aType);
+
+       std::list<SMESHDS_Command*> myCommands;
 };
 
 #endif