Module Gr.Workstation
type idtype workstation_type=Available workstation types, see also GR Workstation Types
val wid : int -> idval open' : id -> string -> workstation_type -> unitopen' workstation_id connection typeopens a graphical workstation.Parameters
workstation_id: a workstation identifierconnection: a connection identifiertype: the desired workstation type
val close : id -> unitval activate : id -> unitval deactivate : id -> unitval clear : unit -> unitval update : unit -> unitval set_window : float -> float -> float -> float -> unitset_window xmin xmax ymin ymaxsets the area of the NDC viewport that is to be drawn in the workstation window.This function defines the rectangular area of the Normalized Device Coordinate space to be output to the device. By default, the workstation transformation will map the range [0,1] x [0,1] in NDC onto the largest square on the workstation’s display surface. The aspect ratio of the workstation window is maintained at 1 to 1.
Parameters
xmin: The left horizontal coordinate of the workstation window (0 <=xmin<xmax).xmax: The right horizontal coordinate of the workstation window (xmin<xmax<= 1).ymin: The bottom vertical coordinate of the workstation window (0 <=ymin<ymax).ymax: The top vertical coordinate of the workstation window (ymin<ymax<= 1).
val set_viewport : float -> float -> float -> float -> unitset_viewport xmin xmax ymin ymaxdefines the size of the workstation graphics window in meters.This function places a workstation window on the display of the specified size in meters. This command allows the workstation window to be accurately sized for a display or hardcopy device, and is often useful for sizing graphs for desktop publishing applications.
Parameters
xmin: The left horizontal coordinate of the workstation window.xmax: The right horizontal coordinate of the workstation window.ymin: The bottom vertical coordinate of the workstation window.ymax: The top vertical coordinate of the workstation window.
val copy_segment : segment -> unitval redraw_segment : unit -> unit