0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
[occt.git] / src / OpenGl / OpenGl_togl_structure.cxx
CommitLineData
7fd59977 1#define G003 /* EUG degeneration support
2*/
3
4#include <OpenGl_tgl_all.hxx>
5
6#include <InterfaceGraphic_Labels.hxx>
7#include <InterfaceGraphic_Graphic3d.hxx>
8
9#include <OpenGl_tgl.hxx>
10#include <OpenGl_tgl_funcs.hxx>
11#include <OpenGl_tgl_subrs.hxx>
12#include <OpenGl_tgl_util.hxx>
13
14void EXPORT
15call_togl_structure
16(
17 CALL_DEF_STRUCTURE * astructure
18 )
19{
20 Tint struct_defined;
21 Tint nameset[3];
22
23 nameset[0] = astructure->highlight ? CALL_DEF_STRUCTHIGHLIGHTED
24 : CALL_DEF_STRUCTNOHIGHLIGHTED;
25 nameset[1] = astructure->visible ? CALL_DEF_STRUCTVISIBLE :
26 CALL_DEF_STRUCTNOVISIBLE;
27 nameset[2] = astructure->pick ? CALL_DEF_STRUCTPICKABLE :
28 CALL_DEF_STRUCTNOPICKABLE;
29
30 struct_defined = call_util_test_structure( astructure->Id );
31
32 if( struct_defined )
33 call_func_del_struct( astructure->Id );
34
35 call_func_set_edit_mode( CALL_PHIGS_EDIT_INSERT );
36 call_func_open_struct( astructure->Id );
37 call_func_label( Structure_LABBegin );
38 call_func_label( Structure_LABTransformation );
39
40 /* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
41 call_func_label( Structure_LABTransPersistence );
42 /* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
43
44 call_func_appl_data (0);
45#ifdef G003
46 call_func_label ( Structure_LABDegenerateModel );
47 call_func_offset_elem_ptr ( 1 );
48 call_func_set_degenerate_model (
49 astructure -> ContextFillArea.DegenerationMode,
50 astructure -> ContextFillArea.SkipRatio);
51#endif /* G003 */
52 call_func_label( Structure_LABContextLine );
53 call_func_label( Structure_LABContextFillArea );
54 call_func_label( Structure_LABContextMarker );
55 call_func_label( Structure_LABContextText );
56 call_func_label( Structure_LABHighlight );
57 call_func_label( Structure_LABVisibility );
58 call_func_label( Structure_LABPick );
59 call_func_label( Structure_LABNameSet );
60 call_subr_addnameset( 3, nameset );
61 call_func_label( Structure_LABConnect );
62 call_func_label( astructure->GroupBegin );
63 call_func_label( astructure->GroupEnd );
64 call_func_close_struct();
65
66 /* call_togl_contextstructure( astructure ); */
67
68 return;
69}