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=70d4d5b30484daac6906d74b649f3c61847ce695;hb=c0562941eac9e5a0a8b36d731f3348fe09bf32d0;hpb=7b70ad87bf8f5c46b2751f94cd196932b9ae7122 diff --git a/src/SMESHDS/SMESHDS_Script.hxx b/src/SMESHDS/SMESHDS_Script.hxx index 70d4d5b30..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,16 +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(); - void UpdateAll(); + const std::list & GetCommands(); ~SMESHDS_Script(); private: - list myCommands; + SMESHDS_Command* getCommand(const SMESHDS_CommandType aType); + + std::list myCommands; }; #endif