X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHDS%2FSMESHDS_Script.hxx;h=3874facfcecdc9f895d2eaea615967df5a906035;hp=8a67c98fe0ea57610bee5b8e7f949fc42ba3f407;hb=2387bfa403855b82751bf9f122295b1fc6923a18;hpb=c3bf92bd87b770fd81631a3853f7f5bb1ac6a4e8 diff --git a/src/SMESHDS/SMESHDS_Script.hxx b/src/SMESHDS/SMESHDS_Script.hxx index 8a67c98fe..3874facfc 100644 --- a/src/SMESHDS/SMESHDS_Script.hxx +++ b/src/SMESHDS/SMESHDS_Script.hxx @@ -28,8 +28,10 @@ #define _SMESHDS_Script_HeaderFile #include "SMESHDS_Command.hxx" + #include -using namespace std; +#include + 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 nodes_ids); + void AddPolyhedralVolume (const int NewVolID, + std::vector nodes_ids, + std::vector 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 nodes_ids, + std::vector quantities); + void Renumber (const bool isNodes, const int startID, const int deltaID); void Clear(); - const list & GetCommands(); + const std::list & GetCommands(); ~SMESHDS_Script(); private: - list myCommands; + SMESHDS_Command* getCommand(const SMESHDS_CommandType aType); + + std::list myCommands; }; #endif