0012121: Optimization of existing selection classes
[occt.git] / src / OpenGl / OpenGl_textangle.cxx
CommitLineData
7fd59977 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
19static TStatus TextAngleDisplay( TSM_ELEM_DATA, Tint, cmn_key* );
20static TStatus TextAngleAdd( TSM_ELEM_DATA, Tint, cmn_key* );
21
22static 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
32MtblPtr
33TelTextAngleInitClass( TelType *el )
34{
35 *el = TelTextAngle;
36 return MtdTbl;
37}
38
39static TStatus
40TextAngleDisplay( 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
50static TStatus
51TextAngleAdd( 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