next up previous
Next: Other mpe Routines Up: The MPE Library of Previous: Creating Logfiles

   
Parallel X Graphics

The available graphics routines are shown in Table [*]. For arguments, see the man pages.

 
Table: MPE Graphics routines.
Control Routines
MPE_Open_graphics (collectively) opens an X display
MPE_Close_graphics Closes a X11 graphics device
MPE_Update Updates an X11 display
Output Routines
MPE_Draw_point Draws a point on an X display
MPE_Draw_points Draws points on an X display
MPE_Draw_line Draws a line on an X11 display
MPE_Draw_circle Draws a circle
MPE_Fill_rectangle Draws a filled rectangle on an X11 display
MPE_Draw_logic Sets logical operation for new pixels
MPE_Line_thickness Sets thickness of lines
MPE_Make_color_array Makes an array of color indices
MPE_Num_colors Gets the number of available colors
MPE_Add_RGB_color Add a new color
Input Routines
MPE_Mouse_watch Ask for mouse events
MPE_Mouse_get Get current coordinates of the mouse
MPE_Mouse_check Check if the mouse has been active
MPE_Mouse_wait Wait for mouse press event
MPE_Drag_start Initiate drag (button press)
MPE_Drag_check Check if drag is complete (release)
MPE_Tk_connect Connect to a Tk window
 

An example of the use of the mpe graphics library can be found in the directory mpich/mpe/contrib/mandel. Do

    make
    mpirun -np 4 pmandel
and you will see a parallel Mandelbrot calculation algorithm that exploits several features of the mpe graphics library.


next up previous
Next: Other mpe Routines Up: The MPE Library of Previous: Creating Logfiles
Karen D. Toonen
1998-11-19