MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ update_routing_states_for_cycle()

void MayaFlux::Nodes::NodeGraphManager::update_routing_states_for_cycle ( ProcessingToken  token)

Updates routing states for all nodes and networks for a given token.

Parameters
tokenProcessing domain to update routing states for

This method should be called at the end of each processing cycle to update the routing states of all nodes and networks that are currently undergoing routing changes. It handles the fade-in/out logic and transitions routing states as needed.

Definition at line 645 of file NodeGraphManager.cpp.

646{
647 for (const auto& node : m_node_registry) {
648 if (!node->needs_channel_routing())
649 continue;
650 update_routing_state(node->get_routing_state());
651 }
652
653 for (const auto& network : get_all_networks(token)) {
654 if (!network || !network->needs_channel_routing())
655 continue;
656 update_routing_state(network->get_routing_state());
657 }
658}
Core::GlobalNetworkConfig network
Definition Config.cpp:43
std::unordered_set< std::shared_ptr< Node > > m_node_registry
Registry of all nodes by their string identifiers.
std::vector< std::shared_ptr< Network::NodeNetwork > > get_all_networks(ProcessingToken token) const
Get all networks for a specific token across all channels.
void update_routing_state(RoutingState &state)
Updates the routing state for a node based on its current channel usage.

References get_all_networks(), m_node_registry, network, and MayaFlux::Nodes::update_routing_state().

+ Here is the call graph for this function: