0028567: Get rid of the unused DRAW commands based on old Boolean Operations (BRepAlgo)
[occt.git] / src / QANewBRepNaming / QANewBRepNaming_Intersection.cxx
old mode 100755 (executable)
new mode 100644 (file)
index c4a0238..f82d0c3
@@ -1,24 +1,29 @@
-// File:       QANewBRepNaming_Intersection.cdl
-// Created:    Tue Oct 31 15:01:54 2000
-// Author:     Vladislav ROMASHKO
-//             <vro@flox.nnov.matra-dtv.fr>
-// Copyright:  Matra Datavision 2000
-
-const static char sccsid[] = "@(#) 3.0-00-3, 01/10/01@(#)";
-
-// Lastly modified by :
-// +---------------------------------------------------------------------------+
-// !       szy ! Modified Load                           ! 8-05-2003! 3.0-00-%L%!
-// +---------------------------------------------------------------------------+
-
-#include <QANewBRepNaming_Intersection.ixx>
-#include <TNaming_Builder.hxx>
+// Created on: 2000-10-31
+// Created by: Vladislav ROMASHKO
+// Copyright (c) 2000-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 <BRepAlgoAPI_BooleanOperation.hxx>
+#include <QANewBRepNaming_Intersection.hxx>
 #include <QANewBRepNaming_Loader.hxx>
-#include <TopTools_ListIteratorOfListOfShape.hxx>
-#include <TopOpeBRepBuild_HBuilder.hxx>
+#include <TDF_Label.hxx>
+#include <TNaming_Builder.hxx>
 #include <TopoDS_Iterator.hxx>
+#include <TopOpeBRepBuild_HBuilder.hxx>
+#include <TopTools_ListIteratorOfListOfShape.hxx>
 
-#ifdef MDTV_DEB
+#ifdef OCCT_DEBUG
 #include <TDataStd_Name.hxx>
 #include <TNaming_NamedShape.hxx>
 #endif
@@ -47,7 +52,7 @@ QANewBRepNaming_Intersection::QANewBRepNaming_Intersection() {}
 //=======================================================================
 
 QANewBRepNaming_Intersection::QANewBRepNaming_Intersection(const TDF_Label& ResultLabel)
-     :QANewBRepNaming_BooleanOperationFeat(ResultLabel) {}
+     :QANewBRepNaming_BooleanOperation(ResultLabel) {}
 
 //=======================================================================
 //function : Load
@@ -57,7 +62,7 @@ QANewBRepNaming_Intersection::QANewBRepNaming_Intersection(const TDF_Label& Resu
 void QANewBRepNaming_Intersection::Load(BRepAlgoAPI_BooleanOperation& MS) const {
   TopoDS_Shape ResSh = MS.Shape();
   if (ResSh.IsNull()) {
-#ifdef MDTV_DEB
+#ifdef OCCT_DEBUG
     cout<<"QANewBRepNaming_Intersection::Load(): The result of the Intersection is null"<<endl;
 #endif
     return;
@@ -69,7 +74,7 @@ void QANewBRepNaming_Intersection::Load(BRepAlgoAPI_BooleanOperation& MS) const
 
   // If the shapes are the same - select the result and exit:
   if (IsResultChanged(MS)) {
-#ifdef MDTV_DEB
+#ifdef OCCT_DEBUG
     cout<<"QANewBRepNaming_Intersection::Load(): The object and the result of INTERSECTION operation are the same"<<endl;
     // Not modified!
 #endif
@@ -146,7 +151,7 @@ void QANewBRepNaming_Intersection::Load(BRepAlgoAPI_BooleanOperation& MS) const
     }
 
   if(anArg == UNEXPECTED) {
-#ifdef MDTV_DEB
+#ifdef OCCT_DEBUG
       cout <<"QANewBRepNaming_Intersection:: Unexpected Use Case" << endl;
 #endif
       return;
@@ -212,21 +217,3 @@ void QANewBRepNaming_Intersection::Load(BRepAlgoAPI_BooleanOperation& MS) const
   // Naming of the content:
 //    if (ShapeType(ResSh) == TopAbs_VERTEX) LoadContent(MS);
 }
-
-// @@SDM: begin
-
-// Lastly modified by : vro                                    Date : 31-10-2000
-
-// File history synopsis (creation,modification,correction)
-// +---------------------------------------------------------------------------+
-// ! Developer !              Comments                   !   Date   ! Version  !
-// +-----------!-----------------------------------------!----------!----------+
-// !       vro ! Creation                                !31-10-2000!3.0-00-3!
-// !       vro ! Redesign                                !13-12-2000! 3.0-00-3!
-// !       vro ! Result control                          !07-03-2001! 3.0-00-3!
-// !       vro ! Result may be null                      !19-03-2001! 3.0-00-3!
-// !       szy ! Modified Load                           ! 8-05-2003! 3.0-00-%L%!
-// +---------------------------------------------------------------------------+
-// Lastly modified by : szy                                    Date :  8-05-2003
-
-// @@SDM: end