ViewerDrawOpenX
Opens an X window for use as a viewer. If you want to do graphics in this window, you must call ViewerDrawGetDraw() and perform the graphics on the Draw object.
Synopsis
int ViewerDrawOpenX(MPI_Comm comm,char* display,char *title,int x,int y,
int w,int h,Viewer *viewer)
Collective on
MPI_Comm
Input Parameters
comm | - communicator that will share window
|
display | - the X display on which to open, or null for the local machine
|
title | - the title to put in the title bar, or null for no title
|
x, y | - the screen coordinates of the upper left corner of window
|
w, h | - the screen width and height in pixels
|
Output Parameters
viewer -the viewer
Format Options
VIEWER_FORMAT_DRAW_BASIC | - displays with basic format
|
VIEWER_FORMAT_DRAW_LG | - displays using a line graph
|
Options Database Keys
ViewerDrawOpenX() calls DrawOpenX(), so see the man page
forDrawOpenX() for runtime options,
including
-nox | - Disables all x-windows output
|
-display <name> | - Specifies name of machine for the X display
|
-draw_pause <pause> | - Sets time (in seconds) that the
program pauses after DrawPause() has been called
(0 is default, -1 implies until user input).
|
Note for Fortran Programmers
Whenever indicating null character data in a Fortran code,
PETSC_NULL_CHARACTER must be employed; using PETSC_NULL is
notcorrect for character data! Thus, PETSC_NULL_CHARACTER can
beused for the display and title input parameters.
Keywords
draw, open, x, viewer
See Also
DrawOpenX()
Examples
src/vec/examples/tutorials/ex3f.F
src/vec/examples/tutorials/ex3.c
src/snes/examples/tutorials/ex2.c
src/snes/examples/tutorials/ex3.c
src/gvec/examples/tutorials/ex1.c
src/gvec/examples/tutorials/ex2.c
src/gvec/examples/tutorials/ex3.c
src/gvec/examples/tutorials/ex4.c
src/gvec/examples/tutorials/ex5.c
src/gvec/examples/tutorials/ex6.c
src/gvec/examples/tutorials/ex11.c
Location: src/draw/impls/x/xops.c
Graphics (Draw) Index
Table of Contents