OOF2: The Manual
Name
OOF.Graphics_n.Toolbox.Select_Segment.Rectangle — Drag to select segments within a rectangle.
Synopsis
OOF.Graphics_n.Toolbox.Select_Segment.Rectangle(skeleton, points, shift, ctrl)
Details
- Parent Menu: OOF.Graphics_n.Toolbox.Select_Segment
-
Callback: function
SkelSelectToolbox.selectCBin moduleooflib.common.IO.genericselecttoolbox -
Parameters:
Description
RectangleSegmentSelect is a selection
method that selects Segments in response to a mouse click in
the graphics window when
the Skeleton
Selection toolbox is active and is set to
“Segment” mode. It selects all Segments lying within
a rectangle swept out by dragging the mouse, as shown in Figure 6.30. Click the mouse on one corner
of the rectangle and drag to the opposite corner. Only Segments
that are completly within the rectangle will be selected.
skeleton is the Skeleton from which the Segments are
to be selected.
points is a list of
Point objects. The first and last
points in the list are diagonally opposite corners of the
rectangle. Any other points in the list will be ignored.
The shift and ctrl parameters
govern how the current selection
(i.e, the set of Segments defined by
this operation) is merged with the previous selection (the Segments
already selected) to form a new selection, as shown in Table 6.1. They indicate whether
(True) or not (False)
the shift and control keys were depressed during the mouse click
that initiated this command.
Figure 6.30. Selecting a Rectangular Set of Segments

(a) Click and drag as shown by the yellow arrow to define a rectangle.
(b) The Segments that lie completely within the rectangle are
selected.



