0023874: Converting OCCT MFC samples to CMake build system.
[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 #include "TFunction_DriverTable.hxx"
14 #include "TOcafFunction_BoxDriver.hxx"
15 #include "TOcafFunction_CylDriver.hxx"
16 #include "TOcafFunction_CutDriver.hxx"
17
18 //=======================================================================
19 //function : TOcaf_Application
20 //purpose  : 
21 //=======================================================================
22
23 TOcaf_Application::TOcaf_Application()
24 {
25         // Instanciate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
26         TFunction_DriverTable::Get()->AddDriver(TOcafFunction_BoxDriver::GetID(), 
27                                                                                         new TOcafFunction_BoxDriver());
28
29         // Instanciate a TOcafFunction_CylDriver and add it to the TFunction_DriverTable
30         TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CylDriver::GetID(),
31                                                                                         new TOcafFunction_CylDriver());
32
33         // Instanciate a TOcafFunction_CutDriver and add it to the TFunction_DriverTable
34         Handle(TOcafFunction_CutDriver) myCutDriver = new TOcafFunction_CutDriver();
35         TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CutDriver::GetID(), 
36                                                                                         new TOcafFunction_CutDriver());
37
38 }
39
40
41 //=======================================================================
42 //function : Formats
43 //purpose  : 
44 //=======================================================================
45
46 void TOcaf_Application::Formats(TColStd_SequenceOfExtendedString& Formats) 
47 {  
48   //Formats.Append(TCollection_ExtendedString ("Ocaf-Sample"));    
49   Formats.Append(TCollection_ExtendedString ("MDTV-Standard"));
50   Formats.Append(TCollection_ExtendedString("BinOcaf"));
51   Formats.Append(TCollection_ExtendedString("XmlOcaf"));
52
53 }
54
55
56 //=======================================================================
57 //function : ResourcesName
58 //purpose  : 
59 //=======================================================================
60
61 Standard_CString TOcaf_Application::ResourcesName() 
62 {
63   return Standard_CString ("Standard");
64 }
65
66