1 /* 2 Provides the calling sequences for all the basic Draw routines. 3 */ 4 #include <petsc/private/drawimpl.h> /*I "petscdraw.h" I*/ 5 6 /*@ 7 PetscDrawEllipse - Draws an ellipse onto a drawable. 8 9 Not Collective 10 11 Input Parameters: 12 + draw - The drawing context 13 . x - The x coordinate of the center 14 . y - The y coordinate of the center 15 . a - The major axes length 16 . b - The minor axes length 17 - c - The color 18 19 Level: beginner 20 21 .seealso: `PetscDraw`, `PetscDrawRectangle()`, `PetscDrawTriangle()`, `PetscDrawMarker()`, `PetscDrawPoint()`, `PetscDrawString()`, `PetscDrawArrow()` 22 @*/ 23 PetscErrorCode PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c) 24 { 25 PetscFunctionBegin; 26 PetscValidHeaderSpecific(draw, PETSC_DRAW_CLASSID, 1); 27 PetscUseTypeMethod(draw, ellipse, x, y, a, b, c); 28 PetscFunctionReturn(PETSC_SUCCESS); 29 } 30