PEDisplay.mesa
Copyright (C) 1984 by Xerox Corporation. All rights reserved.
Written by Darlene Plebon on August 18, 1983 1:44 pm
Path display routines.
DIRECTORY
PETypes,
ViewerClasses USING [Viewer];
PEDisplay: CEDAR DEFINITIONS =
BEGIN OPEN PETypes;
DrawSegmentAndVertices: PROCEDURE [pathViewer: ViewerClasses.Viewer, segment: Segment, undo: BOOLEANFALSE, background: BOOLEANFALSE];
This routine draws the specified segment and its vertices. If undo is true, the drawing color is white (to erase), otherwise it is grey when background is true and black when background is false.
DrawVertices: PROCEDURE [pathViewer: ViewerClasses.Viewer, segment: Segment, undo: BOOLEANFALSE, background: BOOLEANFALSE];
This routine draws the vertices of the specified segment. If undo is true, the drawing color is white (to erase), otherwise it is grey when background is true and black when background is false.
DrawControlPoints: PROCEDURE [pathViewer: ViewerClasses.Viewer, segment: Segment, undo: BOOLEANFALSE, background: BOOLEANFALSE];
This routine draws only the control point vertices of the specified segment. If undo is true, the drawing color is white (to erase), otherwise it is grey when background is true and black when background is false.
DrawVertex: PROCEDURE [pathViewer: ViewerClasses.Viewer, vertex: Vertex, undo: BOOLEANFALSE, background: BOOLEANFALSE];
This routine draws only the specified vertex. If undo is true, the drawing color is white (to erase), otherwise it is grey when background is true and black when background is false.
DrawSegment: PROCEDURE [pathViewer: ViewerClasses.Viewer, segment: Segment, undo: BOOLEANFALSE, background: BOOLEANFALSE];
This routine draws only the specified segment but not its vertices. If undo is true, the drawing color is white (to erase), otherwise it is grey when background is true and black when background is false.
END.