void topen_ws (wkid, conn_id, ws_type)
Pint wkid; char *conn_id; Pint ws_type;
The workstation is recognized in the application by its identifier wkid. All PHIGURE scene visualization functions are for performing workstation operations and therefore use wkid as an input parameter to identify the workstation. The workstation must be opened before any of PHIGURE's scene visualization functions can be used. Therefore, topen_ws must be called before any display calls are made.
Opening the workstation ensures that the display surface is cleared.
conn_id is an identifier permitting PHIGURE to establish a connection with a workstation:
In general this will be "/dev/tty" if the workstation is an X window. (on Unix-system)
Otherwise, it should be "file_name" if the workstation corresponds to an output file. The #define PDEF_ERR_FILE can also be used (it is similar to stderr).
ws_type specifies the type of driver to use. It designates either a type of workstation, or a low level graphic library used to run the workstation. The following drivers are available:
HARDWARE
TYPE
LIBRARY
WS
TYPE
ALLIANT
X-Window
8887
CDC
X-Window
8887
CONVEX
X-Window
8887
CRAY
X-Y
X-Window
8887
DIGITAL
VMS
X-Window
8887
HELWET
PACKARD
X-Window
8887
PEX
8069
or 8070
Open
Gl
7971
Starbase
8384
IBM
RS6000
X-Window
8887
Gl
7177
IBM
VM/CMS
X-Window
8887
MIPS
X-Window
8887
SILICON-GRAPHICS
X-Window
8887
Open
Gl
7971
Gl
7177
SUN
X-Window
8887
Open
Gl
7971
xgl
8871
SONY
X-Window
8887
Normally, for all types of devices shown above, CONN_ID = "/dev/tty" (for Unix system), or PDEF_ERR_FILE define.
Normally, for all types of devices shown above, CONN_ID = "file_name", where file_name is the name of the file to create.