Hi Caspar,

I guess it depends on the point of view. I would feel weird if upon 
opening a word document, the selection, editing position, and for 
example 'find' window would be persisted. It would probably be even more 
weird if I saw that opening the file that someone else edited before 
sending it to me. In any case, this is definitely not a big thing so 
I'll just leave it in my fork.

Cheers,
   Rostislav.

On 27/08/2015 14:35, Goch, Caspar Jonas wrote:
> Hi Rostislav,
>
> as it happens we recently did basically the opposite. We introduced a 
> PersistenceService, where properties can be registered as needing to be 
> written to file [1]. This currently is only taken into account for nrrd files 
> though.
>
> However, I do not know if we want to distinguish between persistent and 
> transient properties for scene files, as - in theory - loading a scene file 
> should return you to  the same view you had when saving it. So I would expect 
> the same objects to be selected.
>
> Best,
> Caspar
>
> [1] http://bugs.mitk.org/show_bug.cgi?id=19209
>
>
> -----Ursprüngliche Nachricht-----
> Von: Rostislav Khlebnikov [mailto:[email protected]]
> Gesendet: Mittwoch, 26. August 2015 18:43
> An: mitk-users
> Betreff: [mitk-users] Transient properties
>
> Hey guys,
>
> in my fork I made a simple change to the BaseProperty. Basically, I added the 
> isTransient flag to signify the properties that should not be saved to the 
> scene. In my case the use case is - I set the clipping plane properties to 
> use the unstructured grid mapper to look at the internal structure of an 
> unstructured grid. If the scene is saved with one of these properties active, 
> upon next load the unstructured grid will be cut, which is an undesired 
> behavior. With transient properties this is easily solvable.
>
> Another property that I think might benefit from being transient is the 
> "selected" property. When you load the scene it is pretty strange to see some 
> objects in a selected state. What do you think?
>
> Rostislav.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to