Cleans up the current operation, disconnecting the entity and resetting state.
This method is called when the timer completes its specified duration. It disconnects the currently active node/nodenetwork/buffer from the output channels or graphics syc, or active and resets internal state to allow new operations to be started.
Definition at line 148 of file Timers.cpp.
149{
155 }
159 }
160 }
163 }
164 break;
165
170 }
171
174 }
175 break;
176
181 }
183 }
184 break;
185
187 break;
188 }
189
191}
void remove_buffer(const std::shared_ptr< Buffer > &buffer, ProcessingToken token, uint32_t channel=0)
Removes a buffer from a token.
Buffers::ProcessingToken m_buffer_token
The processing token associated with the currently active buffer.
std::vector< uint32_t > m_channels
The output channels the current node is connected to.
Nodes::ProcessingToken m_node_token
The processing token associated with the currently active node or buffer.
std::shared_ptr< Buffers::Buffer > m_current_buffer
The currently active buffer being played.
std::shared_ptr< Nodes::Network::NodeNetwork > m_current_network
The currently active network being played.
Nodes::NodeGraphManager & m_node_graph_manager
Reference to the graph manager that manages processing nodes.
std::shared_ptr< Nodes::Node > m_current_node
The currently active node being played.
Buffers::BufferManager & m_buffer_manager
Reference to the buffer manager that manages processing buffers.
void remove_network(const std::shared_ptr< Network::NodeNetwork > &network, ProcessingToken token)
Remove a network from a processing token.
RootNode & get_root_node(ProcessingToken token, unsigned int channel)
Gets or creates the root node for a specific token and channel.
void unregister_node(const std::shared_ptr< Node > &node)
Removes a node from this root node.
References BUFFER, MayaFlux::Nodes::NodeGraphManager::get_root_node(), m_active_type, m_buffer_manager, m_buffer_token, m_channels, m_current_buffer, m_current_network, m_current_node, m_node_graph_manager, m_node_token, NETWORK, NODE, NONE, MayaFlux::Buffers::BufferManager::remove_buffer(), MayaFlux::Nodes::NodeGraphManager::remove_network(), and MayaFlux::Nodes::RootNode::unregister_node().
Referenced by activate_buffer(), activate_network(), activate_node(), and cancel().