blob: 2cf6141f896404e6127853d8ca087f18c6ab4345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#define GER61454 //GG 14-09-99 Activates the model clipping planes
#include <OpenGl_tgl_all.hxx>
#include <OpenGl_tgl.hxx>
#include <OpenGl_tgl_funcs.hxx>
#include <OpenGl_telem_view.hxx>
#include <OpenGl_tsm_ws.hxx>
#include <GL/gl.h>
struct TEL_VIEW_DATA
{
TEL_VIEW_REP vrep;
#ifdef CAL_100498
Tmatrix3 inverse_matrix;/* accelerates UVN2XYZ conversion */
#endif
IMPLEMENT_MEMORY_OPERATORS
};
typedef TEL_VIEW_DATA *tel_view_data; /* Internal data stored for every view rep */
void EXPORT
/* unimplemented */
call_togl_setplane
(
CALL_DEF_VIEW * aview
)
{
#ifdef GER61454
CMN_KEY_DATA key;
tel_view_data vptr;
TEL_VIEW_REP *call_viewrep;
int j;
// return view representation
if( aview->ViewId == 0 )
return; // no modifications on default view
if( TsmGetWSAttri( aview->WsId, WSViews, &key ) != TSuccess )
return;
vptr = (tel_view_data)key.pdata;
if( !vptr )
return;
call_viewrep = &vptr->vrep;
// clear clipping planes information
call_viewrep->clipping_planes.Clear();
// update information
if( aview->Context.NbActivePlane > 0 )
for( j=0 ; j<aview->Context.NbActivePlane ; j++ )
call_viewrep->clipping_planes.Append( aview->Context.ActivePlane[j] );
#endif
return;
}
|