Actual source code: dpoint.c

  1: /*$Id: dpoint.c,v 1.31 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:    PetscDrawPoint - PetscDraws a point onto a drawable.

 10:    Not collective

 12:    Input Parameters:
 13: +  draw - the drawing context
 14: .  xl,yl - the coordinates of the point
 15: -  cl - the color of the point

 17:    Level: beginner

 19:    Concepts: point^drawing
 20:    Concepts: drawing^point

 22: .seealso: PetscDrawPointSetSize()

 24: @*/
 25: int PetscDrawPoint(PetscDraw draw,PetscReal xl,PetscReal yl,int cl)
 26: {
 27:   int        ierr;
 28:   PetscTruth isnull;

 32:   PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isnull);
 33:   if (isnull) return(0);
 34:   (*draw->ops->point)(draw,xl,yl,cl);
 35:   return(0);
 36: }