1 // File: TOcaf_Application.cxx
2 // Created: Mon Jul 3 2000
5 //Modified by Sergey RUIN (An instantiation of the drivers)
8 #include <TOcaf_Application.hxx>
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 IMPLEMENT_STANDARD_RTTIEXT (TOcaf_Application, TDocStd_Application)
20 //=======================================================================
21 //function : TOcaf_Application
23 //=======================================================================
25 TOcaf_Application::TOcaf_Application()
27 // Instantiate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
28 TFunction_DriverTable::Get()->AddDriver (TOcafFunction_BoxDriver::GetID(),
29 new TOcafFunction_BoxDriver());
31 // Instantiate a TOcafFunction_Cyl Driver and add it to the TFunction_DriverTable
32 TFunction_DriverTable::Get()->AddDriver (TOcafFunction_CylDriver::GetID(),
33 new TOcafFunction_CylDriver());
35 // Instantiate a TOcafFunction_CutDriver and add it to the TFunction_DriverTable
36 Handle(TOcafFunction_CutDriver) myCutDriver = new TOcafFunction_CutDriver();
37 TFunction_DriverTable::Get()->AddDriver (TOcafFunction_CutDriver::GetID(),
38 new TOcafFunction_CutDriver());