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

◆ set()

template<typename Self>
void MayaFlux::Nodes::Network::NodeNetwork::set ( this Self & self,
const typename Self::Controls & incoming )
inline

Apply the members of this network's Controls struct that hold a value.

A network opts in with using Controls = ..., a struct of Control members declared with MF_DESCRIBE, and holds the reference declare_controls() returns. A member named scale is applied to the output scale by the base, so an audio network lists it first. Members left empty are untouched, so net->set({ .decay = lfo }) changes only decay. Designators follow the struct's declaration order. A node source maps in BROADCAST and a network source in ONE_TO_ONE. The string based map_parameter stays for names a user invents. A number may be set from any thread while a block renders. Attaching or removing a node or network source belongs outside process_batch, as with the operator chain.

Definition at line 299 of file NodeNetwork.hpp.

300 {
301 static_cast<NodeNetwork&>(self).m_controls_store.merge(incoming);
302 }

References m_controls_store.

Referenced by MayaFlux::Nodes::Network::PointCloudNetwork::set_connection_radius(), MayaFlux::Nodes::Network::PointCloudNetwork::set_k_neighbors(), MayaFlux::Nodes::Network::PointCloudNetwork::set_line_color(), MayaFlux::Nodes::Network::PointCloudNetwork::set_line_thickness(), MayaFlux::Nodes::Network::PointCloudNetwork::set_samples_per_segment(), and MayaFlux::Nodes::Network::PointCloudNetwork::set_tension().

Here is the caller graph for this function: