Repository navigation
feat(object-list): refresh only the objects a filtered list can show - #170
Merged
Merged
Conversation
Refresh in the object list reloaded the whole series whatever the list showed. With a filter set it now reloads only the objects passing it: every section file is still read, so an object is found wherever its traces are now, but only those objects' traces are measured, which is most of a full refresh. Without a filter, Refresh reloads the series as before. The tag and configuration filters read the data being reloaded, so they are not used to choose what to reload.
Setting an object's alignment reloaded the whole series to remeasure that object's traces. It now reloads the edited objects alone, and the lists update their rows as they do after any other object edit.
Volume and flat area are computed from the section thickness held in the series data. A filtered refresh left that value as it was, so a reloaded object could get different numbers from a full refresh. It now reloads each section's thickness and updates the section list rows that changed. Changing an object's alignment goes through the same path.
Object volumes, the section list and ztrace distances are all computed from section thickness. When a filtered refresh finds a thickness has changed, it now recreates every open list rather than only the section rows, so ztrace distances are current too. Otherwise it recreates the object and trace lists as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refreshin the object list reloads every object in the series, so checking one edited object on a large series means a long wait. With a filter set,Refreshnow reloads only the objects the filter shows, which took about 1 second instead of 5 on a 300-section test series.Change object alignment...now remeasures only the objects it changed. With no filter set,Refreshworks as before.Closes #141.