ViewerDrawGetDraw

Returns Draw object from Viewer object. This Draw object may then be used to perform graphics using DrawXXX() commands.

Synopsis

#include "petscdraw.h" 
int ViewerDrawGetDraw(Viewer viewer,int windownumber,Draw *draw)
Not collective (but Draw returned will be parallel object if Viewer is)

Input Parameter

viewer - the viewer (created with ViewerDrawOpen()
windownumber - indicates which subwindow (usually 0)

Ouput Parameter

draw -the draw object

See Also

ViewerDrawGetLG(), ViewerDrawGetAxis(), ViewerDrawOpen()

Level:intermediate
Location:
src/sys/src/viewer/impls/draw/drawv.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ts/examples/tutorials/ex2.c
src/ts/examples/tutorials/ex3.c
src/ts/examples/tutorials/ex4.c
src/ts/examples/tutorials/ex5.c
src/ts/examples/tutorials/ex2f.F