MayaFlux 0.3.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 673 of file NodeGraphManager.cpp.

674{
675 for (const auto& [id, node] : m_Node_registry) {
676 if (!node->needs_channel_routing())
677 continue;
678 update_routing_state(node->get_routing_state());
679 }
680
681 for (const auto& network : get_all_networks(token)) {
682 if (!network || !network->needs_channel_routing())
683 continue;
684 update_routing_state(network->get_routing_state());
685 }
686}
std::unordered_map< std::string, 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, and MayaFlux::Nodes::update_routing_state().

+ Here is the call graph for this function: