0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / DPrsStd / DPrsStd.cxx
1 // Created on: 1998-06-29
2 // Created by: Denis PASCAL
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <AppStd_Application.hxx>
19 #include <DDataStd.hxx>
20 #include <DDF.hxx>
21 #include <DDocStd.hxx>
22 #include <DNaming.hxx>
23 #include <DPrsStd.hxx>
24 #include <Draw.hxx>
25 #include <Draw_Interpretor.hxx>
26 #include <Draw_PluginMacro.hxx>
27 #include <OSD_Directory.hxx>
28 #include <OSD_Environment.hxx>
29 #include <OSD_File.hxx>
30 #include <OSD_Path.hxx>
31 #include <TCollection_AsciiString.hxx>
32
33 //=======================================================================
34 //function : AllComands
35 //purpose  : 
36 //=======================================================================
37
38 void DPrsStd::AllCommands (Draw_Interpretor& theCommands)
39 {
40   static Standard_Boolean done = Standard_False;
41   if (done) return;
42   done = Standard_True;
43
44   DPrsStd::AISPresentationCommands(theCommands); 
45   DPrsStd::AISViewerCommands(theCommands);  
46   //DPrsStd::BasicCommands(theCommands);  
47 }
48
49 //==============================================================================
50 // DPrsStd::Factory
51 //==============================================================================
52 void DPrsStd::Factory(Draw_Interpretor& theDI)
53 {
54   static Standard_Boolean DPrsStdFactoryDone = Standard_False;
55   if (DPrsStdFactoryDone) return;
56   DPrsStdFactoryDone = Standard_True;
57
58   DDF::AllCommands(theDI);
59   DNaming::AllCommands(theDI);
60   DDataStd::AllCommands(theDI);  
61   DPrsStd::AllCommands(theDI);
62   DDocStd::AllCommands(theDI);
63 #ifdef OCCT_DEBUG
64   cout << "Draw Plugin : All DF commands are loaded" << endl;
65 #endif
66 }
67
68 // Declare entry point PLUGINFACTORY
69 DPLUGIN(DPrsStd)