7fd59977 |
1 | /*********************************************************************** |
2 | |
3 | FONCTION : |
4 | ---------- |
5 | file OpenGl_togl_displaystructure.c : |
6 | |
7 | |
8 | REMARQUES: |
9 | ---------- |
10 | |
11 | |
12 | HISTORIQUE DES MODIFICATIONS : |
13 | -------------------------------- |
14 | xx-xx-xx : CAL ; Creation. |
15 | 05-02-97 : FMN ; Suppression de OpenGl_tgl_vis.h |
16 | 10-04-97 : CAL ; Modification pour que last draw => last execute. |
17 | |
18 | ************************************************************************/ |
19 | |
20 | /*----------------------------------------------------------------------*/ |
21 | /* |
22 | * Includes |
23 | */ |
24 | |
25 | |
26 | #include <OpenGl_tgl_all.hxx> |
27 | |
28 | #include <InterfaceGraphic_Labels.hxx> |
29 | #include <InterfaceGraphic_Graphic3d.hxx> |
30 | #include <InterfaceGraphic_Visual3d.hxx> |
31 | |
32 | #include <OpenGl_tgl_funcs.hxx> |
33 | #include <OpenGl_telem_view.hxx> |
34 | |
35 | void EXPORT |
36 | call_togl_displaystructure |
37 | ( |
38 | CALL_DEF_VIEW *aview, |
39 | int StructId, |
40 | int Priority |
41 | ) |
42 | { |
43 | int labelPriority; |
44 | |
45 | switch (Priority) { |
46 | case 0 : labelPriority = View_LABPriority01; break; |
47 | case 1 : labelPriority = View_LABPriority02; break; |
48 | case 2 : labelPriority = View_LABPriority03; break; |
49 | case 3 : labelPriority = View_LABPriority04; break; |
50 | case 4 : labelPriority = View_LABPriority05; break; |
51 | case 5 : labelPriority = View_LABPriority06; break; |
52 | case 6 : labelPriority = View_LABPriority07; break; |
53 | case 7 : labelPriority = View_LABPriority08; break; |
54 | case 8 : labelPriority = View_LABPriority09; break; |
55 | case 9 : labelPriority = View_LABPriority10; break; |
56 | case 10: labelPriority = View_LABEnd; break; |
57 | |
58 | default: labelPriority = Priority; break; |
59 | } |
60 | |
61 | call_func_set_edit_mode (CALL_PHIGS_EDIT_INSERT); |
62 | call_func_open_struct (aview->ViewId); |
63 | call_func_set_elem_ptr (0); |
64 | call_func_set_elem_ptr_label (labelPriority); |
65 | call_func_offset_elem_ptr (-1); |
66 | call_func_exec_struct (StructId); |
67 | call_func_close_struct (); |
68 | return; |
69 | } |