Is there a way I can disable and enable the interactive behavior of an impoly object programmatically? Specifically, I want to not allow users to move it under certain circumstances. I guess I could use the position callback to move the object back from where it came from but that's a bit inelegant.
Any ideas?
TIA,
Dan

 채택된 답변

Image Analyst
Image Analyst 2014년 2월 13일

0 개 추천

Use impoly() if you want users to interact. Use plot() if you want to put a polygon but don't want the users to interact with it.

댓글 수: 1

Dan
Dan 2014년 2월 14일
You are (of course) correct! I became fixated on fixing some complex thing which I didn't need to use at all. This is an excellent example of the KISS methodology. My code now alternates between the two functions as needed. Thanks again!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

질문:

Dan
2014년 2월 13일

댓글:

Dan
2014년 2월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by