xref: /petsc/src/sys/classes/viewer/impls/draw/vdraw.h (revision e383bbd07f1c175fdb04eea9fdcaf8d9f9e92c0f)
1 /*
2      Data structure for the PetscDraw version of the viewer
3 */
4 
5 #if !defined(__VDRAW_H)
6 #define __VDRAWL_H
7 
8 #include <petsc-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;
23 
24 #endif
25