xref: /petsc/src/sys/classes/viewer/impls/draw/vdraw.h (revision 34e79e724ed5272e30e829101ec0b1afacc04871)
1*34e79e72SJacob Faibussowitsch #ifndef PETSC_DRAW_VDRAW_H
2*34e79e72SJacob Faibussowitsch #define PETSC_DRAW_VDRAW_H
35c6c1daeSBarry Smith 
49804daf3SBarry Smith #include <petscdraw.h>
5af0996ceSBarry Smith #include <petsc/private/viewerimpl.h>
6*34e79e72SJacob Faibussowitsch 
7*34e79e72SJacob Faibussowitsch /* Data structure for the PetscDraw version of the viewer */
85c6c1daeSBarry Smith typedef struct {
95c6c1daeSBarry Smith   PetscInt       draw_max;
105c6c1daeSBarry Smith   PetscInt       draw_base;
115c6c1daeSBarry Smith   PetscInt       nbounds; /* number of bounds supplied with PetscViewerDrawSetBounds() */
125c6c1daeSBarry Smith   PetscReal     *bounds;  /* lower and upper bounds for each component to be used in plotting */
135c6c1daeSBarry Smith   PetscDraw     *draw;
145c6c1daeSBarry Smith   PetscDrawLG   *drawlg;
155c6c1daeSBarry Smith   PetscDrawAxis *drawaxis;
165c6c1daeSBarry Smith   int            w, h; /* These are saved in case additional windows are opened */
175c6c1daeSBarry Smith   char          *display;
185c6c1daeSBarry Smith   char          *title;
195c6c1daeSBarry Smith   PetscBool      singleton_made;
205c6c1daeSBarry Smith   PetscBool      hold; /* Keep previous image when adding new */
21afe78b3cSBarry Smith   PetscReal      pause;
22d1da0b69SBarry Smith   PetscDrawType  drawtype;
235c6c1daeSBarry Smith } PetscViewer_Draw;
245c6c1daeSBarry Smith 
25*34e79e72SJacob Faibussowitsch #endif /* PETSC_DRAW_VDRAW_H */
26