15c6c1daeSBarry Smith 25c6c1daeSBarry Smith /* 35c6c1daeSBarry Smith Provides the calling sequences for all the basic Draw routines. 45c6c1daeSBarry Smith */ 5af0996ceSBarry Smith #include <petsc/private/drawimpl.h> /*I "petscdraw.h" I*/ 65c6c1daeSBarry Smith 75c6c1daeSBarry Smith /*@ 85c6c1daeSBarry Smith PetscDrawEllipse - Draws an ellipse onto a drawable. 95c6c1daeSBarry Smith 105c6c1daeSBarry Smith Not collective 115c6c1daeSBarry Smith 125c6c1daeSBarry Smith Input Parameters: 135c6c1daeSBarry Smith + draw - The drawing context 145c6c1daeSBarry Smith . x,y - The center 155c6c1daeSBarry Smith . a,b - The major and minor axes lengths 165c6c1daeSBarry Smith - c - The color 175c6c1daeSBarry Smith 185c6c1daeSBarry Smith Level: beginner 195c6c1daeSBarry Smith 20ba1e01c4SBarry Smith .seealso: PetscDrawRectangle(), PetscDrawTriangle(), PetscDrawMarker(), PetscDrawPoint(), PetscDrawString(), PetscDrawArrow() 215c6c1daeSBarry Smith @*/ 225c6c1daeSBarry Smith PetscErrorCode PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c) 235c6c1daeSBarry Smith { 245c6c1daeSBarry Smith PetscFunctionBegin; 255c6c1daeSBarry Smith PetscValidHeaderSpecific(draw, PETSC_DRAW_CLASSID,1); 2628b400f6SJacob Faibussowitsch PetscCheck(draw->ops->ellipse,PETSC_COMM_SELF,PETSC_ERR_SUP,"No support for drawing ellipses"); 27*9566063dSJacob Faibussowitsch PetscCall((*draw->ops->ellipse)(draw, x, y, a, b, c)); 285c6c1daeSBarry Smith PetscFunctionReturn(0); 295c6c1daeSBarry Smith } 30