Actual source code: dclear.c
petsc-3.10.5 2019-03-28
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: Concepts: clear^window
19: @*/
20: PetscErrorCode PetscDrawClear(PetscDraw draw)
21: {
26: if (draw->saveonclear) {PetscDrawSave(draw);}
27: if (draw->ops->clear) {
28: (*draw->ops->clear)(draw);
29: }
30: return(0);
31: }
33: /*@
34: PetscDrawBOP - Begins a new page or frame on the selected graphical device.
36: Logically Collective on PetscDraw
38: Input Parameter:
39: . draw - the drawing context
41: Level: advanced
43: .seealso: PetscDrawEOP(), PetscDrawClear()
44: @*/
45: PetscErrorCode PetscDrawBOP(PetscDraw draw)
46: {
51: if (draw->ops->beginpage) {
52: (*draw->ops->beginpage)(draw);
53: }
54: return(0);
55: }
56: /*@
57: PetscDrawEOP - Ends a page or frame on the selected graphical device.
59: Logically Collective on PetscDraw
61: Input Parameter:
62: . draw - the drawing context
64: Level: advanced
66: .seealso: PetscDrawBOP(), PetscDrawClear()
67: @*/
68: PetscErrorCode PetscDrawEOP(PetscDraw draw)
69: {
74: if (draw->ops->endpage) {
75: (*draw->ops->endpage)(draw);
76: }
77: return(0);
78: }