Disable impoly interactive behavior

2 ビュー (過去 30 日間)
Dan
Dan 2014 年 2 月 13 日
コメント済み: Dan 2014 年 2 月 14 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by