0012121: Optimization of existing selection classes
[occt.git] / src / OpenGl / OpenGl_GraphicDriver_6.cxx
CommitLineData
7fd59977 1// File OpenGl_GraphicDriver_6.cxx
2// Created Mardi 28 janvier 1997
3// Author CAL
4
5//-Copyright MatraDatavision 1997
6
7//-Version
8
9//-Design Declaration des variables specifiques aux Drivers
10
11//-Warning Un driver encapsule les Pex et OpenGl drivers
12
13//-References
14
15//-Language C++ 2.0
16
17//-Declarations
18
19// for the class
20#include <OpenGl_GraphicDriver.jxx>
21
22#include <Aspect_DriverDefinitionError.hxx>
23
24#include <OpenGl_tgl_funcs.hxx>
25
26//-Aliases
27
28//-Global data definitions
29
30//-Methods, in order
31
32void OpenGl_GraphicDriver::InitPick () {
33
34
35 if (MyTraceLevel) {
36 PrintFunction ("call_togl_init_pick");
37 }
38 call_togl_init_pick ();
39
40}
41
42void OpenGl_GraphicDriver::Pick (Graphic3d_CPick& ACPick) {
43
44 Graphic3d_CPick MyCPick = ACPick;
45
46
47 if (MyTraceLevel) {
48 PrintFunction ("call_togl_pick");
49 PrintCPick (MyCPick, 1);
50 }
51 call_togl_pick (&ACPick);
52
53}
54
55void OpenGl_GraphicDriver::PickId (const Graphic3d_CGroup& ACGroup) {
56
57 Graphic3d_CGroup MyCGroup = ACGroup;
58
59 if (MyTraceLevel) {
60 PrintFunction ("call_togl_pickid");
61 PrintCGroup (MyCGroup, 1);
62 }
63 call_togl_pickid (&MyCGroup);
64
65}