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

◆ read_controls()

void MayaFlux::Nodes::Network::DuctNetwork::read_controls ( DuctControls & controls) const
inline

Fills the controls whose value the network holds outside the struct.

Definition at line 210 of file DuctNetwork.hpp.

211 {
212 controls.pickup.observe(m_pickup.load(std::memory_order_relaxed));
213 controls.output.observe(m_output.load(std::memory_order_relaxed) == Output::PICKUP ? 1.0 : 0.0);
214 }
@ PICKUP
Pressure inside the duct at the pickup position.

References m_output, m_pickup, MayaFlux::Nodes::Network::Control::observe(), MayaFlux::Nodes::Network::DuctControls::output, PICKUP, and MayaFlux::Nodes::Network::DuctControls::pickup.

Here is the call graph for this function: