1: /*
2: Provides the calling sequences for all the basic PetscDraw routines.
3: */
4: #include <petsc/private/drawimpl.h>
6: /*@
7: PetscDrawClear - Clears graphical output. All processors must call this routine.
8: Does not return until the draw in context is clear.
10: Collective
12: Input Parameter:
13: . draw - the drawing context
15: Level: intermediate
17: @*/
18: PetscErrorCode PetscDrawClear(PetscDraw draw)
19: {
20: PetscFunctionBegin;
22: if (draw->saveonclear) PetscCall(PetscDrawSave(draw));
23: PetscTryTypeMethod(draw, clear);
24: PetscFunctionReturn(PETSC_SUCCESS);
25: }
27: /*@
28: PetscDrawBOP - Begins a new page or frame on the selected graphical device.
30: Logically Collective
32: Input Parameter:
33: . draw - the drawing context
35: Level: advanced
37: .seealso: `PetscDrawEOP()`, `PetscDrawClear()`
38: @*/
39: PetscErrorCode PetscDrawBOP(PetscDraw draw)
40: {
41: PetscFunctionBegin;
43: PetscTryTypeMethod(draw, beginpage);
44: PetscFunctionReturn(PETSC_SUCCESS);
45: }
46: /*@
47: PetscDrawEOP - Ends a page or frame on the selected graphical device.
49: Logically Collective
51: Input Parameter:
52: . draw - the drawing context
54: Level: advanced
56: .seealso: `PetscDrawBOP()`, `PetscDrawClear()`
57: @*/
58: PetscErrorCode PetscDrawEOP(PetscDraw draw)
59: {
60: PetscFunctionBegin;
62: PetscTryTypeMethod(draw, endpage);
63: PetscFunctionReturn(PETSC_SUCCESS);
64: }