1 // File: TOcaf_Application.cxx
2 // Created: Mon Jul 3 2000
5 //Modified by Sergey RUIN (An instanciation of the drivers)
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>
14 //=======================================================================
15 //function : TOcaf_Application
17 //=======================================================================
19 TOcaf_Application::TOcaf_Application()
21 // Instanciate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
22 TFunction_DriverTable::Get()->AddDriver(TOcafFunction_BoxDriver::GetID(),
23 new TOcafFunction_BoxDriver());
25 // Instanciate a TOcafFunction_CylDriver and add it to the TFunction_DriverTable
26 TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CylDriver::GetID(),
27 new TOcafFunction_CylDriver());
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());
37 //=======================================================================
40 //=======================================================================
42 void TOcaf_Application::Formats(TColStd_SequenceOfExtendedString& Formats)
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"));
52 //=======================================================================
53 //function : ResourcesName
55 //=======================================================================
57 Standard_CString TOcaf_Application::ResourcesName()
59 return Standard_CString ("Standard");