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

◆ restore_state()

void MayaFlux::Nodes::Generator::Logic::restore_state ( )
overridevirtual

Restores the node's state from the last save Recursively cascades through all connected modulator nodes Protected - only NodeSourceProcessor and NodeBuffer can call.

Implements MayaFlux::Nodes::Node.

Definition at line 637 of file Logic.cpp.

638{
644
645 if (m_input_node)
646 m_input_node->restore_state();
647
648 m_state_saved = false;
649}
std::deque< bool > m_history
Buffer of input values for feedforward mode.
Definition Logic.hpp:565
double m_temporal_time
Time tracking for temporal mode.
Definition Logic.hpp:574
std::shared_ptr< Node > m_input_node
Input node for processing.
Definition Logic.hpp:577
std::deque< bool > m_saved_history
Definition Logic.hpp:603
bool m_edge_detected
Whether an edge was detected in the last processing.
Definition Logic.hpp:572
bool m_hysteresis_state
State for hysteresis operator.
Definition Logic.hpp:573
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:378

References m_edge_detected, m_history, m_hysteresis_state, m_input_node, MayaFlux::Nodes::Node::m_last_output, m_saved_edge_detected, m_saved_history, m_saved_hysteresis_state, m_saved_last_output, m_saved_temporal_time, m_state_saved, and m_temporal_time.