Actual source code: dclear.c

petsc-3.7.3 2016-08-01
Report Typos and Errors
  1: /*
  2:        Provides the calling sequences for all the basic PetscDraw routines.
  3: */
  4: #include <petsc/private/drawimpl.h>  /*I "petscdraw.h" I*/

  8: /*@
  9:    PetscDrawClear - Clears graphical output. All processors must call this routine.
 10:    Does not return until the draw in context is clear.

 12:    Collective on PetscDraw

 14:    Input Parameters:
 15: .  draw - the drawing context

 17:    Level: intermediate

 19:    Concepts: clear^window

 21: @*/
 22: PetscErrorCode  PetscDrawClear(PetscDraw draw)
 23: {

 28:   if (draw->saveonclear) {PetscDrawSave(draw);}
 29:   if (draw->ops->clear) {
 30:     (*draw->ops->clear)(draw);
 31:   }
 32:   return(0);
 33: }

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

 40:    Logically Collective on PetscDraw

 42:    Input Parameter:
 43: .  draw - the drawing context

 45:    Level: advanced

 47: .seealso: PetscDrawEOP(), PetscDrawClear()
 48: @*/
 49: PetscErrorCode  PetscDrawBOP(PetscDraw draw)
 50: {

 55:   if (draw->ops->beginpage) {
 56:     (*draw->ops->beginpage)(draw);
 57:   }
 58:   return(0);
 59: }
 62: /*@
 63:    PetscDrawEOP - Ends a page or frame on the selected graphical device.

 65:    Logically Collective on PetscDraw

 67:    Input Parameter:
 68: .  draw - the drawing context

 70:    Level: advanced

 72: .seealso: PetscDrawBOP(), PetscDrawClear()
 73: @*/
 74: PetscErrorCode  PetscDrawEOP(PetscDraw draw)
 75: {

 80:   if (draw->ops->endpage) {
 81:      (*draw->ops->endpage)(draw);
 82:   }
 83:   return(0);
 84: }