ImagerDeviceInterchange.mesa
Copyright Ó 1990, 1991, 1992 by Xerox Corporation. All rights reserved.
Michael Plass, January 21, 1992 11:14 am PST
Provides a data type for exchanging essential imaging state between types of imaging contexts (e.g., Imager.Context and PSGraphics.Context). The essential state consists of the clipper (now part of the device), color, and transformation information.
DIRECTORY
ImagerColor USING [Color],
ImagerDevice USING [Device],
ImagerTransformation USING [Transformation];
ImagerDeviceInterchange: CEDAR DEFINITIONS
~ BEGIN OPEN ImagerColor, ImagerDevice, ImagerTransformation;
InterchangeState: TYPE ~ REF InterchangeStateRep;
InterchangeStateRep: TYPE ~ RECORD [
device: Device,
clientToView: Transformation,
viewToSurface: Transformation,
surfaceToDevice: Transformation,
color: Color
];
Memory management aids
ObtainInterchangeState: PROC RETURNS [InterchangeState];
Gets an InterchangeState from a small cache.
DestroyInterchangeState: PROC [iState: InterchangeState];
Recycles the non-NIL reps.
END.