MayaFlux 0.4.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 675 of file NodeGraphManager.cpp.

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