0023024: Update headers of OCCT files
[occt.git] / src / BOPTest / BOPTest.cxx
1 // Created on: 2000-05-18
2 // Created by: Peter KURNEV
3 // Copyright (c) 2000-2012 OPEN CASCADE SAS
4 //
5 // The content of this file is subject to the Open CASCADE Technology Public
6 // License Version 6.5 (the "License"). You may not use the content of this file
7 // except in compliance with the License. Please obtain a copy of the License
8 // at http://www.opencascade.org and read it completely before using this file.
9 //
10 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 //
13 // The Original Code and all software distributed under the License is
14 // distributed on an "AS IS" basis, without warranty of any kind, and the
15 // Initial Developer hereby disclaims all such warranties, including without
16 // limitation, any warranties of merchantability, fitness for a particular
17 // purpose or non-infringement. Please see the License for the specific terms
18 // and conditions governing the rights and limitations under the License.
19
20
21
22 #include <BOPTest.ixx>
23 #include <DBRep.hxx>
24 #include <Draw_Interpretor.hxx>
25 #include <GeomliteTest.hxx>
26 #include <GeometryTest.hxx>
27 #include <BRepTest.hxx>
28 #include <MeshTest.hxx>
29 //#include <CorrectTest.hxx>
30 #include <HLRTest.hxx>
31
32 //=======================================================================
33 //function : AllCommands
34 //purpose  : 
35 //=======================================================================
36 void  BOPTest::AllCommands(Draw_Interpretor& theCommands)
37 {
38   static Standard_Boolean done = Standard_False;
39   if (done) return;
40
41   done = Standard_True;
42   
43   BOPTest::MTestCommands (theCommands);
44   BOPTest::TSTCommands(theCommands);
45   BOPTest::EFCommands (theCommands);
46   BOPTest::LowCommands(theCommands);
47   BOPTest::BOPCommands(theCommands);
48   BOPTest::WSplitCommands(theCommands);
49   BOPTest::CurveCommands(theCommands);
50   BOPTest::TolerCommands(theCommands);
51   BOPTest::CheckCommands(theCommands);
52 }
53
54 //==============================================================================
55 // BOPTest::Factory
56 //==============================================================================
57 void BOPTest::Factory(Draw_Interpretor& theDI)
58 {
59   static Standard_Boolean FactoryDone = Standard_False;
60   if (FactoryDone) return;
61
62   FactoryDone = Standard_True;
63   
64   DBRep::BasicCommands(theDI);
65   GeomliteTest::AllCommands(theDI);
66   GeometryTest::AllCommands(theDI);
67   BRepTest::AllCommands(theDI);
68   MeshTest::Commands(theDI);
69   //CorrectTest::CorrectCommands(theDI);
70   HLRTest::Commands(theDI);
71   BOPTest::AllCommands(theDI);
72
73 #ifdef DEB
74       theDI << "Draw Plugin : All Geometry & Topology commands are loaded" << "\n";
75 #endif
76 }