Geometry Ui
app.ui.qt.shared.geometry_uiModule for geometry ui; implements the Qt presentation components.
See Also
draw_active_bbox— draws geometry using widget-space handlesAnnotationOverlayWidget— consumes the geometry helpers
Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.
get_handle_points_from_rect(rect: QRect) -> list[QPoint]
Return the eight corner and edge-midpoint handles of a rectangle.
| PARAMETER | DESCRIPTION |
|---|---|
rect
|
Rectangle whose handle positions are calculated.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[QPoint]
|
Points ordered clockwise from the top-left corner, omitting the center. |