143e6b640SBarry Smith /* 243e6b640SBarry Smith Public include file for all of the PETSc graphics routines 343e6b640SBarry Smith */ 443e6b640SBarry Smith #if !defined(__DRAW_H) 543e6b640SBarry Smith #define __DRAW_H 643e6b640SBarry Smith 743e6b640SBarry Smith typedef struct _DrawCtx* DrawCtx; 843e6b640SBarry Smith 9*20563c6bSBarry Smith #define DRAW_WHITE 0 10*20563c6bSBarry Smith #define DRAW_BLACK 1 11*20563c6bSBarry Smith #define DRAW_RED 2 12*20563c6bSBarry Smith #define DRAW_YELLOW 3 13*20563c6bSBarry Smith #define DRAW_GREEN 4 14*20563c6bSBarry Smith #define DRAW_CYAN 5 15*20563c6bSBarry Smith #define DRAW_BLUE 6 16*20563c6bSBarry Smith 178ed539a5SBarry Smith int DrawOpenX(char*,char *,int,int,int,int,DrawCtx*); 1843e6b640SBarry Smith int DrawDestroy(DrawCtx); 1943e6b640SBarry Smith 208ed539a5SBarry Smith int DrawLine(DrawCtx,double,double,double,double,int,int); 21*20563c6bSBarry Smith int DrawLineSetWidth(DrawCtx,double); 2243e6b640SBarry Smith 238ed539a5SBarry Smith int DrawPoint(DrawCtx,double,double,int); 24*20563c6bSBarry Smith int DrawPointSetSize(DrawCtx,double); 258ed539a5SBarry Smith 268ed539a5SBarry Smith int DrawText(DrawCtx,double,double,int,char*); 27*20563c6bSBarry Smith int DrawTextVertical(DrawCtx,double,double,int,char*); 28*20563c6bSBarry Smith int DrawTextSetSize(DrawCtx,double,double); 29*20563c6bSBarry Smith int DrawTextGetSize(DrawCtx,double*,double*); 308ed539a5SBarry Smith 318ed539a5SBarry Smith int DrawSetViewPort(DrawCtx,double,double,double,double); 328ed539a5SBarry Smith int DrawSetCoordinates(DrawCtx,double,double,double,double); 338ed539a5SBarry Smith int DrawSetDoubleBuffer(DrawCtx); 348ed539a5SBarry Smith int DrawFlush(DrawCtx); 35*20563c6bSBarry Smith int DrawClear(DrawCtx); 36*20563c6bSBarry Smith 37*20563c6bSBarry Smith /* routines related to drawing Axis and line graphs */ 38*20563c6bSBarry Smith 39*20563c6bSBarry Smith typedef struct _DrawAxisCtx* DrawAxisCtx; 40*20563c6bSBarry Smith typedef struct _DrawLGCtx* DrawLGCtx; 41*20563c6bSBarry Smith 42*20563c6bSBarry Smith int DrawAxisCreate(DrawCtx,DrawAxisCtx *); 43*20563c6bSBarry Smith int DrawAxisDestroy(DrawAxisCtx); 44*20563c6bSBarry Smith int DrawAxis(DrawAxisCtx); 45*20563c6bSBarry Smith int DrawAxisSetLimits(DrawAxisCtx,double,double,double,double); 46*20563c6bSBarry Smith int DrawAxisSetColors(DrawAxisCtx,int,int,int); 47*20563c6bSBarry Smith int DrawAxisSetLabels(DrawAxisCtx,char*,char*,char*); 48*20563c6bSBarry Smith 49*20563c6bSBarry Smith int DrawLGCreate(DrawCtx,int,DrawLGCtx *); 50*20563c6bSBarry Smith int DrawLGDestroy(DrawLGCtx); 51*20563c6bSBarry Smith int DrawLGAddPoint(DrawLGCtx,double*,double*); 52*20563c6bSBarry Smith int DrawLG(DrawLGCtx); 53*20563c6bSBarry Smith int DrawLGGetAxisCtx(DrawLGCtx,DrawAxisCtx *); 5443e6b640SBarry Smith 5543e6b640SBarry Smith #endif 56