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