1 // SMESH SMDS : implementaion of Salome mesh data structure
3 // Copyright (C) 2003 OPEN CASCADE
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.opencascade.org or email : webmaster@opencascade.org
23 // File : SMDSEdit_Transform.hxx
26 #ifndef _SMDSEdit_Transform_HeaderFile
27 #define _SMDSEdit_Transform_HeaderFile
29 #ifndef _Handle_SMDS_Mesh_HeaderFile
30 #include "Handle_SMDS_Mesh.hxx"
32 #ifndef _gp_Trsf_HeaderFile
33 #include <gp_Trsf.hxx>
35 #ifndef _SMDS_ListOfMeshElement_HeaderFile
36 #include "SMDS_ListOfMeshElement.hxx"
40 class SMDS_ListOfMeshElement;
43 #ifndef _Standard_HeaderFile
44 #include <Standard.hxx>
46 #ifndef _Standard_Macro_HeaderFile
47 #include <Standard_Macro.hxx>
50 class SMDSEdit_Transform {
54 inline void* operator new(size_t,void* anAddress)
58 inline void* operator new(size_t size)
60 return Standard::Allocate(size);
62 inline void operator delete(void *anAddress)
64 if (anAddress) Standard::Free((Standard_Address&)anAddress);
66 // inline void operator delete(void *anAddress, size_t size)
68 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
72 Standard_EXPORT SMDSEdit_Transform(const Handle(SMDS_Mesh)& aMesh,const gp_Trsf& aTrsf);
73 Standard_EXPORT SMDSEdit_Transform(const Handle(SMDS_Mesh)& aMesh,const SMDS_ListOfMeshElement& aListOfME,const gp_Trsf& aTrsf);
74 Standard_EXPORT void Perform() ;
75 Standard_EXPORT void SetTrsf(const gp_Trsf& aTrsf) ;
76 Standard_EXPORT gp_Trsf GetTrsf() const;
100 Handle_SMDS_Mesh myMesh;
102 SMDS_ListOfMeshElement myListOfME;
111 // other inline functions and methods (like "C++: function call" methods)