1XYFLAT(3)                   MBK PHYSICAL FUNCTIONS                   XYFLAT(3)
2
3
4

NAME

6       xyflat - compute hierarchical coordinates
7

SYNOPSIS

9       #include "mph.h"
10       void xyflat(xout, yout, x, y, xins, yins, x1, y1, x2, y2, trsf)
11       long ∗xout, ∗yout;
12       long x, y;
13       long xins, yins;
14       long x1, y1, x2, y2;
15       char trsf;
16

PARAMETERS

18       xout, yout          Values  filled by the function call, return values,
19                           that represent coordinates of the point in the fig‐
20                           ure
21
22       x, y                Coordinates of a point in the instance
23
24       xins, yins          Coordinates   of  the  lower  left  corner  of  the
25                           instance
26
27       x1, y1, x2, y2      Coordinates of the abutment box of the model of the
28                           instance
29
30       trsf                Geometrical operation applied to the instance
31

DESCRIPTION

33       xyflat computes coordinates relative to a model of instance in order to
34       give them in figure coordinates, taking care of the transformation per‐
35       formed on the instance.
36       This function is very useful when flattening, or getting coordinates of
37       an object belonging to an istance at figure level.
38       Care must be taken that the x1, y1, x2, y2 parameters are not the  cur‐
39       rent  figure  abutment box coordinates, but the instance model abutment
40       box coordinates.
41

EXAMPLE

43       #include "mph.h"
44       long GET_CON_X(insname, conname, index)
45       char ∗insname, ∗conname;
46       long index;
47       {
48       phfig_list ∗ptfig; /∗ pointer on model of instance called insname ∗/
49       phins_list ∗ptins; /∗ pointer on instance called insname ∗/
50       phcon_list ∗ptcon; /∗ pointer on the conname called con inside ptins ∗/
51       long x_con, y_con; /∗ return values, y_con here for beauty ∗/
52          ptins = getphins(WORK_PHFIG, insname);
53          ptfig = getphfig(ptins->FIGNAME, 'P');
54          ptcon = getphcon(ptfig, conname, index);
55          xyflat(&x_con, &y_con, ptcon->XCON, ptcon->YCON,
56             ptins->XINS, ptins->YIINS,
57             ptfig->XAB1, ptfig->YAB1, ptfig->XAB2, ptfig->YAB2,
58             ptins->TRANSF);
59          return x_con;
60       }
61

SEE ALSO

63       mbk(1), phfig(3), phins(3).
64
65
66
67
68
69
70ASIM/LIP6                       October 1, 1997                      XYFLAT(3)
Impressum