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 on PetscDraw
12: Input Parameters:
13: . draw - the drawing context
15: Level: intermediate
17: @*/
18: PetscErrorCode PetscDrawClear(PetscDraw draw)
19: {
21: if (draw->saveonclear) PetscDrawSave(draw);
22: if (draw->ops->clear) {
23: (*draw->ops->clear)(draw);
24: }
25: return 0;
26: }
28: /*@
29: PetscDrawBOP - Begins a new page or frame on the selected graphical device.
31: Logically Collective on PetscDraw
33: Input Parameter:
34: . draw - the drawing context
36: Level: advanced
38: .seealso: PetscDrawEOP(), PetscDrawClear()
39: @*/
40: PetscErrorCode PetscDrawBOP(PetscDraw draw)
41: {
43: if (draw->ops->beginpage) {
44: (*draw->ops->beginpage)(draw);
45: }
46: return 0;
47: }
48: /*@
49: PetscDrawEOP - Ends a page or frame on the selected graphical device.
51: Logically Collective on PetscDraw
53: Input Parameter:
54: . draw - the drawing context
56: Level: advanced
58: .seealso: PetscDrawBOP(), PetscDrawClear()
59: @*/
60: PetscErrorCode PetscDrawEOP(PetscDraw draw)
61: {
63: if (draw->ops->endpage) {
64: (*draw->ops->endpage)(draw);
65: }
66: return 0;
67: }