99c017d751a63ba86e9f3ec17399ee24a6f121e4
[occt.git] / samples / mfc / standard / 06_Ocaf / src / TOcaf_Application.cxx
1 // File:        TOcaf_Application.cxx
2 // Created:     Mon Jul  3  2000
3 // Author:      J Mazars
4
5 //Modified by Sergey RUIN (An instanciation of the drivers)
6
7 #include <stdafx.h>
8 #include <TOcaf_Application.ixx>
9 #include <TDF_Label.hxx>
10 #include <TPrsStd_AISPresentation.hxx>
11 #include <TPrsStd_AISViewer.hxx>
12 #include <TNaming_NamedShape.hxx>
13
14 //=======================================================================
15 //function : TOcaf_Application
16 //purpose  : 
17 //=======================================================================
18
19 TOcaf_Application::TOcaf_Application()
20 {
21         // Instanciate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
22         TFunction_DriverTable::Get()->AddDriver(TOcafFunction_BoxDriver::GetID(), 
23                                                                                         new TOcafFunction_BoxDriver());
24
25         // Instanciate a TOcafFunction_CylDriver and add it to the TFunction_DriverTable
26         TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CylDriver::GetID(),
27                                                                                         new TOcafFunction_CylDriver());
28
29         // Instanciate a TOcafFunction_CutDriver and add it to the TFunction_DriverTable
30         Handle(TOcafFunction_CutDriver) myCutDriver = new TOcafFunction_CutDriver();
31         TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CutDriver::GetID(), 
32                                                                                         new TOcafFunction_CutDriver());
33
34 }
35
36
37 //=======================================================================
38 //function : Formats
39 //purpose  : 
40 //=======================================================================
41
42 void TOcaf_Application::Formats(TColStd_SequenceOfExtendedString& Formats) 
43 {  
44   //Formats.Append(TCollection_ExtendedString ("Ocaf-Sample"));    
45   Formats.Append(TCollection_ExtendedString ("MDTV-Standard"));
46   Formats.Append(TCollection_ExtendedString("BinOcaf"));
47   Formats.Append(TCollection_ExtendedString("XmlOcaf"));
48
49 }
50
51
52 //=======================================================================
53 //function : ResourcesName
54 //purpose  : 
55 //=======================================================================
56
57 Standard_CString TOcaf_Application::ResourcesName() 
58 {
59   return Standard_CString ("Standard");
60 }
61
62