A.1 Instantiating a Wafer Object

To create an instance of a Wafer object from a persistent Wafer the appropriate Reader for the file that holds the Wafer data must be instantiated. The function to instantiate a Reader takes as argument the filename, the type of the Reader and an instance of a Config object. Fig. A.1 depicts the declaration of instantiateReader and the code snippet to acquire an instance of a Reader object.

Figure A.1: Instantiation of Config and Reader objects.
\begin{figure}\hrulefill
{\footnotesize\begin{verbatim}extern Reader_h instan...
...

With the Reader object that was instantiated with the code sequence shown in Fig. A.1 an instance of a Wafer object is created as shown in Fig. A.2. The third argument -- CoordMap -- is optional and may be used to flip the x/y/z coordinates of the points as they are read from the file. Table A.1 gives some examples for typical usage of CoordMap. If the CoordMap argument to newWafer is omitted the coordinates are taken as they are.


Table A.1: Usage of CoordMap class.
Coordinates on File Value of CoordMap Coordinates in memory Action
X 0 X  
Y 1 Y default mapping
Z 2 Z  
X 2 Z  
Y 1 Y swap X and Z
Z 0 X  
X 1 Y  
Y 2 Z rotate coordinate axis
Z 0 X  


Figure A.2: Instantiation of Wafer object.
\begin{figure}\hrulefill
{\footnotesize\begin{verbatim}extern Wafer_h newWafe...
... waf = newWafer(rd, cfg);\end{verbatim}}
\vspace*{-0.3cm}\hrulefill
\end{figure}

2003-03-27