xref: /petsc/src/sys/classes/draw/interface/dellipse.c (revision b122ec5aa1bd4469eb4e0673542fb7de3f411254)
1 
2 /*
3        Provides the calling sequences for all the basic Draw routines.
4 */
5 #include <petsc/private/drawimpl.h>  /*I "petscdraw.h" I*/
6 
7 /*@
8   PetscDrawEllipse - Draws an ellipse onto a drawable.
9 
10   Not collective
11 
12   Input Parameters:
13 + draw - The drawing context
14 . x,y  - The center
15 . a,b  - The major and minor axes lengths
16 - c    - The color
17 
18   Level: beginner
19 
20 .seealso: PetscDrawRectangle(), PetscDrawTriangle(), PetscDrawMarker(), PetscDrawPoint(), PetscDrawString(), PetscDrawArrow()
21 @*/
22 PetscErrorCode  PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c)
23 {
24   PetscFunctionBegin;
25   PetscValidHeaderSpecific(draw, PETSC_DRAW_CLASSID,1);
26   PetscCheck(draw->ops->ellipse,PETSC_COMM_SELF,PETSC_ERR_SUP,"No support for drawing ellipses");
27   CHKERRQ((*draw->ops->ellipse)(draw, x, y, a, b, c));
28   PetscFunctionReturn(0);
29 }
30