Skip to content

ViewportHighlightResolver

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

#include "GUI/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 ViewportHighlightResolver;
class 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
)
explicit ViewportHighlightResolver(
    WorkspaceDiwne * diwne
)

function registerNodeCallbacks

cpp
void registerNodeCallbacks(
    Core::Node * node
)
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()
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()
inline void resolveNeeded()

Trigger a highlight resolve during resolve() call.

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


Updated on 2024-03-16 at 19:15:00 +0000