AISViewer.mesa
Last Edited by: Diebert, April 8, 1985 10:36:41 am PST
Copyright (C) 1985, Xerox Corporation. All rights reserved.
DIRECTORY
Rope USING [ROPE],
ViewerClasses USING [Viewer, ViewerRec];
AISViewer: CEDAR DEFINITIONS = BEGIN
CreateAISViewer: PUBLIC PROC
[info: ViewerClasses.ViewerRec ← [], paint: BOOLTRUE]
RETURNS [new: ViewerClasses.Viewer];
Creates a viewer for AIS files. This viewer scales the image to fit in the display window.
ProgressProc: TYPE =
PROC
[scanStart, pixelStart, scans, pixels: CARDINAL, clientData: REF ANYNIL];
RPProc: TYPE =
PROC [scanStart, pixelStart, scans, pixels: REAL, clientData: REF ANYNIL];
DisplayAIS: PUBLIC PROC [v: ViewerClasses.Viewer,
fileName: Rope.ROPENIL, wDir: Rope.ROPENIL,
allowSubWindow: BOOLFALSE, progressProc: ProgressProc ← NIL, rpProc: RPProc ← NIL,
clientData: REF ANYNIL, paint: BOOLTRUE];
Displays the named AIS file in the viewer. If fileName is not supplied, the viewer is cleared of any image. If allowSubWindow = TRUE, a sub window selector is provided. This selector is an XOR over the image. If progressProc or rpProc is specified a call is made at every mouse notify sending the subwindow parameters as subset of the original AIS image.
GetCurrentSubWindow: PUBLIC PROC [v: ViewerClasses.Viewer]
RETURNS [scanStart, pixelStart, scans, pixels: CARDINAL, clientData: REF ANYNIL];
Returns the current size and location of the subwindow.
END.