1: /*$Id: dpoints.c,v 1.37 2001/03/23 23:20:08 balay Exp $*/
2: /*
3: Provides the calling sequences for all the basic PetscDraw routines.
4: */
5: #include src/sys/src/draw/drawimpl.h
7: /*@
8: PetscDrawPointSetSize - Sets the point size for future draws. The size is
9: relative to the user coordinates of the window; 0.0 denotes the natural
10: width, 1.0 denotes the entire viewport.
12: Not collective
14: Input Parameters:
15: + draw - the drawing context
16: - width - the width in user coordinates
18: Level: advanced
20: Note:
21: Even a size of zero insures that a single pixel is colored.
23: Concepts: point^drawing size
25: .seealso: PetscDrawPoint()
26: @*/
27: int PetscDrawPointSetSize(PetscDraw draw,PetscReal width)
28: {
29: int ierr;
30: PetscTruth isnull;
34: PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isnull);
35: if (isnull) return(0);
36: if (width < 0.0 || width > 1.0) SETERRQ1(PETSC_ERR_ARG_OUTOFRANGE,"Bad size %g, should be between 0 and 1",width);
37: if (draw->ops->pointsetsize) {
38: (*draw->ops->pointsetsize)(draw,width);
39: }
40: return(0);
41: }