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

◆ on_change_to()

void MayaFlux::Nodes::Generator::Logic::on_change_to ( const NodeHook callback,
bool  target_state 
)

Registers a callback for when output changes to a specific state.

Parameters
callbackFunction to call when state changes to target_state
target_stateThe state to detect (true for 1.0, false for 0.0)

Definition at line 581 of file Logic.cpp.

582{
583 add_callback(callback, target_state ? LogicEventType::TRUE : LogicEventType::FALSE);
584}
void add_callback(const NodeHook &callback, LogicEventType type, const std::optional< NodeCondition > &condition=std::nullopt)
Adds a callback to the list of all callbacks.
Definition Logic.hpp:588
LogicEventType
Events that can trigger callbacks.
Definition Logic.hpp:50

References add_callback(), MayaFlux::Nodes::Generator::FALSE, and MayaFlux::Nodes::Generator::TRUE.

+ Here is the call graph for this function: