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>
13 #include "TFunction_DriverTable.hxx"
14 #include "TOcafFunction_BoxDriver.hxx"
15 #include "TOcafFunction_CylDriver.hxx"
16 #include "TOcafFunction_CutDriver.hxx"
18 //=======================================================================
19 //function : TOcaf_Application
21 //=======================================================================
23 TOcaf_Application::TOcaf_Application()
25 // Instanciate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
26 TFunction_DriverTable::Get()->AddDriver(TOcafFunction_BoxDriver::GetID(),
27 new TOcafFunction_BoxDriver());
29 // Instanciate a TOcafFunction_CylDriver and add it to the TFunction_DriverTable
30 TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CylDriver::GetID(),
31 new TOcafFunction_CylDriver());
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());
41 //=======================================================================
44 //=======================================================================
46 void TOcaf_Application::Formats(TColStd_SequenceOfExtendedString& Formats)
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"));
56 //=======================================================================
57 //function : ResourcesName
59 //=======================================================================
61 Standard_CString TOcaf_Application::ResourcesName()
63 return Standard_CString ("Standard");