0031939: Coding - correction of spelling errors in comments [part 2]
[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 instantiation of the drivers)
6
7 #include <stdafx.h>
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"
17
18 IMPLEMENT_STANDARD_RTTIEXT (TOcaf_Application, TDocStd_Application)
19
20 //=======================================================================
21 //function : TOcaf_Application
22 //purpose  : 
23 //=======================================================================
24
25 TOcaf_Application::TOcaf_Application()
26 {
27   // Instantiate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
28   TFunction_DriverTable::Get()->AddDriver (TOcafFunction_BoxDriver::GetID(),
29                                            new TOcafFunction_BoxDriver());
30
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());
34
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());
39 }