0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / src / BOPTest / BOPTest.cxx
1 // Created on: 2000-05-18
2 // Created by: Peter KURNEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16
17 #include <BOPTest.hxx>
18 #include <BRepTest.hxx>
19 #include <DBRep.hxx>
20 #include <Draw_Interpretor.hxx>
21 #include <GeometryTest.hxx>
22 #include <GeomliteTest.hxx>
23 #include <HLRTest.hxx>
24 #include <MeshTest.hxx>
25
26 //=======================================================================
27 //function : AllCommands
28 //purpose  : 
29 //=======================================================================
30 void  BOPTest::AllCommands(Draw_Interpretor& theCommands)
31 {
32   static Standard_Boolean done = Standard_False;
33   if (done) return;
34   done = Standard_True;
35   //
36   BOPTest::BOPCommands       (theCommands);
37   BOPTest::CheckCommands     (theCommands);
38   BOPTest::LowCommands       (theCommands);
39   BOPTest::TolerCommands     (theCommands);
40   BOPTest::ObjCommands       (theCommands);
41   BOPTest::PartitionCommands (theCommands);
42   BOPTest::APICommands       (theCommands);
43   BOPTest::OptionCommands    (theCommands);
44   BOPTest::HistoryCommands   (theCommands);
45   BOPTest::DebugCommands     (theCommands);
46   BOPTest::CellsCommands     (theCommands);
47 }
48 //=======================================================================
49 //function : Factory
50 //purpose  : 
51 //=======================================================================
52   void BOPTest::Factory(Draw_Interpretor& theCommands)
53 {
54   static Standard_Boolean FactoryDone = Standard_False;
55   if (FactoryDone) return;
56
57   FactoryDone = Standard_True;
58
59   DBRep::BasicCommands(theCommands);
60   GeomliteTest::AllCommands(theCommands);
61   GeometryTest::AllCommands(theCommands);
62   BRepTest::AllCommands(theCommands);
63   MeshTest::Commands(theCommands);
64   HLRTest::Commands(theCommands);
65   BOPTest::AllCommands(theCommands);
66 }