MATLAB Answers

Dan
0

Disable impoly interactive behavior

Asked by Dan
on 13 Feb 2014
Latest activity Commented on by Dan
on 14 Feb 2014
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

  0 Comments

Sign in to comment.

1 Answer

Answer by Image Analyst
on 13 Feb 2014
 Accepted Answer

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 Comment

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!

Sign in to comment.