draggableRect

버전 1.1.0.1 (49.6 KB) 작성자: Brett Shoelson
Create a draggable rectangle in normalized units.
다운로드 수: 670
업데이트 날짜: 2016/9/1

라이선스 보기

Like MATLAB's dragrect function, this function allows you to interactively define a draggable rectangle. However, UNLIKE MATLAB's function, this version works in normalized units, and it includes SNAP-TO behavior to constrain the rectangle to a user-specified grid.
Syntactically, the function is implemented to use Parameter-Value pairs, and allows the user to specify a non-interactive starting point, arrays of x- and y- points for snap-to behavior, and the axis you want to draw in. Outputs variables can contain a handle to the created rectangle, as well as an array of handles to the draggable perimeter points. (Output points are in the order: [BL,BR,TL,TR,BM,TM,RM,LM]).
Now accepts a "new position callback function."

Thanks to Francois Bouffard for his excellent implementation of "draggable," which greatly facilitated this entry.

인용 양식

Brett Shoelson (2024). draggableRect (https://www.mathworks.com/matlabcentral/fileexchange/35895-draggablerect), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Interactive Control and Callbacks에 대해 자세히 알아보기
도움

받음: draggable

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.1

Updated license

1.1.0.0

Modified to allow specification of new position callback function. Also added new example to show how to use draggableRect on top of an image axes (for example).

1.0.0.0