0021762: Integration of new Boolean Operation algorithm to OCCT.
[occt.git] / src / BOPAlgo / BOPAlgo_CheckerSI.cxx
1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2012 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 //                         EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 //
7 // The content of this file is subject to the Open CASCADE Technology Public
8 // License Version 6.5 (the "License"). You may not use the content of this file
9 // except in compliance with the License. Please obtain a copy of the License
10 // at http://www.opencascade.org and read it completely before using this file.
11 //
12 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
13 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 //
15 // The Original Code and all software distributed under the License is
16 // distributed on an "AS IS" basis, without warranty of any kind, and the
17 // Initial Developer hereby disclaims all such warranties, including without
18 // limitation, any warranties of merchantability, fitness for a particular
19 // purpose or non-infringement. Please see the License for the specific terms
20 // and conditions governing the rights and limitations under the License.
21 //
22 #include <BOPAlgo_CheckerSI.ixx>
23
24 #include <BOPDS_DS.hxx>
25 #include <BOPDS_IteratorSI.hxx>
26 #include <BOPInt_Context.hxx>
27
28 //=======================================================================
29 //function : 
30 //purpose  : 
31 //=======================================================================
32   BOPAlgo_CheckerSI::BOPAlgo_CheckerSI()
33 :
34   BOPAlgo_PaveFiller()
35 {
36 }
37 //=======================================================================
38 //function : ~
39 //purpose  : 
40 //=======================================================================
41   BOPAlgo_CheckerSI::~BOPAlgo_CheckerSI()
42 {
43 }
44 //=======================================================================
45 //function : Init
46 //purpose  : 
47 //=======================================================================
48   void BOPAlgo_CheckerSI::Init()
49 {
50   myErrorStatus = 0;
51   //
52   if (!myArguments.Extent()) {
53     myErrorStatus=10;
54     return;
55   }
56   //
57   Clear();
58   //
59   // 1. myDS
60   myDS=new BOPDS_DS(myAllocator);
61   myDS->SetArguments(myArguments);
62   myDS->Init();
63   //
64   // 2.myIterator 
65   myIterator=new BOPDS_IteratorSI(myAllocator);
66   myIterator->SetDS(myDS);
67   myIterator->Prepare();
68   //
69   // 3 myContext
70   myContext=new BOPInt_Context;
71   //
72   myErrorStatus=0;
73 }