1 #define GER61454 //GG 14-09-99 Activates the model clipping planes
3 #include <OpenGl_tgl_all.hxx>
4 #include <OpenGl_tgl.hxx>
5 #include <OpenGl_tgl_funcs.hxx>
6 #include <OpenGl_telem_view.hxx>
7 #include <OpenGl_tsm_ws.hxx>
15 Tmatrix3 inverse_matrix;/* accelerates UVN2XYZ conversion */
17 IMPLEMENT_MEMORY_OPERATORS
19 typedef TEL_VIEW_DATA *tel_view_data; /* Internal data stored for every view rep */
33 TEL_VIEW_REP *call_viewrep;
34 CALL_DEF_PLANE *plane;
37 // return view representation
39 if( aview->ViewId == 0 )
40 return; // no modifications on default view
42 if( TsmGetWSAttri( aview->WsId, WSViews, &key ) != TSuccess )
45 vptr = (tel_view_data)key.pdata;
49 call_viewrep = &vptr->vrep;
51 // clear clipping planes information
52 call_viewrep->clipping_planes.Clear();
54 if( aview->Context.NbActivePlane > 0 )
55 for( j=0 ; j<aview->Context.NbActivePlane ; j++ )
56 call_viewrep->clipping_planes.Append( aview->Context.ActivePlane[j] );