0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / BRepBuilderAPI / BRepBuilderAPI_Copy.cxx
old mode 100755 (executable)
new mode 100644 (file)
index f5f7c49..7d63f85
@@ -1,18 +1,29 @@
-// File:       BRepBuilderAPI_Copy.cxx
-// Created:    Mon Dec 12 12:14:38 1994
-// Author:     Jacques GOUSSARD
-//             <jag@topsn2>
+// Created on: 1994-12-12
+// Created by: Jacques GOUSSARD
+// Copyright (c) 1994-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 
-#include <BRepBuilderAPI_Copy.ixx>
-
-#include <Geom_Surface.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <BRepTools_Modification.hxx>
 #include <BRep_Tool.hxx>
-#include <TopoDS_Vertex.hxx>
+#include <BRepBuilderAPI_Copy.hxx>
+#include <BRepTools_Modification.hxx>
+#include <Geom2d_Curve.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom_Surface.hxx>
 #include <gp_Pnt.hxx>
+#include <TopoDS_Shape.hxx>
+#include <TopoDS_Vertex.hxx>
 
 //! Tool class implementing necessary functionality for copying geometry
 class BRepBuilderAPI_Copy_Modification : public BRepTools_Modification 
@@ -65,9 +76,12 @@ public:
 
   //! Returns true to indicate the need to copy edge;
   //! copies pcurve if requested
-  Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F,
-                               const TopoDS_Edge& NewE, const TopoDS_Face& NewF,
-                               Handle(Geom2d_Curve)& C, Standard_Real& Tol)
+  Standard_Boolean NewCurve2d (const TopoDS_Edge& E, 
+                               const TopoDS_Face& F,
+                               const TopoDS_Edge& /*NewE*/,
+                               const TopoDS_Face& /*NewF*/,
+                               Handle(Geom2d_Curve)& C, 
+                               Standard_Real& Tol)
   {
     Tol = BRep_Tool::Tolerance(E);
     Standard_Real f, l;
@@ -100,16 +114,14 @@ public:
   }
 
 public:
-  DEFINE_STANDARD_RTTI(BRepBuilderAPI_Copy_Modification)
+  DEFINE_STANDARD_RTTI(BRepBuilderAPI_Copy_Modification, BRepTools_Modification)
 
 private: 
   Standard_Boolean myCopyGeom;
 };
 
 DEFINE_STANDARD_HANDLE(BRepBuilderAPI_Copy_Modification, BRepTools_Modification)
-IMPLEMENT_STANDARD_HANDLE(BRepBuilderAPI_Copy_Modification, BRepTools_Modification)
 
-IMPLEMENT_STANDARD_RTTIEXT(BRepBuilderAPI_Copy_Modification, BRepTools_Modification)
 
 //=======================================================================
 //function : BRepBuilderAPI_Copy