1FIGMBKRDS(3) RDS PHYSICAL FUNCTIONS FIGMBKRDS(3)
2
3
4
6 figmbkrds - converts MBK figure to RDS figure
7
9 #include "rfmnnn.h"
10 rdsfig_list ∗figmbkrds( FigureMbk, Size, Lynx )
11 phfig_list ∗FigureMbk;
12 unsigned int Size;
13 char Lynx;
14
16 FigureMbk Figure Mbk to convert to RDS figure.
17
18 Size Size of the user structure (if it exists) added to
19 the rdsrec_list structure. If the user structure
20 doesn't exist, the parameter 'Size' has to be set
21 to 0L.
22
23 Lynx Flag used for the segment conversion. If the param‐
24 eter Lynx is set to 0 then this is the normal con‐
25 version mode. If the parameter Lynx is set to 1
26 then the rds structure generated permits to extract
27 equipotentials rectangles.
28
30 The figmbkrds function creates a RDS figure with a figure from MBK
31 structure phfig_list which is converted to RDS format.
32
34 The pointer to the newly created RDS figure.
35
37 "Rds202: rdsalloc error, can't continue !"
38 it's impossible to allocate the memory size desired
39
41 #include "mphnnn.h"
42 #include "mutnnn.h"
43 #include "rdsnnn.h"
44 #include "rfmnnn.h"
45 #include "rtlnnn.h"
46 typedef struct UserStruct
47 {
48 char ∗STRING;
49 void ∗USER1;
50 } UserStruct;
51 main()
52 {
53 phfig_list ∗MbkFigure;
54 rdsfig_list ∗RdsFigure;
55 mbkenv();
56 rdsenv();
57 loadrdsparam();
58 MbkFigure = getphfig("na2_y",'A');
59 RdsFigure = figmbkrds (MbkFigure,sizeof(UserStruct),0);
60 viewrdsfig ( RdsFigure );
61 . . .
62 }
63
65 librfm, viewrfmfig, loadrdsparam
66
67
68
69
70
71
72ASIM/LIP6 October 1, 1997 FIGMBKRDS(3)