📄 fortint.h
字号:
voidframing_ (Xll, Yll, Xur, Yur)double *Xll, *Yll, *Xur, *Yur;{ Framing (*Xll, *Yll, *Xur, *Yur);} voidsetfastcolor_ (Color)int *Color;{ SetFastColor (*Color);}void setnamedcolor_ (ColorName)char *ColorName;{ SetNamedColor (ColorName);}voidsetquickcolor_(ColorPix)int *ColorPix;{ SetQuickColor((unsigned long)(*ColorPix));}intcolorcode_(R, G, B)int *R, *G, *B;{ int r; r = ColorCode(*R, *G, *B); return(r);} voidsetnumcolor_(ClPx)int *ClPx;{ SetNumColor(ClPx);}voidsetnamedbackground_ (ColorName)char *ColorName;{ SetNamedBackground (ColorName);}voidsetdashlength_(Length)int *Length;{ SetDashLength (*Length);}voidsetlinestyle_(Style)int *Style;{ SetLineStyle(*Style);}setlinewidth_(Width)int *Width;{ SetLineWidth(*Width);}voidsetfillstyle_(style)char *style;{ SetFillStyle(style);}voidsetfont_(FontName, Weight, Orientation, Size)char *FontName, *Weight, *Orientation;int *Size;{ SetFont (FontName, Weight, Orientation, *Size);}voiddraw_ (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ Draw(*X1, *Y1, *X2, *Y2);}void setpoint_ (X, Y)double *X, *Y;{ SetPoint (*X, *Y);}void drawto_ (X, Y)double *X, *Y;{ DrawTo (*X, *Y);}voiddrawrectangle_ (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ DrawRectangle (*X1, *Y1, *X2, *Y2);}voidfillrectangle_ (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ FillRectangle (*X1, *Y1, *X2, *Y2);}void fillpolygon_ (points, npoints)double points[]; int *npoints;{ XPoint *WinPoints; double UserX, UserY; int xx, yy; int i; if (InitOK == FALSE || FramOK == FALSE) error ("Sorry, you must call Initplot and Framing before anything else"); if (Output == PSOnly || Output == XAndPS) fprintf (PSFile, "stroke newpath\n"); if (Output == XOnly || Output == XAndPS) { CheckEvent(); WinPoints = (XPoint *) calloc (*npoints, sizeof(XPoint)); } for (i=0; i<*npoints; i++) { UserX = points[i]; UserY = points[i+*npoints]; if (Output == XOnly || Output == XAndPS) { User2Win (UserX, UserY, &xx, &yy); WinPoints[i].x = xx; WinPoints[i].y = yy; } if (Output == PSOnly || Output == XAndPS) { UserPSWin (UserX, UserY, &xx, &yy); if (i==0) fprintf (PSFile, "%d %d M\n", xx, yy); else fprintf (PSFile, "%d %d L\n", xx, yy); } } if (Output == PSOnly || Output == XAndPS) { fprintf (PSFile, "CLP gsave 0.00 setgray fill grestore\n"); CheckPathLength(*npoints, xx, yy); } if (Output == XOnly || Output == XAndPS) { XFillPolygon (display, GraphWin, GraphContext, WinPoints, *npoints, Complex, CoordModeOrigin); XFillPolygon (display, Backup, BackContext, WinPoints, *npoints, Complex, CoordModeOrigin); } cfree (WinPoints);}voiddrawcircle_(X, Y, Radius)double *X, *Y, *Radius;{ DrawCircle (*X, *Y, *Radius);}voidmoveto_ (X, Y)double *X, *Y;{ MoveTo (*X, *Y);}void writetext_(Text)char *Text;{ WriteText (Text);}voidwritefloat_(Number, TotChar, DecChar)double *Number;int *TotChar, *DecChar;{ WriteFloat(*Number, *TotChar, *DecChar);}voidwriteint_(Number, CharNum)int *Number,*CharNum;{ WriteInt(*Number, *CharNum);}voidputstartbutton_(){ PutStartButton();}voidputstopbutton_(){ PutStopButton();}void initplot_(ColorName, width, height, PSFileName, OutPar)char *ColorName, *PSFileName;unsigned int *width, *height, *OutPar;{ InitPlot (ColorName, *width, *height, PSFileName, *OutPar);}voidnextpage_ (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ NextPage ();}voidendplot_(){ EndPlot();}voidinitbirdseye_(n1, n2, n3)double *n1, *n2, *n3;{ InitBirdsEye(*n1, *n2, *n3);}voidd3drawline_(sx, xy, sz, ex, ey, ez)double *sx, *xy, *sz, *ex, *ey, *ez;{ D3DrawLine(*sx, *xy, *sz, *ex, *ey, *ez);} voidd3setpoint_(x, y, z)double *x, *y, *z;{ D3SetPoint(*x, *y, *z);}voidd3moveto_(x, y, z)double *x, *y, *z;{ D3MoveTo(*x, *y, *z);}voidd3drawto_(x, y, z)double *x, *y, *z;{ D3DrawTo(*x, *y, *z);}voidd3fillrect_(X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3, X4, Y4, Z4)double *X1, *Y1, *Z1, *X2, *Y2, *Z2, *X3, *Y3, *Z3, *X4, *Y4, *Z4;{ D3FillRect(*X1, *Y1, *Z1, *X2, *Y2, *Z2, *X3, *Y3, *Z3, *X4, *Y4, *Z4);}/*voiddrawf(Xll, Yll, Xur, Yur, Nx, Ny)double *Xll, *Yll, *Xur, *Yur;int *Nx, *Ny;{ DrawF(*Xll, *Yll, *Xur, *Yur, *Nx, *Ny);}voidd3drawsurf(psi, size, maxsize)double **psi;int *size, *maxsize;{ D3DrawSurf_(psi, *size, *maxsize);}*//* Interface for HP-UX */voidframing (Xll, Yll, Xur, Yur)double *Xll, *Yll, *Xur, *Yur;{ Framing (*Xll, *Yll, *Xur, *Yur);} voidsetfastcolor (Color)int *Color;{ SetFastColor (*Color);}void setnamedcolor (ColorName)char *ColorName;{ SetNamedColor (ColorName);}voidsetnamedbackground (ColorName)char *ColorName;{ SetNamedBackground (ColorName);}voidsetdashlength(Length)int *Length;{ SetDashLength (*Length);}voidsetlinestyle(Style)int *Style;{ SetLineStyle(*Style);}setlinewidth(Width)int *Width;{ SetLineWidth(*Width);}voidsetfillstyle(style)char *style;{ SetFillStyle(style);}voidsetfont(FontName, Weight, Orientation, Size)char *FontName, *Weight, *Orientation;int *Size;{ SetFont (FontName, Weight, Orientation, *Size);}voiddraw (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ Draw(*X1, *Y1, *X2, *Y2);}void setpoint (X, Y)double *X, *Y;{ SetPoint (*X, *Y);}void drawto (X, Y)double *X, *Y;{ DrawTo (*X, *Y);}voiddrawrectangle (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ DrawRectangle (*X1, *Y1, *X2, *Y2);}voidfillrectangle (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ FillRectangle (*X1, *Y1, *X2, *Y2);}void fillpolygon (points, npoints)double points[]; int *npoints;{ XPoint *WinPoints; double UserX, UserY; int xx, yy; int i; if (InitOK == FALSE || FramOK == FALSE) error ("Sorry, you must call Initplot and Framing before anything else"); if (Output == PSOnly || Output == XAndPS) fprintf (PSFile, "stroke newpath\n"); if (Output == XOnly || Output == XAndPS) { CheckEvent(); WinPoints = (XPoint *) calloc (*npoints, sizeof(XPoint)); } for (i=0; i<*npoints; i++) { UserX = points[i]; UserY = points[i+*npoints]; if (Output == XOnly || Output == XAndPS) { User2Win (UserX, UserY, &xx, &yy); WinPoints[i].x = xx; WinPoints[i].y = yy; } if (Output == PSOnly || Output == XAndPS) { UserPSWin (UserX, UserY, &xx, &yy); if (i==0) fprintf (PSFile, "%d %d M\n", xx, yy); else fprintf (PSFile, "%d %d L\n", xx, yy); } } if (Output == PSOnly || Output == XAndPS) { fprintf (PSFile, "CLP gsave 0.00 setgray fill grestore\n"); CheckPathLength(*npoints, xx, yy); } if (Output == XOnly || Output == XAndPS) { XFillPolygon (display, GraphWin, GraphContext, WinPoints, *npoints, Complex, CoordModeOrigin); XFillPolygon (display, Backup, BackContext, WinPoints, *npoints, Complex, CoordModeOrigin); } cfree (WinPoints);}voiddrawcircle(X, Y, Radius)double *X, *Y, *Radius;{ DrawCircle (*X, *Y, *Radius);}voidmoveto (X, Y)double *X, *Y;{ MoveTo (*X, *Y);}void writetext(Text)char *Text;{ WriteText (Text);}voidwritefloat(Number, TotChar, DecChar)double *Number;int *TotChar, *DecChar;{ WriteFloat(*Number, *TotChar, *DecChar);}voidwriteint(Number, CharNum)int *Number,*CharNum;{ WriteInt(*Number, *CharNum);}voidputstartbutton(){ PutStartButton();}voidputstopbutton(){ PutStopButton();}void initplot(ColorName, width, height, PSFileName, OutPar)char *ColorName, *PSFileName;unsigned int *width, *height, *OutPar;{ InitPlot (ColorName, *width, *height, PSFileName, *OutPar);}voidnextpage (X1, Y1, X2, Y2)double *X1, *Y1, *X2, *Y2;{ NextPage ();}voidendplot(){ EndPlot();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -