Actual source code: dellipse.c

  1: #ifdef PETSC_RCS_HEADER
  2: static char vcid[] = "$Id: dellipse.c,v 1.3 2000/01/10 03:26:52 knepley Exp $";
  3: #endif
  4: /*
  5:        Provides the calling sequences for all the basic Draw routines.
  6: */
 7:  #include src/sys/src/draw/drawimpl.h

  9: #undef __FUNCT__  
 11: /*@
 12:   PetscDrawEllipse - Draws an ellipse onto a drawable.

 14:   Not collective

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

 22:   Level: beginner

 24: .keywords: draw, ellipse
 25: .seealso: PetscDrawRectangle(), PetscDrawTriangle()
 26: @*/
 27: int PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c)
 28: {
 29:   PetscTruth isdrawnull;
 30:   int        ierr;

 34:   PetscTypeCompare((PetscObject) draw, PETSC_DRAW_NULL, &isdrawnull);
 35:   if (isdrawnull) return(0);
 36:   (*draw->ops->ellipse)(draw, x, y, a, b, c);
 37:   return(0);
 38: }