Tree Widget: Selection tree component #362
Labels
enhancement
New feature or request
tree widget
Tree widget or its components related issues
wontfix
This will not be worked on
Proposal for a Selection Tree component
Problems
When an element is selected, it's impossible see its context in one place - model, category, parent elements, child elements. Model, category and the immediate parent can be checked in the Property Grid component, but they're not interactive (you can't do anything with them except view their labels) and you can only see child elements in the Models Tree component, but that requires finding the selected element in the hierarchy, which could be an impossible task in large iModels.
In addition, not being able to see and/or interact with selected element's ancestor and child elements takes away a convenient way to adjust selection, which is especially important when there are non-graphical ancestors with properties that users want to see.
Suggestion
The suggestion is to introduce a new Selection Tree component that could become part of the Visibility Widget.
Hierarchy
The important part is to show selected element's Model, Category, ancestors and possibly child elements. How it's going to be set up is TBD. A couple of ideas:
Model (auto-expanded) -> Category (auto-expanded) -> ...Ancestors (auto-expanded) -> Selected Element (collapsed) -> Child elements
. All top level nodes (Model
,Category
,Ancestors
) up toSelected Element
would only have one child node that's relevant to the selected element. Problems with this approach: parent and child elements don't necessarily share the same Model and Category. For the selection tree we'd want to see Model and Category of the selected element, but the hierarchy structure suggests the Model and Category belong to the topmost ancestor.Selected Element (auto-expanded) -> [Model, Category, Ancestors' hierarchy, Children hierarchy]
. This approach would solve the problem of the previous one, but it wouldn't be as convenient to adjust selection as the whole hierarchy would be changed upon selection change.We may want to consider showing
Subject
hierarchy fromModel
throughInformationPartitionElement
, parentSubject
up to the rootSubject
. If we do, need to consider the case whenModel
models a non-InformationPartitionElement
.Interactions
Node selection would cause unified selection to update with all the consequences - graphics view changes highlighted elements, property grid shows content of newly selected element, etc.
Visibility control could be added similar to what we have in Models Tree.
The text was updated successfully, but these errors were encountered: