Salome HOME
This commit was generated by cvs2git to create tag 'TRIPOLI_323'.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeAlgo.hxx
index 0fae9f9f3057e5dc76ccb00566af0d4c2962587a..98a8c0b3fd1f441d0587dd3cc19aab1d3fe31258 100644 (file)
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
+// File:        GEOMAlgo_ShapeAlgo.hxx
+// Created:     Tue Dec  7 12:06:54 2004
+// Author:      Peter KURNEV
+//              <pkv@irinox>
+//
 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
 #define _GEOMAlgo_ShapeAlgo_HeaderFile
 
-#include <GEOMAlgo_Algo.hxx>
-
-#include <Basics_OCCTVersion.hxx>
-
 #include <Standard.hxx>
 #include <Standard_Macro.hxx>
-
 #include <TopoDS_Shape.hxx>
-
 #include <Standard_Real.hxx>
-
-#if OCC_VERSION_LARGE > 0x06050200
 #include <Handle_IntTools_Context.hxx>
-#else
-#include <IntTools_Context.hxx>
-#endif
-
-class IntTools_Context;
-class TopoDS_Shape;
-
-class GEOMAlgo_ShapeAlgo  : public GEOMAlgo_Algo {
-
-public:
+#include <GEOMAlgo_Algo.hxx>
 
-  void* operator new(size_t,void* anAddress)
-  {
-    return anAddress;
-  }
-  void* operator new(size_t size)
-  {
-    return Standard::Allocate(size);
-  }
-  void  operator delete(void *anAddress)
-  {
-    if (anAddress) Standard::Free((Standard_Address&)anAddress);
-  }
+//=======================================================================
+//class    : GEOMAlgo_ShapeAlgo
+//purpose  :
+//=======================================================================
+class GEOMAlgo_ShapeAlgo  : public GEOMAlgo_Algo
+{
+ public:
 
-#if OCC_VERSION_LARGE > 0x06050200
   //! Sets cashed geometrical tools <br>
-  Standard_EXPORT     void SetContext(const Handle(IntTools_Context)& theContext) ;
+  Standard_EXPORT
+    void SetContext(const Handle(IntTools_Context)& theContext) ;
+
   //! Returns cashed geometrical tools <br>
-  Standard_EXPORT    const Handle_IntTools_Context& Context() const;
+  Standard_EXPORT
+    const Handle_IntTools_Context& Context() const;
 
-  Standard_EXPORT   virtual  void Perform() ;
-#endif
+  Standard_EXPORT
+    void SetShape(const TopoDS_Shape& aS) ;
 
-  Standard_EXPORT   void SetShape(const TopoDS_Shape& aS) ;
+  Standard_EXPORT
+    void SetTolerance(const Standard_Real aT) ;
 
-  Standard_EXPORT   void SetTolerance(const Standard_Real aT) ;
+  Standard_EXPORT
+    const TopoDS_Shape& Shape() const;
 
-  Standard_EXPORT  const TopoDS_Shape& Shape() const;
+  Standard_EXPORT
+    Standard_Real Tolerance() const;
 
-  Standard_EXPORT   Standard_Real Tolerance() const;
+  Standard_EXPORT
+    const TopoDS_Shape& Result() const;
 
-  Standard_EXPORT  const TopoDS_Shape& Result() const;
+  Standard_EXPORT
+    virtual  void Perform() ;
 
 protected:
+  Standard_EXPORT
+    GEOMAlgo_ShapeAlgo();
 
-
-  Standard_EXPORT GEOMAlgo_ShapeAlgo();
-  Standard_EXPORT virtual ~GEOMAlgo_ShapeAlgo();
+  Standard_EXPORT
+    virtual ~GEOMAlgo_ShapeAlgo();
 
 
   TopoDS_Shape myShape;
   Standard_Real myTolerance;
   TopoDS_Shape myResult;
-#if OCC_VERSION_LARGE > 0x06050200
   Handle_IntTools_Context myContext;
-#else
-  IntTools_Context myContext;
-#endif
-
-private:
-
 };
-
-// other Inline functions and methods (like "C++: function call" methods)
-
 #endif