Actual source code: dellipse.c
petsc-3.11.4 2019-09-28
2: /*
3: Provides the calling sequences for all the basic Draw routines.
4: */
5: #include <petsc/private/drawimpl.h>
7: /*@
8: PetscDrawEllipse - Draws an ellipse onto a drawable.
10: Not collective
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
18: Level: beginner
20: .keywords: draw, ellipse
21: .seealso: PetscDrawRectangle(), PetscDrawTriangle(), PetscDrawMarker(), PetscDrawPoint(), PetscDrawString(), PetscDrawArrow()
22: @*/
23: PetscErrorCode PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c)
24: {
29: if (!draw->ops->ellipse) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,"No support for drawing ellipses");
30: (*draw->ops->ellipse)(draw, x, y, a, b, c);
31: return(0);
32: }