Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BOPTest / BOPTest.cxx
1 // File:        MTest.cxx
2 // Created:     Thu May 18 10:42:37 2000
3 // Author:      Peter KURNEV
4 //              <pkv@irinox>
5
6
7 #include <BOPTest.ixx>
8 #include <DBRep.hxx>
9 #include <Draw_Interpretor.hxx>
10 #include <GeomliteTest.hxx>
11 #include <GeometryTest.hxx>
12 #include <BRepTest.hxx>
13 #include <MeshTest.hxx>
14 //#include <CorrectTest.hxx>
15 #include <HLRTest.hxx>
16
17 //=======================================================================
18 //function : AllCommands
19 //purpose  : 
20 //=======================================================================
21   void  BOPTest::AllCommands(Draw_Interpretor& theCommands)
22 {
23   static Standard_Boolean done = Standard_False;
24   if (done) return;
25
26   done = Standard_True;
27   
28   BOPTest::MTestCommands (theCommands);
29   BOPTest::TSTCommands(theCommands);
30   BOPTest::EFCommands (theCommands);
31   BOPTest::LowCommands(theCommands);
32   BOPTest::BOPCommands(theCommands);
33   BOPTest::WSplitCommands(theCommands);
34   BOPTest::CurveCommands(theCommands);
35   BOPTest::TolerCommands(theCommands);
36   BOPTest::CheckCommands(theCommands);
37 }
38
39 //==============================================================================
40 // BOPTest::Factory
41 //==============================================================================
42 void BOPTest::Factory(Draw_Interpretor& theDI)
43 {
44   static Standard_Boolean FactoryDone = Standard_False;
45   if (FactoryDone) return;
46
47   FactoryDone = Standard_True;
48   
49   DBRep::BasicCommands(theDI);
50   GeomliteTest::AllCommands(theDI);
51   GeometryTest::AllCommands(theDI);
52   BRepTest::AllCommands(theDI);
53   MeshTest::Commands(theDI);
54   //CorrectTest::CorrectCommands(theDI);
55   HLRTest::Commands(theDI);
56   BOPTest::AllCommands(theDI);
57
58 #ifdef DEB
59       theDI << "Draw Plugin : All Geometry & Topology commands are loaded" << "\n";
60 #endif
61 }