Date: 2013-07-02T14:38:18+00:00

Actual source code: dclear.c
petsc-3.4.2 2013-07-02

      2: /*
      3:        Provides the calling sequences for all the basic PetscDraw routines.
      4: */
      5: #include <petsc-private/drawimpl.h>  /*I "petscdraw.h" I*/

      9: /*@
     10:    PetscDrawClear - Clears graphical output.

     12:    Not collective (Use PetscDrawSynchronizedClear() for collective)

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

     17:    Level: beginner

     19:    Concepts: clear^window

     21: .seealso: PetscDrawBOP(), PetscDrawEOP(), PetscDrawSynchronizedClear()
     22: @*/
     23: PetscErrorCode  PetscDrawClear(PetscDraw draw)
     24: {

     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: }