DIRECTORY G3dBasic, G3dRender, IO, Rope, ViewerTools; G3dScene: CEDAR DEFINITIONS ~ BEGIN ROPE: TYPE ~ Rope.ROPE; STREAM: TYPE ~ IO.STREAM; Context: TYPE ~ G3dRender.Context; SelPos: TYPE ~ ViewerTools.SelPos; Viewer: TYPE ~ ViewerTools.Viewer; LogProc: TYPE ~ PROC [rope: ROPE]; WriteCameraParameters: PROC [context: Context]; WriteParameters: PROC [context: Context, fileName: ROPE _ NIL]; WriteParametersToStream: PROC [context: Context, out: STREAM]; MakeFrameFromFile: PROC [context: Context, fileName: ROPE]; ReadParameters: PROC [context: Context, fileName: ROPE _ NIL, cmdOut: STREAM _ NIL] RETURNS [shouldRepaint: BOOL]; ParseError: ERROR [position: NAT, fileName: ROPE, viewer: Viewer]; ViewerSelection: TYPE ~ RECORD [viewer: Viewer, selection: SelPos]; Parse: PROC [ context: Context, operation: ROPE, cmdOut: STREAM _ NIL, log: LogProc _ NIL, showErrors: BOOL _ TRUE, fileName: ROPE _ NIL, viewerSelection: ViewerSelection _ [NIL, NIL]] RETURNS [shouldRepaint: BOOL]; END. .G3dScene.mesa Copyright c 1988 by Xerox Corporation. All rights reserved. Bloomenthal, February 19, 1989 1:07:59 pm PST Type Declarations; Write Scene Descriptions to a File or Viewer Write the camera parameters to the primary selection. Write all the relevant parameters of the context to the specified file. If fileName = NIL, obtain it from the current mouse selection. If fileName = NIL and no fileName selected by the mouse, write to the primary selection. Write all the relevant parameters of the context to the output stream. Read Scene Descriptions from a File or Viewer Display a scene described in fileName; leave context unchanged. Read the image tool parameters. If fileName = NIL, obtain it from the current mouse selection. If fileName = NIL and no fileName selected by the mouse, read from the primary selection. Parsing the Scene Description Return character position of error within the file or viewer, whichever is non-NIL. Perform the specified operation on the context. operation consists of an arbitrary number of operations: each operation is a keyword followed by arguments, if required. fileName is the file, if any, from which the operation was read; if it is non-NIL and showErrors is TRUE, it is used to indicate the location of errors. viewerSelection is the viewer and selection, if any, from which the operation was selected; if they are non-NIL and showErrors is TRUE, it is used to indicate the location of errors. See the graphics 3d documentation for a list of operations. If log is non-NIL, a message is sent for each operation parsed. Κ±˜™ Jšœ Οmœ1™Jšœ’œG™XJ™—š‘œžœžœ˜>JšœF™F——š -™-defaultš‘œžœžœ˜;J™?J™—š ‘œžœžœžœ žœžœ˜SJšžœžœ˜J™Jšœ’œ-™>Jšœ’œH™Y——š ™š‘ œžœ žœ žœ˜BJšœO’œ™SJ˜—šœžœžœ%˜CJ˜—š‘œžœ˜ Jšœ˜Jšœ žœ˜Jšœžœžœ˜Jšœžœ˜Jšœ žœžœ˜Jšœ žœžœ˜Jšœ$žœžœ˜.Jšžœžœ˜J˜J™/šœ8™8Jšœ?™?—™@Jšœ ’œ’œ/™W—šœ[™[Jšœ’œ’œ/™Z—J™;Jšœ’œ.™?——J˜Jšžœ˜J˜—…—κ Ι