0012121: Optimization of existing selection classes
[occt.git] / src / OpenGl / OpenGl_togl_pick.cxx
CommitLineData
7fd59977 1/***********************************************************************
2
3FONCTION :
4----------
5File OpenGl_togl_pick :
6
7
8REMARQUES:
9----------
10
11
12HISTORIQUE DES MODIFICATIONS :
13--------------------------------
14xx-xx-xx : xxx ; Creation.
1506-03-96 : FMN ; Ajout OpenGl_tgl_tox.h pour call_thedisplay
1601-04-96 : CAL ; Integration MINSK portage WNT
1705-02-97 : FMN ; Suppression de OpenGl_tgl_vis.h
18
19************************************************************************/
20
21/*----------------------------------------------------------------------*/
22/*
23* Includes
24*/
25
26#include <OpenGl_tgl_all.hxx>
27#include <InterfaceGraphic_Graphic3d.hxx>
28#include <OpenGl_tgl_subrvis.hxx>
29#include <OpenGl_txgl.hxx>
30#include <OpenGl_tgl_tox.hxx>
31
32
33/*----------------------------------------------------------------------*/
34
35void EXPORT
36call_togl_pick
37(
38 CALL_DEF_PICK *apick
39 )
40{
41 call_tox_rect( apick->WsId,
42 TxglGetSubWindow( call_thedisplay, (WINDOW)apick->DefWindow.XWindow)
43 , apick->x, apick->y );
44 apick->Pick.depth = 0;
45 if( apick->x <= apick->DefWindow.dx &&
46 apick->y <= apick->DefWindow.dy )
47 call_subr_pick( apick );
48 return;
49}
50/*----------------------------------------------------------------------*/