0028225: MFC sample on OCAF uses old-style definition of a Handle-class
[occt.git] / samples / mfc / standard / 06_Ocaf / src / TOcaf_Application.cxx
CommitLineData
7fd59977 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>
d7a28eda 8#include <TOcaf_Application.hxx>
7fd59977 9#include <TDF_Label.hxx>
10#include <TPrsStd_AISPresentation.hxx>
11#include <TPrsStd_AISViewer.hxx>
12#include <TNaming_NamedShape.hxx>
234e52be 13#include "TFunction_DriverTable.hxx"
14#include "TOcafFunction_BoxDriver.hxx"
15#include "TOcafFunction_CylDriver.hxx"
16#include "TOcafFunction_CutDriver.hxx"
7fd59977 17
d7a28eda 18IMPLEMENT_STANDARD_RTTIEXT (TOcaf_Application, TDocStd_Application)
19
7fd59977 20//=======================================================================
21//function : TOcaf_Application
22//purpose :
23//=======================================================================
24
25TOcaf_Application::TOcaf_Application()
26{
2915f0b5 27 // Instanciate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
28 TFunction_DriverTable::Get()->AddDriver (TOcafFunction_BoxDriver::GetID(),
29 new TOcafFunction_BoxDriver());
30
31 // Instanciate 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 // Instanciate 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());
7fd59977 39}