AU-ExoMars / PCOT

Pancam Operations Toolkit
MIT License
3 stars 0 forks source link

Changing colour mapping on the rect node (and possibly others) doesn't work #42

Closed jimfinnis closed 2 years ago

jimfinnis commented 2 years ago

What it says up there.

jimfinnis commented 2 years ago

In a normal node (e.g. histequal): canvas greenIndexChanged calls redisplay.

In rect, that still happens but it doesn't work. Hm. One difference: premapped is true in ROIs. Why? Ah, there we are - all these ROI nodes use premapping so they can display the annotated RGB output.

However, we do set a "nodeToUIChange" - so we need to write a uichange method. Er. OK?

That's done, and the method calls the graph's changed() method, telling it to recursively perform this node. That's done inside XFormROIType, so it should work for all ROIs.

jimfinnis commented 2 years ago

Fixed in f77e934719ecb897923c1304190392a451f4869a