Integration of OCCT 6.5.0 from SVN
[occt.git] / src / OpenGl / OpenGl_togl_namesetstructure.cxx
CommitLineData
7fd59977 1
2#include <OpenGl_tgl_all.hxx>
3
4#include <InterfaceGraphic_Labels.hxx>
5#include <InterfaceGraphic_Graphic3d.hxx>
6
7#include <OpenGl_tgl.hxx>
8#include <OpenGl_tgl_funcs.hxx>
9#include <OpenGl_tgl_subrs.hxx>
10
11void EXPORT
12call_togl_namesetstructure
13(
14 CALL_DEF_STRUCTURE * astructure
15 )
16{
17 Tint nameset[3];
18
19 nameset[0] = astructure->highlight ? CALL_DEF_STRUCTHIGHLIGHTED : CALL_DEF_STRUCTNOHIGHLIGHTED;
20 nameset[1] = astructure->visible ? CALL_DEF_STRUCTVISIBLE : CALL_DEF_STRUCTNOVISIBLE;
21 nameset[2] = astructure->pick ? CALL_DEF_STRUCTPICKABLE : CALL_DEF_STRUCTNOPICKABLE;
22
23 call_func_set_edit_mode(CALL_PHIGS_EDIT_REPLACE);
24 call_func_open_struct(astructure->Id);
25 call_func_set_elem_ptr(0);
26 call_func_set_elem_ptr_label(Structure_LABNameSet);
27 call_func_offset_elem_ptr(1);
28 call_subr_addnameset(3, nameset);
29 call_func_close_struct();
30
31 return;
32}