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

◆ remove_from_root()

void MayaFlux::Nodes::NodeGraphManager::remove_from_root ( const std::shared_ptr< Node > &  node,
ProcessingToken  token,
unsigned int  channel = 0 
)

Remove node from a specific processing token and channel.

Parameters
nodeNode to remove
tokenProcessing domain (AUDIO_RATE, VISUAL_RATE, etc.)
channelChannel within that domain

Removes the specified node from the root node of the given processing domain and channel. If the node is not found in that root, no action is taken.

Definition at line 25 of file NodeGraphManager.cpp.

28{
29 unset_channel_mask(node, channel);
30
31 auto& root = get_root_node(token, channel);
32 root.unregister_node(node);
33}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void unset_channel_mask(const std::shared_ptr< Node > &node, uint32_t channel_id)
Unsets the specified channel mask from a node's global registration.
RootNode & get_root_node(ProcessingToken token, unsigned int channel)
Gets or creates the root node for a specific token and channel.

References get_root_node(), token, and unset_channel_mask().

+ Here is the call graph for this function: