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