| version 1.2, 2002/07/11 23:44:38 |
version 1.3, 2002/09/04 23:17:20 |
| Line 23 extern void BXG_Write_Vector(DataType t |
|
| Line 23 extern void BXG_Write_Vector(DataType t |
|
| |
|
| void PaintWall(MeshType *theBox, SCALAR c1, SCALAR d1, SCALAR c2, SCALAR d2, |
void PaintWall(MeshType *theBox, SCALAR c1, SCALAR d1, SCALAR c2, SCALAR d2, |
| int wall, int side, FILE *fp) |
int wall, int side, FILE *fp) |
| { |
{ // {{{ |
| XPoint thePoint[4]; |
XPoint thePoint[4]; |
| |
|
| if (wall == 0) { |
if (wall == 0) { |
| Line 94 void PaintWall(MeshType *theBox, SCALAR |
|
| Line 94 void PaintWall(MeshType *theBox, SCALAR |
|
| fprintf(fp, "%d %d %d %d %d %d %d %d poly\n", |
fprintf(fp, "%d %d %d %d %d %d %d %d poly\n", |
| thePoint[0].x, thePoint[0].y, thePoint[1].x, thePoint[1].y, |
thePoint[0].x, thePoint[0].y, thePoint[1].x, thePoint[1].y, |
| thePoint[2].x, thePoint[2].y, thePoint[3].x, thePoint[3].y); |
thePoint[2].x, thePoint[2].y, thePoint[3].x, thePoint[3].y); |
| } |
} // }}} |
| |
|
| /****************************************************************/ |
|
| |
|
| void PostScriptOpenWindow(WindowType theWindow, char *eps_file_name, |
void PostScriptOpenWindow(WindowType theWindow, char *eps_file_name, |
| char *plot_title) |
char *plot_title) |
| { |
{ // {{{ |
| DataType data_Ptr, ptr; |
DataType data_Ptr, ptr; |
| LabelType label_Ptr; |
LabelType label_Ptr; |
| int i, j, n; |
int i, j, n; |
| Line 367 void PostScriptOpenWindow(WindowType the |
|
| Line 365 void PostScriptOpenWindow(WindowType the |
|
| fprintf(fp, "showpage\n\n"); |
fprintf(fp, "showpage\n\n"); |
| if (fclose(fp)) |
if (fclose(fp)) |
| printf("PostScriptOpenWindow(): File was not closed properly!"); |
printf("PostScriptOpenWindow(): File was not closed properly!"); |
| } |
} // }}} |
| |
|
| /****************************************************************/ |
|
| |
|
| void PostScript_Vector_Window(WindowType theWindow, char *eps_file_name, |
void PostScript_Vector_Window(WindowType theWindow, char *eps_file_name, |
| char *plot_title) |
char *plot_title) |
| { |
{ // {{{ |
| DataType data_Ptr; |
DataType data_Ptr; |
| LabelType label_Ptr; |
LabelType label_Ptr; |
| int i, j, m, n, nstart = 0, mstart = 0, nend, mend; |
int i, j, m, n, nstart = 0, mstart = 0, nend, mend; |
| Line 610 void PostScript_Vector_Window(WindowType |
|
| Line 606 void PostScript_Vector_Window(WindowType |
|
| |
|
| if (fclose(fp)) |
if (fclose(fp)) |
| printf("PostScriptOpenWindow(): File was not closed properly!"); |
printf("PostScriptOpenWindow(): File was not closed properly!"); |
| } |
} // }}} |
| |
|
| /****************************************************************/ |
|
| |
|
| void PSHeader(char *filename) |
void PSHeader(char *filename) |
| { |
{ // {{{ |
| FILE *fp; |
FILE *fp; |
| |
|
| if ((fp = fopen(filename,"w"))==NULL) { |
if ((fp = fopen(filename,"w"))==NULL) { |
| Line 762 void PSHeader(char *filename) |
|
| Line 756 void PSHeader(char *filename) |
|
| |
|
| fprintf(fp, "%%%%End XGrafix PS Macros\n\n"); |
fprintf(fp, "%%%%End XGrafix PS Macros\n\n"); |
| fclose(fp); |
fclose(fp); |
| } |
} // }}} |
| |
|
| /****************************************************************/ |
|
| |
|
| void PostScript_ThreeD_Window(WindowType theWindow, char *eps_file_name, |
void PostScript_ThreeD_Window(WindowType theWindow, char *eps_file_name, |
| char *plot_title) |
char *plot_title) |
| { |
{ // {{{ |
| DataType data_Ptr; |
DataType data_Ptr; |
| LabelType label_Ptr; |
LabelType label_Ptr; |
| MeshType **theMeshPoint, theBox[8]; |
MeshType **theMeshPoint, theBox[8]; |
| Line 1498 void PostScript_ThreeD_Window(WindowType |
|
| Line 1490 void PostScript_ThreeD_Window(WindowType |
|
| fprintf(fp, "\nshowpage\n"); |
fprintf(fp, "\nshowpage\n"); |
| if (fclose(fp)) |
if (fclose(fp)) |
| printf("PostScriptOpenWindow(): File was not closed properly!"); |
printf("PostScriptOpenWindow(): File was not closed properly!"); |
| } |
} // }}} |
| |
|
| /****************************************************************/ |
|
| |
|
| /****************************************************************/ |
|
| |
|
| void Ascii_TwoD_Window(WindowType theWindow, char *filename, char *type) |
void Ascii_TwoD_Window(WindowType theWindow, char *filename, char *type) |
| { |
{ // {{{ |
| FILE *fp; |
FILE *fp; |
| DataType theData = theWindow->data; |
DataType theData = theWindow->data; |
| LabelType theLabel= theWindow->label; |
LabelType theLabel= theWindow->label; |
| Line 1541 void Ascii_TwoD_Window(WindowType theWin |
|
| Line 1529 void Ascii_TwoD_Window(WindowType theWin |
|
| } |
} |
| |
|
| fclose(fp); |
fclose(fp); |
| } |
} // }}} |
| |
|
| /****************************************************************/ |
|
| |
|
| void Ascii_ThreeD_Window(WindowType theWindow, char *filename, char *type) |
void Ascii_ThreeD_Window(WindowType theWindow, char *filename, char *type) |
| { |
{ // {{{ |
| FILE *fp; |
FILE *fp; |
| DataType theData = theWindow->data; |
DataType theData = theWindow->data; |
| LabelType theLabel= theWindow->label; |
LabelType theLabel= theWindow->label; |
| Line 1601 void Ascii_ThreeD_Window(WindowType theW |
|
| Line 1587 void Ascii_ThreeD_Window(WindowType theW |
|
| } |
} |
| |
|
| fclose(fp); |
fclose(fp); |
| } |
} // }}} |
| |
|
| /****************************************************************/ |
|
| |
|
| void Ascii_Vector_Window(WindowType theWindow, char *filename, char *type) |
void Ascii_Vector_Window(WindowType theWindow, char *filename, char *type) |
| { |
{ // {{{ |
| FILE *fp; |
FILE *fp; |
| DataType theData = theWindow->data; |
DataType theData = theWindow->data; |
| int i,j,m,n; |
int i,j,m,n; |
| Line 1637 void Ascii_Vector_Window(WindowType theW |
|
| Line 1621 void Ascii_Vector_Window(WindowType theW |
|
| } |
} |
| |
|
| fclose(fp); |
fclose(fp); |
| } |
} // }}} |
| |
|
| /* |
/* |
| extern void BXG_Write_2D(DataType theData,LabelType theLabel,StructType *structs,char *filename, char *type, double *theTimeStep); |
extern void BXG_Write_2D(DataType theData,LabelType theLabel,StructType *structs,char *filename, char *type, double *theTimeStep); |
| Line 1646 extern void BXG_Write_Vector(DataType t |
|
| Line 1630 extern void BXG_Write_Vector(DataType t |
|
| */ |
*/ |
| |
|
| void Bin_TwoD_Window(WindowType theWindow, char *filename, char *type) |
void Bin_TwoD_Window(WindowType theWindow, char *filename, char *type) |
| { |
{ // {{{ |
| //BXG_Write_2D(theWindow->data,theWindow->label, filename, type, theTimeStep); |
//BXG_Write_2D(theWindow->data,theWindow->label, filename, type, theTimeStep); |
| BXG_Write_2D(theWindow->data, |
BXG_Write_2D(theWindow->data, |
| theWindow->label, |
theWindow->label, |
| Line 1654 void Bin_TwoD_Window(WindowType theWindo |
|
| Line 1638 void Bin_TwoD_Window(WindowType theWindo |
|
| filename, |
filename, |
| type, |
type, |
| theTimeStep); |
theTimeStep); |
| } |
} // }}} |
| |
|
| void Bin_ThreeD_Window(WindowType theWindow, char *filename, char *type) |
void Bin_ThreeD_Window(WindowType theWindow, char *filename, char *type) |
| { |
{ // {{{ |
| BXG_Write_3D(theWindow->data, |
BXG_Write_3D(theWindow->data, |
| theWindow->label, |
theWindow->label, |
| // theWindow->structures, |
// theWindow->structures, |
| filename, |
filename, |
| type, |
type, |
| theTimeStep); |
theTimeStep); |
| } |
} // }}} |
| |
|
| void Bin_Vector_Window(WindowType theWindow, char *filename, char *type) |
void Bin_Vector_Window(WindowType theWindow, char *filename, char *type) |
| { |
{ // {{{ |
| BXG_Write_Vector(theWindow->data, |
BXG_Write_Vector(theWindow->data, |
| theWindow->label, |
theWindow->label, |
| theWindow->structures, |
theWindow->structures, |
| filename, |
filename, |
| type, |
type, |
| theTimeStep); |
theTimeStep); |
| } |
} // }}} |
| |
|
| // Modeline for ViM {{{1 |
// Modeline for ViM {{{1 |
| // vim:set ts=4: |
// vim:set ts=4: |