next up previous
Next: Splatter Module Up: Mandel Module Previous: T3D Process

Y-MP Process

The Y-MP process for the mandel module was developed in C using the standard AVS Module Generator. This module follows the outline of the template shown in Figure 1. The module description function which defines the output port and control panel for the module was created entirely by the Module Generator. The description function defines an output port for image data and a control panel which controls two sliders for the (x,y) coordinates of the center of the mandelbrot set and a dial for the zoom factor.

The module compute function contains code which receives the module parameters from the control panel widgets and writes a small file containing these parameters. The compute function then executes a Y-MP system call to initiate the T3D process. The T3D process reads the parameter file created by the Y-MP process, computes a mandelbrot image and returns the image to the Y-MP process via its process memory file. The Y-MP then allocates memory for a scalar byte field to hold the image and copies the returned integer data into the field structure for the output port.

The initialization function created by the Module Generator was used without modification.



Mitch Roth
Tue Aug 6 09:57:21 ADT 1996