|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
|
virtual |
Registers a conditional callback.
| callback | Function to call when condition is met |
| condition | Predicate that determines when callback should be triggered |
Registers a callback function that will be called only when the specified condition is met. The condition is evaluated each time the node produces a new output value, and the callback is triggered only if the condition returns true.
This mechanism enables selective monitoring and reaction to specific node states or events, such as threshold crossings or pattern detection.
Example:
Reimplemented in MayaFlux::Nodes::Generator::Logic, and MayaFlux::Nodes::ChainNode.
Definition at line 10 of file Node.cpp.
References m_conditional_callbacks, and MayaFlux::Nodes::safe_add_conditional_callback().
Here is the call graph for this function: