src/GEOMAlgo/BlockFix_BlockFixAPI.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00002 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00003 // 
00004 // This library is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public
00006 // License as published by the Free Software Foundation; either 
00007 // version 2.1 of the License.
00008 // 
00009 // This library is distributed in the hope that it will be useful 
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00012 // Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public  
00015 // License along with this library; if not, write to the Free Software 
00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00017 //
00018 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 
00020 #ifndef _BlockFix_BlockFixAPI_HeaderFile
00021 #define _BlockFix_BlockFixAPI_HeaderFile
00022 
00023 #ifndef _Standard_HeaderFile
00024 #include <Standard.hxx>
00025 #endif
00026 #ifndef _Handle_BlockFix_BlockFixAPI_HeaderFile
00027 #include <Handle_BlockFix_BlockFixAPI.hxx>
00028 #endif
00029 
00030 #ifndef _Handle_ShapeBuild_ReShape_HeaderFile
00031 #include <Handle_ShapeBuild_ReShape.hxx>
00032 #endif
00033 #ifndef _TopoDS_Shape_HeaderFile
00034 #include <TopoDS_Shape.hxx>
00035 #endif
00036 #ifndef _Standard_Real_HeaderFile
00037 #include <Standard_Real.hxx>
00038 #endif
00039 #ifndef _MMgt_TShared_HeaderFile
00040 #include <MMgt_TShared.hxx>
00041 #endif
00042 class ShapeBuild_ReShape;
00043 class TopoDS_Shape;
00044 
00045 
00046 class BlockFix_BlockFixAPI : public MMgt_TShared {
00047 
00048 public:
00049 
00050     void* operator new(size_t,void* anAddress) 
00051       {
00052         return anAddress;
00053       }
00054     void* operator new(size_t size) 
00055       { 
00056         return Standard::Allocate(size); 
00057       }
00058     void  operator delete(void *anAddress) 
00059       { 
00060         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00061       }
00062  // Methods PUBLIC
00063  // 
00064 Standard_EXPORT BlockFix_BlockFixAPI();
00065   void SetShape(const TopoDS_Shape& Shape) ;
00066 Standard_EXPORT   void Perform() ;
00067   TopoDS_Shape Shape() const;
00068   Handle_ShapeBuild_ReShape& Context() ;
00069   Standard_Real& Tolerance() ;
00070 Standard_EXPORT ~BlockFix_BlockFixAPI();
00071 
00072 
00073 
00074 
00075  // Type management
00076  //
00077  Standard_EXPORT friend Handle_Standard_Type& BlockFix_BlockFixAPI_Type_();
00078  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
00079  Standard_EXPORT Standard_Boolean         IsKind(const Handle(Standard_Type)&) const;
00080 
00081 protected:
00082 
00083  // Methods PROTECTED
00084  // 
00085 
00086 
00087  // Fields PROTECTED
00088  //
00089 
00090 
00091 private: 
00092 
00093  // Methods PRIVATE
00094  // 
00095 
00096 
00097  // Fields PRIVATE
00098  //
00099 Handle_ShapeBuild_ReShape myContext;
00100 TopoDS_Shape myShape;
00101 Standard_Real myTolerance;
00102 
00103 
00104 };
00105 
00106 
00107 #include <BlockFix_BlockFixAPI.lxx>
00108 
00109 
00110 
00111 // other Inline functions and methods (like "C++: function call" methods)
00112 //
00113 
00114 
00115 #endif