1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _BlockFix_BlockFixAPI_HeaderFile
21 #define _BlockFix_BlockFixAPI_HeaderFile
23 #ifndef _Standard_HeaderFile
24 #include <Standard.hxx>
26 #ifndef _Handle_BlockFix_BlockFixAPI_HeaderFile
27 #include <Handle_BlockFix_BlockFixAPI.hxx>
30 #ifndef _Handle_ShapeBuild_ReShape_HeaderFile
31 #include <Handle_ShapeBuild_ReShape.hxx>
33 #ifndef _TopoDS_Shape_HeaderFile
34 #include <TopoDS_Shape.hxx>
36 #ifndef _Standard_Real_HeaderFile
37 #include <Standard_Real.hxx>
39 #ifndef _MMgt_TShared_HeaderFile
40 #include <MMgt_TShared.hxx>
42 class ShapeBuild_ReShape;
46 class BlockFix_BlockFixAPI : public MMgt_TShared {
50 void* operator new(size_t,void* anAddress)
54 void* operator new(size_t size)
56 return Standard::Allocate(size);
58 void operator delete(void *anAddress)
60 if (anAddress) Standard::Free((Standard_Address&)anAddress);
64 Standard_EXPORT BlockFix_BlockFixAPI();
65 void SetShape(const TopoDS_Shape& Shape) ;
66 Standard_EXPORT void Perform() ;
67 TopoDS_Shape Shape() const;
68 Handle_ShapeBuild_ReShape& Context() ;
69 Standard_Real& Tolerance() ;
70 Standard_EXPORT ~BlockFix_BlockFixAPI();
77 Standard_EXPORT friend Handle_Standard_Type& BlockFix_BlockFixAPI_Type_();
78 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
79 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
99 Handle_ShapeBuild_ReShape myContext;
100 TopoDS_Shape myShape;
101 Standard_Real myTolerance;
107 #include <BlockFix_BlockFixAPI.lxx>
111 // other Inline functions and methods (like "C++: function call" methods)