Opens a gks workstation
#include <ncarg/gks.h>
void gopen_ws(Gint ws_id, const char *conn_id, Gint ws_type);
(Input) - A number assigned to a workstation as an identifier that is to be used in all subsequent calls to GKS functions that require a workstation identifier. In NCAR GKS, ws_id can be any non-negative integer.
(Input) - A connection identifier that has different meanings for different workstation types (see the USAGE section below).
(Input) - An identifier specifying the specific type of output device targeted. Each GKS package has an implementation-dependent set of workstation types that the package supports. The legal workstation types in NCAR GKS are:
- NCGM
- WISS
- pre-existing X11 window.
- non-existing X11 window.
- text dump of graphics output.
- PDF in portrait mode.
- PDF in landscape mode.
- color PostScript in portrait mode.
- color Encapsulated PostScript (EPS) in portrait mode.
- color Encapsulated PostScript Interchange format (EPSI) in portrait mode.
- monochrome PostScript in portrait mode.
- monochrome Encapsulated PostScript (EPS) in portrait mode.
- monochrome Encapsulated PostScript Interchange format (EPSI) in portrait mode.
- color PostScript in landscape mode.
- color Encapsulated PostScript (EPS) in landscape mode.
- color Encapsulated PostScript Interchange format (EPSI) in landscape mode.
- monochrome PostScript in landscape mode.
- monochrome Encapsulated PostScript (EPS) in landscape mode.
- monochrome Encapsulated PostScript Interchange format (EPSI) in landscape mode.
For workstation types of 1 (CGM) the connection ID is the name of the CGM file. One can have at most one workstation of type 1 open at a time.
For workstations of type 3 (WISS) the connection ID is irrelevant. One can have at most one workstation of type 3 open. One can have workstations of types 1 and 3 open simultaneously and they must have distinct connection IDs. To use the GFLASH package or any GKS segmentation functions WISS must be opened first.
For workstations of type 7 the connection ID is the X11 window ID for the existing window. This number should be passed as a string; for example, "3" for an X11 window ID of 3.
For workstations of type 8 an X11 window will be created at open workstation time. The connection ID is irrelevant for workstations of type 8.
For workstations of type 10, the ASCII text is written to standard output and the connection ID is irrelevant.
There can be a maximum of fifteen simultaneously open workstations of all types.
To use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries.
Online: gopen_gks(3NCARG), gactivate_ws(3NCARG), gdeactivate_ws(3NCARG), gclose_ws(3NCARG), gclose_gks(3NCARG), opngks(3NCARG), clsgks(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.