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