1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
/***********************************************************************
FONCTION :
----------
File OpenGl_togl_triedron :
REMARQUES:
----------
HISTORIQUE DES MODIFICATIONS :
--------------------------------
17-09-98 : FMN/BGN ; Creation des points d'entree.
14-12-98 : BGN; Developpement (S3989, Phase "triedre")
15-12-98 : BGN; Ajout des WSUpdateState .
************************************************************************/
/*----------------------------------------------------------------------*/
/*
* Includes
*/
#include <InterfaceGraphic_Graphic3d.hxx>
#include <InterfaceGraphic_Visual3d.hxx>
/* pour utiliser WSUpdateState et TsmSetWSAttri */
#include <OpenGl_tgl_all.hxx>
#include <OpenGl_tsm_ws.hxx>
#include <OpenGl_triedron.hxx>
/*----------------------------------------------------------------------*/
/*
* Constantes
*/
#define NO_PRINT
/*----------------------------------------------------------------------*/
void EXPORT
call_togl_ztriedron_setup
(
float* xcolor,
float* ycolor,
float* zcolor,
float sizeratio,
float axisdiameter,
int nbfacettes
)
{
call_ztriedron_setup(xcolor, ycolor, zcolor,
sizeratio, axisdiameter, nbfacettes);
}
void EXPORT
call_togl_triedron_display
(
CALL_DEF_VIEW * aview,
int aPosition,
float r,
float g,
float b,
float aScale,
int asWireframe
)
{
CMN_KEY_DATA data;
#ifdef PRINT
printf("call_togl_triedron_display r = %f, g = %f, b = %f", r, g, b);
printf(", aScale = %f, aPosition = %d \n", aScale, aPosition );
#endif
call_triedron_init (aview, aPosition, r, g, b, aScale, asWireframe);
/* Mise a jour de l'update_mode */
data.ldata = TNotDone;
TsmSetWSAttri(aview->WsId, WSUpdateState, &data );
return;
}
void EXPORT
call_togl_triedron_erase
(
CALL_DEF_VIEW * aview
)
{
CMN_KEY_DATA data;
#ifdef PRINT
printf("call_togl_triedron_erase \n");
#endif
call_triedron_erase (aview);
/* Mise a jour de l'update_mode */
data.ldata = TNotDone;
TsmSetWSAttri(aview->WsId, WSUpdateState, &data );
return;
}
void EXPORT
call_togl_triedron_echo
(
CALL_DEF_VIEW * aview,
int AType
)
{
#ifdef PRINT
printf("call_togl_triedron_echo \n");
#endif
return;
}
|