Skip to content

Workspace::ViewportHighlightResolver ​

Manager class responsible for updating viewport model highlights based on current workspace node selection. More...

#include "GUI/Workspace/ViewportHighlightResolver.h"

Public Functions ​

Name
ViewportHighlightResolver(WorkspaceDiwne * diwne)
voidregisterNodeCallbacks(Core::Node * node)<br>Register callbacks with a node.
voidresolve()<br>If needed, updates highlight status of all model nodes by starting a breadth-first search for selected nodes at each one of them.
voidresolveNeeded()<br>Trigger a highlight resolve during resolve() call.

Detailed Description ​

cpp
class Workspace::ViewportHighlightResolver;

Manager class responsible for updating viewport model highlights based on current workspace node selection.

A model is highlighted if any currently selected node is directly or indirectly connected to it, potentially influencing it.

Public Functions Documentation ​

function ViewportHighlightResolver ​

cpp
explicit ViewportHighlightResolver(
    WorkspaceDiwne * diwne
)

function registerNodeCallbacks ​

cpp
void registerNodeCallbacks(
    Core::Node * node
)

Register callbacks with a node.

Makes resolveNeeded() calls when resolve is needed (during node deletion and plug and unplug operations).

function resolve ​

cpp
void resolve()

If needed, updates highlight status of all model nodes by starting a breadth-first search for selected nodes at each one of them.

Thus highlighting any models that the current node selection may have an effect on.

function resolveNeeded ​

cpp
inline void resolveNeeded()

Trigger a highlight resolve during resolve() call.

Should be called when selection or structure of the node tree changes.


Updated on 2026-09-11 at 21:24:25 +0000