1: /*
2: Data structure for the PetscDraw version of the viewer
3: */
8: #include <private/viewerimpl.h>
9: typedef struct {
10: PetscInt draw_max;
11: PetscInt draw_base;
12: PetscInt nbounds; /* number of bounds supplied with PetscViewerDrawSetBounds() */
13: PetscReal *bounds; /* lower and upper bounds for each component to be used in plotting */
14: PetscDraw *draw;
15: PetscDrawLG *drawlg;
16: PetscDrawAxis *drawaxis;
17: int w,h; /* These are saved in case additional windows are opened */
18: char *display;
19: char *title;
20: PetscBool singleton_made;
21: PetscBool hold; /* Keep previous image when adding new */
22: } PetscViewer_Draw;
24: #endif