-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to filter by collection name of the object #76
Conversation
|
Hi @brauliorivas, Nice work, in some cases there is too many collections :) Initially, do you draw all the collections? |
Hi @brauliorivas,
Yes, because otherwise it is not clear which collections are already shown. After looking more into this, I think having checkmarks checked also applies to all the other checkmark filters (generator status, simulation status). For simulation status you will also have to show only the ones which are applicable. I'm getting way more connections when applying the filter. I just loaded a file, selcted the view and clicked on apply filter. There was no messing with any filter options. |
Hi @brauliorivas, the filtering issue runs deeper. I would expect, that if I deselect "Particle" collection I should not get any particles. And also, If I again select the "Particle" collection I should get exact same particle tree. It is probably good to have a test that would do a round trip and see if the particle tree stays the same. |
I made it that way because I think it can be easier to understand. If there is only one type of collection, and you chose none, then no particle will match the filter (and if choosing none, I would get an empty mcparticle tree which is not very useful ). The same happens with the simulator status. If we think the same way, then from the beginning the view should be empty because no mcparticle matches the available simulator statuses. So only if any of the checkboxes are marked, then it will work normally, but if choosing none of the checkboxes, it will ignore that section of checkboxes and filter using other property (if set).
Going to fix it! |
… everythin if no checkbox checked
Anyway, right now I've done it the way you say @kjvbrt. |
This is also a possibility, but than I would suggest to use grey font for that section or any other way to signify that it is not active. Doing round trip (filtering particles based on generator status and than clearing the status) I 'm also getting new connections... |
Right now I've done a new reconnecting logic. So a |
Hi @brauliorivas, It think we are moving :) There are no more particle connections generated, but I can't get back the particles I filtered out in previous filtering. When I unselect generator status 4 I get: However, when I select generator status again I get the result of previous filtering: |
BEGINRELEASENOTES
MCParticle
,RecoParticle
,Vertex
,ParticleId
,Cluster
, andTrack
) so users can filter on any given view by the collection name of the objects.ENDRELEASENOTES