122 lines
2.6 KiB
C
122 lines
2.6 KiB
C
/*
|
|
* Copyright (c) 1986, 1987, 1988, 1989 by Sun Microsystems, Inc.
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose and without fee is hereby granted, provided that the above
|
|
* copyright notice appear in all copies and that both that copyright
|
|
* notice and this permission notice are retained, and that the name
|
|
* of Sun Microsystems, Inc., not be used in advertising or publicity
|
|
* pertaining to this software without specific, written prior permission.
|
|
* Sun Microsystems, Inc., makes no representations about the suitability
|
|
* of this software or the interface defined in this software for any
|
|
* purpose. It is provided "as is" without express or implied warranty.
|
|
*/
|
|
#ifndef lint
|
|
static char sccsid[] = "@(#)textmarkpas.c 1.1 94/10/31 Copyr 1983 Sun Micro";
|
|
#endif
|
|
|
|
/*
|
|
Copyright (c) 1983 by Sun Microsystems, Inc.
|
|
*/
|
|
|
|
#include "pasarray.h"
|
|
|
|
int marker_abs_2();
|
|
int marker_abs_3();
|
|
int marker_rel_2();
|
|
int marker_rel_3();
|
|
int polymarker_abs_2();
|
|
int polymarker_abs_3();
|
|
int polymarker_rel_2();
|
|
int polymarker_rel_3();
|
|
int text();
|
|
|
|
int markerabs2(mx, my)
|
|
double mx, my;
|
|
{
|
|
return(marker_abs_2(mx, my));
|
|
}
|
|
|
|
int markerabs3(mx, my, mz)
|
|
double mx, my, mz;
|
|
{
|
|
return(marker_abs_3(mx, my, mz));
|
|
}
|
|
|
|
int markerrel2(dx, dy)
|
|
double dx, dy;
|
|
{
|
|
return(marker_rel_2(dx, dy));
|
|
}
|
|
|
|
int markerrel3(dx, dy, dz)
|
|
double dx, dy, dz;
|
|
{
|
|
return(marker_rel_3(dx, dy, dz));
|
|
}
|
|
|
|
int polymarkerabs2(xcoord, ycoord, n)
|
|
double xcoord[], ycoord[];
|
|
int n;
|
|
{
|
|
int i;
|
|
for (i = 0; i < n; ++i) {
|
|
xcoort[i] = xcoord[i];
|
|
ycoort[i] = ycoord[i];
|
|
}
|
|
return(polymarker_abs_2(xcoort, ycoort, n));
|
|
}
|
|
|
|
int polymarkerabs3(xcoord, ycoord, zcoord, n)
|
|
double xcoord[], ycoord[], zcoord[];
|
|
int n;
|
|
{
|
|
int i;
|
|
for (i = 0; i < n; ++i) {
|
|
xcoort[i] = xcoord[i];
|
|
ycoort[i] = ycoord[i];
|
|
zcoort[i] = zcoord[i];
|
|
}
|
|
return(polymarker_abs_3(xcoort, ycoort, zcoort, n));
|
|
}
|
|
|
|
int polymarkerrel2(xcoord, ycoord, n)
|
|
double xcoord[], ycoord[];
|
|
int n;
|
|
{
|
|
int i;
|
|
for (i = 0; i < n; ++i) {
|
|
xcoort[i] = xcoord[i];
|
|
ycoort[i] = ycoord[i];
|
|
}
|
|
return(polymarker_rel_2(xcoort, ycoort, n));
|
|
}
|
|
|
|
int polymarkerrel3(xcoord, ycoord, zcoord, n)
|
|
double xcoord[], ycoord[], zcoord[];
|
|
int n;
|
|
{
|
|
int i;
|
|
for (i = 0; i < n; ++i) {
|
|
xcoort[i] = xcoord[i];
|
|
ycoort[i] = ycoord[i];
|
|
zcoort[i] = zcoord[i];
|
|
}
|
|
return(polymarker_rel_3(xcoort, ycoort, zcoort, n));
|
|
}
|
|
|
|
int puttext(f77string)
|
|
char *f77string;
|
|
{
|
|
char *sptr;
|
|
char pasarg[257];
|
|
int i,strlen;
|
|
|
|
strlen = 256;
|
|
sptr = f77string+256;
|
|
while ((*--sptr) == ' ') {strlen--;};
|
|
strncpy (pasarg,f77string,strlen);
|
|
pasarg[strlen] = '\0';
|
|
i = text(pasarg);
|
|
return(i);
|
|
}
|