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

◆ set_temporal_function()

void MayaFlux::Nodes::Generator::Logic::set_temporal_function ( TemporalFunction  function)

Sets a custom time-dependent evaluation function.

Parameters
functionFunction implementing temporal boolean logic

Configures the node to evaluate inputs based on both their value and timing using a user-defined function. Enables implementation of timing-sensitive operations like pulse width detection and rate analysis.

Definition at line 462 of file Logic.cpp.

463{
464 m_temporal_function = std::move(function);
467 // Reset temporal time when changing function
468 m_temporal_time = 0.0;
469}
TemporalFunction m_temporal_function
Function for temporal mode.
Definition Logic.hpp:564
double m_temporal_time
Time tracking for temporal mode.
Definition Logic.hpp:574
LogicOperator m_operator
Current logic operator.
Definition Logic.hpp:560
LogicMode m_mode
Current processing mode.
Definition Logic.hpp:559
@ TEMPORAL
Time-dependent evaluation with timing constraints.
@ CUSTOM
User-defined boolean function.

References MayaFlux::Nodes::Generator::CUSTOM, m_mode, m_operator, m_temporal_function, m_temporal_time, and MayaFlux::Nodes::Generator::TEMPORAL.