The Viewer.
Plugin configuration.
ID for this Plugin, unique within its Viewer.
The Viewer that contains this Plugin.
Gets how the nodes are organized within this tree view.
Default value is "containment".
Sets how the nodes are organized within this tree view.
Default value is "containment".
Returns the map of {@link ModelTreeView}s.
Each ModelTreeView is mapped to the ID of its model.
Adds a model to this tree view.
The model will be automatically removed when destroyed.
To automatically add each model as it's created, instead of manually calling this method each time,
provide a autoAddModels: true to the TreeViewPlugin constructor.
ID of a model Entity in Scene.models.
ModelTreeView for the newly-added model. If this method succeeded in adding the model,
then {@link ModelTreeView.valid} will equal true. Otherwise, that property will be false
and {@link ModelTreeView.errors} will contain error messages.
Collapses all trees within this tree view.
Destroys this Plugin and removes it from its Viewer.
Logs an error message to the JavaScript developer console, prefixed with the ID of this Plugin.
The error message
Expands the tree to the given depth.
Collapses the tree first.
Depth to expand to.
Fires an event at this Plugin.
The event type name
The event parameters
Logs a message to the JavaScript developer console, prefixed with the ID of this Plugin.
The error message
Fires on right click to show contextmenu.
The contextmenu event
Callback fired on the event
Fires when an title is clicked.
The nodeTitleClicked event
Callback fired on the event
Removes a model from this tree view.
Does nothing if model not currently in tree view.
ID of a model Entity in Scene.models.
Highlights the tree view node that represents the given object Entity.
This causes the tree view to collapse, then expand to reveal the node, then highlight the node.
If a node is previously highlighted, de-highlights that node and collapses the tree first.
Note that if the TreeViewPlugin was configured with pruneEmptyNodes: true (default configuration), then the
node won't exist in the tree if it has no Entitys in the Scene. in that case, nothing will happen.
Within the DOM, the node is represented by an <li> element. This method will add a .highlighted-node class to
the element to make it appear highlighted, removing that class when de-highlighting it again. See the CSS rules
in the TreeViewPlugin examples for an example of that class.
ID of the Entity.
De-highlights the node previously shown with TreeViewPlugin.showNode.
Does nothing if no node is currently shown.
If the node is currently scrolled into view, keeps the node in view.
Logs a warning message to the JavaScript developer console, prefixed with the ID of this Plugin.
The error message
Iterates over a subtree of the tree view's {@link TreeViewNode}s, calling the given callback for each node in depth-first pre-order.
Root of the subtree.
Callback called at each {@link TreeViewNode}, with the TreeViewNode given as the argument.
Generated using TypeDoc
A Viewer plugin that provides an HTML tree view to navigate the IFC elements in models.