15c6c1daeSBarry Smith /* 25c6c1daeSBarry Smith Data structure for the PetscDraw version of the viewer 35c6c1daeSBarry Smith */ 45c6c1daeSBarry Smith 55c6c1daeSBarry Smith #if !defined(__VDRAW_H) 65c6c1daeSBarry Smith #define __VDRAWL_H 75c6c1daeSBarry Smith 85c6c1daeSBarry Smith #include <petsc-private/viewerimpl.h> 95c6c1daeSBarry Smith typedef struct { 105c6c1daeSBarry Smith PetscInt draw_max; 115c6c1daeSBarry Smith PetscInt draw_base; 125c6c1daeSBarry Smith PetscInt nbounds; /* number of bounds supplied with PetscViewerDrawSetBounds() */ 135c6c1daeSBarry Smith PetscReal *bounds; /* lower and upper bounds for each component to be used in plotting */ 145c6c1daeSBarry Smith PetscDraw *draw; 155c6c1daeSBarry Smith PetscDrawLG *drawlg; 165c6c1daeSBarry Smith PetscDrawAxis *drawaxis; 175c6c1daeSBarry Smith int w,h; /* These are saved in case additional windows are opened */ 185c6c1daeSBarry Smith char *display; 195c6c1daeSBarry Smith char *title; 205c6c1daeSBarry Smith PetscBool singleton_made; 215c6c1daeSBarry Smith PetscBool hold; /* Keep previous image when adding new */ 22*afe78b3cSBarry Smith PetscReal pause; 235c6c1daeSBarry Smith } PetscViewer_Draw; 245c6c1daeSBarry Smith 255c6c1daeSBarry Smith #endif 26