Actual source code: dclear.c

  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 Parameters:
 13: .  draw - the drawing context

 15:    Level: intermediate

 17: @*/
 18: PetscErrorCode PetscDrawClear(PetscDraw draw)
 19: {
 21:   if (draw->saveonclear) PetscDrawSave(draw);
 22:   PetscTryTypeMethod(draw, clear);
 23:   return 0;
 24: }

 26: /*@
 27:    PetscDrawBOP - Begins a new page or frame on the selected graphical device.

 29:    Logically Collective

 31:    Input Parameter:
 32: .  draw - the drawing context

 34:    Level: advanced

 36: .seealso: `PetscDrawEOP()`, `PetscDrawClear()`
 37: @*/
 38: PetscErrorCode PetscDrawBOP(PetscDraw draw)
 39: {
 41:   PetscTryTypeMethod(draw, beginpage);
 42:   return 0;
 43: }
 44: /*@
 45:    PetscDrawEOP - Ends a page or frame on the selected graphical device.

 47:    Logically Collective

 49:    Input Parameter:
 50: .  draw - the drawing context

 52:    Level: advanced

 54: .seealso: `PetscDrawBOP()`, `PetscDrawClear()`
 55: @*/
 56: PetscErrorCode PetscDrawEOP(PetscDraw draw)
 57: {
 59:   PetscTryTypeMethod(draw, endpage);
 60:   return 0;
 61: }