Disable impoly interactive behavior

4 Ansichten (letzte 30 Tage)
Dan
Dan am 13 Feb. 2014
Kommentiert: Dan am 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

Akzeptierte Antwort

Image Analyst
Image Analyst am 13 Feb. 2014
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 Kommentar
Dan
Dan am 14 Feb. 2014
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!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Support Package for IP Cameras finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by