knossos icon indicating copy to clipboard operation
knossos copied to clipboard

Each node needs a render flag

Open jmrk84 opened this issue 10 years ago • 7 comments

Each node should have a simple boolean render attribute that is respected by the renderer. This would open up very powerful visualizations possibilities. E.g. a Python plugin that sets this flag based on spatial proximities between certain trees and much more. The flag needs to be exposed to Python.

jmrk84 avatar Jan 26 '15 10:01 jmrk84

Do we want this to be true by default, but stored to the NML when negative?

orenshatz avatar Jan 26 '15 11:01 orenshatz

Maybe we should also optionally store it where positive to allow explicit override of visibility when merging from an NML? In short, please define this feature more explicitly.

orenshatz avatar Jan 26 '15 11:01 orenshatz

Actually I would not store it in the nml at all. True by default yes. This flag should also not be used by the existing rendering mechanisms (whole skeleton, selected trees), as they operate on the tree level.

jmrk84 avatar Jan 26 '15 11:01 jmrk84

I'm not sure I understand, what do you mean by "mechanisms"? Bottom line, this flag should be respected by the renderrer or otherwise useless.

orenshatz avatar Jan 26 '15 11:01 orenshatz

I mean the existing mechanisms that allow a specification of what is rendered or not. I.e. the flag should complement these options, but not be able to override them. For example: Whole skeleton is selected: 50% of nodes are set to "false" => only 50% are rendered. Or: "selected trees" is selected and 50% of all nodes are set to "true". => Render all nodes of the selected trees, but not nodes of unselected trees, even when their flag is true.

jmrk84 avatar Jan 26 '15 11:01 jmrk84

Alright, so it does in fact override other TRUEs with FALSE, but not other FALSEs with TRUE. In other words, the decision whether to render a node is a cumulative AND gate on differing (mostly independent) visibility conditions.

orenshatz avatar Jan 26 '15 11:01 orenshatz

correct

jmrk84 avatar Jan 26 '15 11:01 jmrk84