DIRECTORY ImagerPath USING [PathProc], ImagerTransformation USING [Transformation], SF USING [Box, BoxAction, maxBox]; ImagerScanConverter: CEDAR DEFINITIONS ~ BEGIN PathProc: TYPE ~ ImagerPath.PathProc; Transformation: TYPE ~ ImagerTransformation.Transformation; Box: TYPE ~ SF.Box; maxBox: Box ~ SF.maxBox; BoxAction: TYPE ~ SF.BoxAction; DevicePath: TYPE ~ REF DevicePathRep; DevicePathRep: TYPE; CreatePath: PROC [path: PathProc, transformation: Transformation _ NIL, clipBox: Box _ maxBox, scratch: DevicePath _ NIL -- for re-use of storage ] RETURNS [DevicePath]; BoundingBox: PROC [devicePath: DevicePath, clipBox: Box _ maxBox] RETURNS [Box]; NumberOfBoxes: PROC [devicePath: DevicePath] RETURNS [INT]; ConvertToBoxes: PROC [devicePath: DevicePath, oddWrap: BOOL _ FALSE, clipBox: Box _ maxBox, boxAction: BoxAction]; ConvertToManhattanPolygon: PROC [devicePath: DevicePath, oddWrap: BOOL _ FALSE, clipBox: Box _ maxBox] RETURNS [LIST OF Box]; END. rImagerScanConverter.mesa Copyright c 1984, 1985, 1986 by Xerox Corporation. All rights reserved. Michael Plass, April 29, 1985 1:07:06 pm PDT Doug Wyatt, March 7, 1986 2:06:19 pm PST Not always as tight as possible, but should be pretty close. Guaranteed to be an upper bound, should be close to the actual. Satisfies assertion for an ImagerManhattan.Polygon. Κ‹˜codešœ™Kšœ Οmœ=™HK™,K™(—K˜šΟk ˜ Kšœ žœ ˜Kšœžœ˜,Kšžœžœ˜"—K˜KšΠblœžœž ˜&šœž˜K˜Kšœ žœ˜%Kšœžœ'˜;Kšœžœžœ˜Kšœžœ˜šœ žœžœ ˜K˜—Kšœ žœžœ˜%šœžœ˜K˜—š Οn œžœ4žœ/žœΟcœžœ˜ͺK˜—š  œžœ1žœ˜PK™