1 // SMESH SMESHDS : management of mesh data and SMESH document
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHDS_Script.hxx
27 #ifndef _SMESHDS_Script_HeaderFile
28 #define _SMESHDS_Script_HeaderFile
30 #ifndef _Standard_HeaderFile
31 #include <Standard.hxx>
33 #ifndef _Handle_SMESHDS_Script_HeaderFile
34 #include "Handle_SMESHDS_Script.hxx"
37 #ifndef _SMESHDS_ListOfCommand_HeaderFile
38 #include "SMESHDS_ListOfCommand.hxx"
40 #ifndef _MMgt_TShared_HeaderFile
41 #include <MMgt_TShared.hxx>
43 #ifndef _Standard_Integer_HeaderFile
44 #include <Standard_Integer.hxx>
46 #ifndef _Standard_Real_HeaderFile
47 #include <Standard_Real.hxx>
49 class SMESHDS_ListOfCommand;
52 class SMESHDS_Script : public MMgt_TShared {
56 inline void* operator new(size_t,void* anAddress)
60 inline void* operator new(size_t size)
62 return Standard::Allocate(size);
64 inline void operator delete(void *anAddress)
66 if (anAddress) Standard::Free((Standard_Address&)anAddress);
68 // inline void operator delete(void *anAddress, size_t size)
70 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
74 Standard_EXPORT void AddNode(const Standard_Integer NewNodeID,const Standard_Real x,const Standard_Real y,const Standard_Real z) ;
75 Standard_EXPORT void AddEdge(const Standard_Integer NewEdgeID,const Standard_Integer idnode1,const Standard_Integer idnode2) ;
76 Standard_EXPORT void AddFace(const Standard_Integer NewFaceID,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3) ;
77 Standard_EXPORT void AddFace(const Standard_Integer NewFaceID,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3,const Standard_Integer idnode4) ;
78 Standard_EXPORT void AddVolume(const Standard_Integer NewVolID,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3,const Standard_Integer idnode4) ;
79 Standard_EXPORT void AddVolume(const Standard_Integer NewVolID,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3,const Standard_Integer idnode4,const Standard_Integer idnode5) ;
80 Standard_EXPORT void AddVolume(const Standard_Integer NewVolID,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3,const Standard_Integer idnode4,const Standard_Integer idnode5,const Standard_Integer idnode6) ;
81 Standard_EXPORT void AddVolume(const Standard_Integer NewVolID,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3,const Standard_Integer idnode4,const Standard_Integer idnode5,const Standard_Integer idnode6,const Standard_Integer idnode7,const Standard_Integer idnode8) ;
82 Standard_EXPORT void MoveNode(const Standard_Integer NewNodeID,const Standard_Real x,const Standard_Real y,const Standard_Real z) ;
83 Standard_EXPORT void RemoveNode(const Standard_Integer NodeID) ;
84 Standard_EXPORT void RemoveElement(const Standard_Integer ElementID) ;
85 Standard_EXPORT void Clear() ;
86 Standard_EXPORT const SMESHDS_ListOfCommand& GetCommands() ;
87 Standard_EXPORT ~SMESHDS_Script();
94 Standard_EXPORT friend Handle_Standard_Type& SMESHDS_Script_Type_();
95 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
96 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
116 SMESHDS_ListOfCommand myCommands;
125 // other inline functions and methods (like "C++: function call" methods)