cb4cbd31a4fc0e324c7126fd5cf6b4d17802d95d
[occt.git] / src / OpenGl / OpenGl_textangle.cxx
1 // File:      OpenGl_textangle.cxx
2 // Created:   30.09.09
3 // Author:    Paul Supryatkin
4 // Copyright: Open CASCADE 2009
5
6
7 #include <stddef.h>
8 #include <stdio.h>
9
10 #include <OpenGl_tgl_all.hxx>
11
12 #include <OpenGl_cmn_varargs.hxx>
13 #include <OpenGl_telem_attri.hxx>
14 #include <OpenGl_tsm.hxx>
15 #include <OpenGl_telem.hxx>
16 #include <OpenGl_telem_inquire.hxx>
17 #include <OpenGl_Memory.hxx>
18
19 static  TStatus  TextAngleDisplay( TSM_ELEM_DATA, Tint, cmn_key* );
20 static  TStatus  TextAngleAdd( TSM_ELEM_DATA, Tint, cmn_key* );
21
22 static  TStatus  (*MtdTbl[])( TSM_ELEM_DATA, Tint, cmn_key* ) =
23 {
24   0,             /* PickTraverse */
25   TextAngleDisplay,
26   TextAngleAdd,
27   0,             /* Delete */
28   0,
29   0              /* Inquire */
30 };
31
32 MtblPtr
33 TelTextAngleInitClass( TelType *el )
34 {
35   *el = TelTextAngle;
36   return MtdTbl;
37 }
38
39 static  TStatus
40 TextAngleDisplay( TSM_ELEM_DATA data, Tint n, cmn_key *k )
41 {
42   CMN_KEY  key;
43
44   key.id = TelTextAngle;
45   key.data.ldata = data.ldata;
46   TsmSetAttri( 1, &key );
47   return TSuccess;
48 }
49
50 static  TStatus
51 TextAngleAdd( TSM_ELEM_DATA d, Tint n, cmn_key *k )
52 {
53   ((tsm_elem_data)(d.pdata))->ldata = k[0]->data.ldata;
54   return TSuccess;
55 }
56