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

◆ notify_tick()

void MayaFlux::Nodes::BinaryOpNode::notify_tick ( double  value)
overrideprotectedvirtual

Notifies all registered callbacks about a new output value.

Parameters
valueThe newly combined output value

This method is called internally whenever a new value is produced, creating the appropriate context with both input values and the output, and invoking all registered callbacks that should receive notification.

Implements MayaFlux::Nodes::Node.

Definition at line 155 of file NodeCombine.cpp.

156{
158 auto& ctx = get_last_context();
159
160 m_callbacks.fire(ctx);
162}
glm::vec3 value
void update_context(double value) override
updates context object for callbacks
NodeContext & get_last_context() override
Retrieves the last created context object.
void fire(NodeContext &ctx) const
Calls every entry whose condition, if any, holds.
Definition NodeUtils.cpp:68
HookList m_conditional_callbacks
Hooks fired on a tick only while their condition holds.
Definition Node.hpp:485
HookList m_callbacks
Hooks fired on every tick.
Definition Node.hpp:478

References MayaFlux::Nodes::HookList::fire(), get_last_context(), MayaFlux::Nodes::Node::m_callbacks, MayaFlux::Nodes::Node::m_conditional_callbacks, update_context(), and value.

Referenced by process_sample().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: