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.
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.
2003-03-27