SVSelect.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Last edited by Bier on March 11, 1987 4:43:56 pm PST
Contents: To provide a selection mechanism for Solidviews similar to the one found in Gargoyle. In particular, we maintain a list of the selected objects and offer generators and structure browsers to walk through this list.
DIRECTORY
SVSceneTypes;
SVSelect: CEDAR DEFINITIONS =
BEGIN
Scene: TYPE = SVSceneTypes.Scene;
Slice: TYPE = SVSceneTypes.Slice;
SliceDescriptor: TYPE = SVSceneTypes.SliceDescriptor;
SliceParts: TYPE = SVSceneTypes.SliceParts;
SelectionClass: TYPE = SVSceneTypes.SelectionClass;
SliceDescriptorGenerator: TYPE = SVSceneTypes.SliceDescriptorGenerator;
SliceGenerator: TYPE = SVSceneTypes.SliceGenerator;
SelectSlice: PROC [sliceD: SliceDescriptor, scene: Scene, selectClass: SelectionClass];
SelectEntireSlice: PROC [slice: Slice, scene: Scene, selectClass: SelectionClass];
SelectAll: PROC [scene: Scene, selectClass: SelectionClass];
DeselectSlice: PROC [slice: Slice, parts: SliceParts, scene: Scene, selectClass: SelectionClass];
DeselectEntireSlice: PROC [slice: Slice, scene: Scene, selectClass: SelectionClass];
DeselectSliceAllClasses: PROC [slice: Slice, scene: Scene];
DeselectAll: PROC [scene: Scene, selectClass: SelectionClass];
DeselectAllAllClasses: PROC [scene: Scene];
FindSelectedSlice: PROC [slice: Slice, scene: Scene, selectClass: SelectionClass] RETURNS [sliceD: SliceDescriptor];
Returns NIL if the Slice is not selected.
SelectedSlices: PROC [scene: Scene, selectClass: SelectionClass] RETURNS [sGen: SliceDescriptorGenerator];
NextSliceDescriptor: PROC [sGen: SliceDescriptorGenerator] RETURNS [sliceD: SliceDescriptor];
NextSlice: PROC [sGen: SliceDescriptorGenerator] RETURNS [slice: Slice];
IsSelectedInPart: PROC [slice: Slice, scene: Scene, selectClass: SelectionClass] RETURNS [BOOL];
IsSelectedInFull: PROC [slice: Slice, scene: Scene, selectClass: SelectionClass] RETURNS [BOOL];
NoSelections: PROC [scene: Scene, selectClass: SelectionClass] RETURNS [BOOL];
END.