Actual source code: dellipse.c
petsc-3.7.1 2016-05-15
Report Typos and Errors

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

      9: /*@
     10:   PetscDrawEllipse - Draws an ellipse onto a drawable.

     12:   Not collective

     14:   Input Parameters:
     15: + draw - The drawing context
     16: . x,y  - The center
     17: . a,b  - The major and minor axes lengths
     18: - c    - The color

     20:   Level: beginner

     22: .keywords: draw, ellipse
     23: .seealso: PetscDrawRectangle(), PetscDrawTriangle()
     24: @*/
     25: PetscErrorCode  PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c)
     26: {

     31:   if (!draw->ops->ellipse) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,"No support for drawing ellipses");
     32:   (*draw->ops->ellipse)(draw, x, y, a, b, c);
     33:   return(0);
     34: }