|
From: | Rik |
Subject: | Re: Is __modified__ graphics prop useful anymore? |
Date: | Mon, 24 Oct 2016 14:32:10 -0700 |
On 10/24/2016 02:14 PM, John W. Eaton wrote: > On 10/24/2016 05:10 PM, John W. Eaton wrote: >> On 10/24/2016 04:48 PM, Rik wrote: >>> 10/24/16 >>> >>> I made the graphics property __modified__ a hidden property >>> (http://hg.savannah.gnu.org/hgweb/octave/rev/4ea5b0c3b10f). But, I can't >>> see that it is used anywhere usefully in the code. Maybe it had a >>> purpose >>> a long time ago, but should it just be put on the road to deprecation >>> now? >> >> Isn't it used in base_properties::mark_modified method? I think the >> purpose is to tag a set of properties as modified so that there is a >> quick way to know whether something has changed and the object needs to >> be drawn again. > > The base_properties::is_modified method checks the status. It's used in Fdrawnow. > But nothing seems to set the value to "off". octave:12> hax = gca; octave:13> get (hax, "__modified__") ans = on octave:14> drawnow octave:15> get (hax, "__modified__") ans = on --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |