openmc-dev / plotter

Native plotting GUI for model design and verification
MIT License
43 stars 17 forks source link

Make items in filter list auto tristate #150

Closed paulromano closed 3 weeks ago

paulromano commented 3 weeks ago

If you have a mesh tally with other filters on top, right now it's not possible to pick out specific bins from those other filters. After digging into this a while, I realized that the problem was that the top-level treewidget items were not being set to "auto tristate", which allows them to be partially checked based on the state of the child items. With this change, now you can select bins for these filters freely. In my particular use case, I'm combining a material filter with a mesh filter and want to plot the mesh results restricted to a particular material.

shimwell commented 3 weeks ago

Oh this looks handy for shut down dose rate analysis, thanks Paul

paulromano commented 3 weeks ago

Just added one more fix for the cell/material highlight checkboxes in the color options dialog not working.

pshriwise commented 3 weeks ago

Just added one more fix for the cell/material highlight checkboxes in the color option

I noticed that too yesterday. Thanks!