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: /*@
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: int PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c)
26: {
27: PetscTruth isdrawnull;
28: int ierr;
32: PetscTypeCompare((PetscObject) draw, PETSC_DRAW_NULL, &isdrawnull);
33: if (isdrawnull) return(0);
34: (*draw->ops->ellipse)(draw, x, y, a, b, c);
35: return(0);
36: }